mirror of https://github.com/wg-easy/wg-easy
commit
eaf3d5c3fb
9 changed files with 57 additions and 0 deletions
@ -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"] |
@ -0,0 +1 @@ |
|||
/FdYIW1UYh+URg7zMU6x+Lsw2E1nMrtyMA8HavZ9h5g= |
@ -0,0 +1 @@ |
|||
sHUUDbaZBQshfOvvF8HeebhhXq3rDKWlW1Vm+6XMklU= |
@ -0,0 +1 @@ |
|||
i8xWKqicnDkNL14I4B+I1zlB8od/booA1joIosWn7X4= |
@ -0,0 +1 @@ |
|||
iOQJS7OUUGPYATsX6nqlL+sOODoiWiN5IOE8Msfw/0o= |
@ -0,0 +1 @@ |
|||
BkdntwYazhYZzEEHhcYayq6TGw9/YUDQ251s+5bTgC0= |
@ -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 |
@ -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 |
@ -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…
Reference in new issue