Browse Source

wip

pull/74/head
Emile Nijssen 4 years ago
commit
eaf3d5c3fb
  1. 13
      Dockerfile
  2. 1
      config/client1/presharedkey
  3. 1
      config/client1/privatekey
  4. 1
      config/client1/publickey
  5. 1
      config/privatekey
  6. 1
      config/publickey
  7. 11
      config/wg0.conf
  8. 19
      run-old.sh
  9. 9
      run.sh

13
Dockerfile

@ -0,0 +1,13 @@
FROM debian:bullseye
# Install Linux packages
RUN apt update
RUN apt install -y wireguard iproute2 openresolv curl
# Install Node.js
RUN curl -fsSL https://deb.nodesource.com/setup_16.x | bash -
RUN apt-get install -y nodejs
# RUN wg-quick up wg0
EXPOSE 51820
ENTRYPOINT ["tail", "-f", "/dev/null"]

1
config/client1/presharedkey

@ -0,0 +1 @@
/FdYIW1UYh+URg7zMU6x+Lsw2E1nMrtyMA8HavZ9h5g=

1
config/client1/privatekey

@ -0,0 +1 @@
sHUUDbaZBQshfOvvF8HeebhhXq3rDKWlW1Vm+6XMklU=

1
config/client1/publickey

@ -0,0 +1 @@
i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4=

1
config/privatekey

@ -0,0 +1 @@
iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o=

1
config/publickey

@ -0,0 +1 @@
BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0=

11
config/wg0.conf

@ -0,0 +1,11 @@
[Interface]
PrivateKey = iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o= # wg genkey > privatekey
# PublicKey = BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0=
Address = 10.8.0.1/24
ListenPort = 51820
DNS = 1.1.1.1
[Peer]
PublicKey = i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4=
PresharedKey = MzplKtOQ44/IaAKri2VKqCoIlg4XiVH7TCp5bcYRTQU=
AllowedIPs = 10.8.0.2/32

19
run-old.sh

@ -0,0 +1,19 @@
docker run -d \
--name=wireguard \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
-e PUID=1000 \
-e PGID=1000 \
-e TZ=Europe/London \
-p 51820:51820/udp \
-v config:/config \
-v modules:/lib/modules \
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
ghcr.io/linuxserver/wireguard

9
run.sh

@ -0,0 +1,9 @@
docker run \
-d \
--name wg-easy \
--cap-add=NET_ADMIN \
--cap-add=SYS_MODULE \
--sysctl="net.ipv4.conf.all.src_valid_mark=1" \
--mount type=bind,source="$(pwd)"/config,target=/etc/wireguard \
-p 51820:51820/udp \
wg-easy
Loading…
Cancel
Save