This commit is contained in:
Emile Nijssen 2021-05-22 11:12:26 +02:00
commit eaf3d5c3fb
9 changed files with 57 additions and 0 deletions

13
Dockerfile Normal file
View File

@ -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"]

View File

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

View File

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

1
config/client1/publickey Normal file
View File

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

1
config/privatekey Normal file
View File

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

1
config/publickey Normal file
View File

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

11
config/wg0.conf Normal file
View File

@ -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 Normal file
View File

@ -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 Executable file
View File

@ -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