diff --git a/.gitignore b/.gitignore index 791f7301dfcef7281c07b144ef5d8b1c114912f0..7216b1fca4adfeef47200b623bf5a516f0faadef 100644 --- a/.gitignore +++ b/.gitignore @@ -192,4 +192,5 @@ $RECYCLE.BIN/ # Windows shortcuts *.lnk -# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij,windows \ No newline at end of file +# End of https://www.toptal.com/developers/gitignore/api/macos,visualstudiocode,intellij,windows +vpn/config \ No newline at end of file diff --git a/docker-compose.yml b/docker-compose.yml index c6d2c015a730651224cf3909254e6cd2be64e3d1..82090a96e859767f12d5b6564104eef83c2b8df8 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -8,4 +8,5 @@ include: - ftp/ftp.docker-compose.yml - nginx/nginx.docker-compose.yml - apache/apache.docker-compose.yml - - httpforwardproxy/httpforwardproxy.docker-compose.yml \ No newline at end of file + - httpforwardproxy/httpforwardproxy.docker-compose.yml + - vpn/vpn.docker-compose.yml \ No newline at end of file diff --git a/vpn/vpn.docker-compose.yml b/vpn/vpn.docker-compose.yml new file mode 100644 index 0000000000000000000000000000000000000000..7ce120a21a8359f73212c5bd0fb8b90611129e61 --- /dev/null +++ b/vpn/vpn.docker-compose.yml @@ -0,0 +1,25 @@ +services: + vpn: + image: linuxserver/wireguard + cap_add: + - NET_ADMIN + - SYS_MODULE + environment: + - PUID=1000 + - PGID=1000 + - TZ=Europe/Berlin + - SERVERURL=localhost #optional + - SERVERPORT=51820 #optional + - PEERS=1 #optional + - PEERDNS=auto #optional + - INTERNAL_SUBNET=10.13.13.0 #optional + volumes: + - ./config:/config + #- ./modules:/lib/modules + ports: + - 51820:51820/udp + sysctls: + - net.ipv4.conf.all.src_valid_mark=1 + restart: unless-stopped + networks: + - intranet \ No newline at end of file