Commit graph

51 commits

Author SHA1 Message Date
Jordan Potter
b3044bdd6e
Improve test performance in CI (#37)
Co-authored-by: Jordan Potter <me@jordanpotter.com>
2023-10-04 10:13:51 -07:00
Jordan Potter
bac385db3e
Test with Podman in CI (#34)
* Test with Podman in CI

* Correct logic to copy Docker image to Podman

* Load necessary kernel modules in CI

---------

Co-authored-by: Jordan Potter <me@jordanpotter.com>
2023-10-04 09:49:03 -07:00
Jordan Potter
eefe2e4c9a
Enable CI in PRs (#36)
Co-authored-by: Jordan Potter <me@jordanpotter.com>
2023-10-03 09:32:07 -07:00
Jordan Potter
151215a763
Merge pull request #35 from jordanpotter/ci-ip-check
Verify WireGuard IP address is different in CI
2023-10-03 09:00:03 -07:00
Jordan Potter
fe96abc12f Verify WireGuard IP address is different in CI 2023-10-03 08:59:04 -07:00
Jordan Potter
8cd200bedc Update Docker Hub description in CI 2023-09-29 16:51:15 -07:00
Jordan Potter
c92ecdb79c Add versioning details to README 2023-09-29 16:50:48 -07:00
Jordan Potter
9477a7048a Improve GitHub workflow to include tests 2023-09-29 16:50:21 -07:00
Jordan Potter
b505973565 Build with the latest Alpine v3 2023-09-29 16:49:53 -07:00
Jordan Potter
07596efd7f Update README for Podman 2023-09-29 16:49:33 -07:00
Jordan Potter
326b11022f Simplify entrypoint.sh 2023-09-29 16:49:02 -07:00
Jordan Potter
74c3645405 Set Docker image tag in README to 2.1.4 2022-06-15 13:12:37 -07:00
Jordan Potter
db3380bf96
Merge pull request #27 from jordanpotter/local_subnets
Allow specifying multiple local subnets
2022-06-15 13:05:36 -07:00
Jordan Potter
aeb3049abf
Merge pull request #28 from jordanpotter/alpine_3_15
Upgrade to Alpine 3.15.4
2022-06-15 13:05:28 -07:00
Jordan Potter
4fe4c542e5 Upgrade to Alpine 3.15.4 2022-04-16 19:33:47 -07:00
Jordan Potter
9d36fbae34 Allow specifying multiple local subnets 2022-04-16 19:21:01 -07:00
Jordan Potter
035b388818 Set Docker image tag in README to 2.1.3 2021-11-02 10:34:39 -05:00
Jordan Potter
20d135bf7e Publish Docker image for additional ARM platforms 2021-11-02 10:28:41 -05:00
Jordan Potter
3d5083b9c6 Upgrade to Alpine 3.13.6 2021-11-02 10:17:36 -05:00
Jordan Potter
d454104777
Merge pull request #20 from enbyautumn/main
Change network_mode to work in compose
2021-09-06 22:04:19 -05:00
enbyautumn
afaeb99e37
Change network_mode to work in compose
Inside a docker-compose file, network mode should be `service:wireguard` not `container:wireguard` in order to function properly
2021-08-30 17:28:18 -04:00
Jordan Potter
a690651bec Set Docker image tag in README to 2.1.2 2021-08-08 20:31:10 -05:00
Jordan Potter
6c3f0bf0b6 Add GitHub workflow for publishing to Docker Hub 2021-08-08 20:24:58 -05:00
Jordan Potter
e784c77dd9 Add Docker Compose example 2021-06-20 16:35:10 -05:00
Jordan Potter
453fa8ab1f Clarify why net.ipv4.conf.all.src_valid_mark not set by WireGuard in entrypoint.sh 2021-06-08 14:43:55 -05:00
Jordan Potter
1c4b408ef7 Clarify how kill switch functions in entrypoint.sh 2021-06-08 14:33:01 -05:00
Jordan Potter
777a5c044e Replace LOCAL_NETWORK with LOCAL_SUBNET 2021-03-08 21:17:41 -06:00
Jordan Potter
522c8ff06d
Merge pull request #14 from jordanpotter/local_subnet
Add support for LOCAL_NETWORK environment variable
2021-03-07 13:50:24 -06:00
Jordan Potter
e10eef58a8 Minor cleanup to README 2021-03-07 13:41:46 -06:00
Jordan Potter
6f7a3426dd Add log statement when LOCAL_NETWORK specified 2021-03-06 22:48:51 -06:00
Jordan Potter
dda803d040 Add instructions for LOCAL_NETWORK environment variable 2021-03-06 22:47:42 -06:00
Jordan Potter
42edf25751 Add support for LOCAL_NETWORK environment variable 2021-03-06 22:19:44 -06:00
Jordan Potter
2ec89350db Set Docker image tag in README to 2.0.1 2021-01-28 10:23:45 -06:00
Jordan Potter
7e984263e4
Merge pull request #12 from Sweenu/patch-1
Install ip6tables
2021-01-28 10:18:53 -06:00
Bruno Inec
d3f913fcfa
Install ip6tables
Fixes https://github.com/jordanpotter/docker-wireguard/issues/11
2021-01-28 15:47:28 +01:00
Jordan Potter
fa58347b84 Update README to use version 2.0.0 2020-12-12 01:47:36 -06:00
Jordan Potter
5198622c3a
Merge pull request #9 from JakeWharton/jw/alpine/2020-12-08
Switch base image from Ubuntu to Alpine
2020-12-12 01:42:38 -06:00
Jake Wharton
0a8f9b682e Switch base image from Ubuntu to Alpine
This dramatically reduces the size of the container from hundreds of MiBs to just over ten.

BEFORE
```
$ docker history ea2d6da4cbdc
IMAGE               CREATED             CREATED BY                                      SIZE                COMMENT
ea2d6da4cbdc        27 seconds ago      /bin/sh -c #(nop)  ENTRYPOINT ["/entrypoint.…   0B
2c7e3f0de3c8        27 seconds ago      /bin/sh -c #(nop) COPY file:ad76fe44d1402628…   1.44kB
1a29ca960363        29 seconds ago      /bin/sh -c apt-get update && apt-get install…   367MB
f643c72bc252        12 days ago         /bin/sh -c #(nop)  CMD ["/bin/bash"]            0B
<missing>           12 days ago         /bin/sh -c mkdir -p /run/systemd && echo 'do…   7B
<missing>           12 days ago         /bin/sh -c [ -z "$(apt-get indextargets)" ]     0B
<missing>           12 days ago         /bin/sh -c set -xe   && echo '#!/bin/sh' > /…   811B
<missing>           12 days ago         /bin/sh -c #(nop) ADD file:4f15c4475fbafb3fe…   72.9MB
```

AFTER
```
$ docker history 6b71b07e8ccd
IMAGE               CREATED              CREATED BY                                      SIZE                COMMENT
6b71b07e8ccd        About a minute ago   /bin/sh -c #(nop)  ENTRYPOINT ["/entrypoint.…   0B
898dbb77c8ce        About a minute ago   /bin/sh -c #(nop) COPY file:ad76fe44d1402628…   1.44kB
8470d1ebb9cb        About a minute ago   /bin/sh -c apk add --no-cache       openreso…   7.37MB
d6e46aa2470d        6 weeks ago          /bin/sh -c #(nop)  CMD ["/bin/sh"]              0B
<missing>           6 weeks ago          /bin/sh -c #(nop) ADD file:f17f65714f703db90…   5.57MB
```
2020-12-08 10:34:28 -05:00
Jordan Potter
8cecc764ba Update README to recommend using an image tag 2020-09-14 20:02:15 -05:00
Jordan Potter
123557b6bb
Merge pull request #4 from bobbypage/ipv6
Only set ipv6 killswitch if ipv6 interface exists
2020-09-12 20:59:54 -05:00
bobbypage
c563bc848e Only set ipv6 killswitch if ipv6 interface exists 2020-09-13 01:54:04 +00:00
Jordan Potter
f0d786c382
Merge pull request #3 from bobbypage/privileged
Remove need for running in privileged mode
2020-09-12 20:25:34 -05:00
bobbypage
5e16644902 Remove need for running in privileged mode
To remove the need for running privileged mode, set the necessary
`net.ipv4.conf.all.src_valid_mark=1` sysctl via docker and modify the
`/usr/bin/wg-quick` script from setting the sysctl

* Set `net.ipv4.conf.all.src_valid_mark=1` sysctl via docker `--sysctl`

* Set CAPs of NET_ADMIN and SYS_MODULE instead of using `--privileged`

* Check that `net.ipv4.conf.all.src_valid_mark=1` is set in entrypoint
  script

Fixes #2
2020-09-13 01:16:45 +00:00
Jordan Potter
ac2b0180ae Update example config file in README 2020-09-09 22:01:49 -05:00
Jordan Potter
141e0a3948 Pin Ubuntu version and update docs to require privileged mode 2020-05-18 17:14:55 -05:00
Jordan Potter
8cdbdd9bab Add killswitch 2019-05-12 22:21:16 -07:00
Jordan Potter
e49e41b85f Add troubleshooting instructions for asymmetric routing 2019-02-14 15:14:17 -08:00
Jordan Potter
0320555e9d Correct scripts in README 2019-02-14 12:50:15 -08:00
Jordan Potter
3d28131872 Add Dockerfile and entrypoint script 2019-02-14 12:03:36 -08:00
Jordan Potter
fa70bb976d Update README with instructions 2019-02-14 12:01:50 -08:00