Bugfix: differnt Ports usage (#973)
This commit is contained in:
commit
2eec97ff25
|
@ -40,9 +40,9 @@ RUN apk add --no-cache \
|
||||||
# Use iptables-legacy
|
# Use iptables-legacy
|
||||||
RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy 10 --slave /sbin/iptables-restore iptables-restore /sbin/iptables-legacy-restore --slave /sbin/iptables-save iptables-save /sbin/iptables-legacy-save
|
RUN update-alternatives --install /sbin/iptables iptables /sbin/iptables-legacy 10 --slave /sbin/iptables-restore iptables-restore /sbin/iptables-legacy-restore --slave /sbin/iptables-save iptables-save /sbin/iptables-legacy-save
|
||||||
|
|
||||||
# Expose Ports
|
# Expose Ports (If needed on buildtime)
|
||||||
EXPOSE 51820/udp
|
#EXPOSE 51820/udp
|
||||||
EXPOSE 51821/tcp
|
#EXPOSE 51821/tcp
|
||||||
|
|
||||||
# Set Environment
|
# Set Environment
|
||||||
ENV DEBUG=Server,WireGuard
|
ENV DEBUG=Server,WireGuard
|
||||||
|
|
|
@ -54,6 +54,8 @@ To automatically install & run wg-easy, simply run:
|
||||||
-e LANG=de \
|
-e LANG=de \
|
||||||
-e WG_HOST=<🚨YOUR_SERVER_IP> \
|
-e WG_HOST=<🚨YOUR_SERVER_IP> \
|
||||||
-e PASSWORD=<🚨YOUR_ADMIN_PASSWORD> \
|
-e PASSWORD=<🚨YOUR_ADMIN_PASSWORD> \
|
||||||
|
-e PORT=51821 \
|
||||||
|
-e WG_PORT=51820 \
|
||||||
-v ~/.wg-easy:/etc/wireguard \
|
-v ~/.wg-easy:/etc/wireguard \
|
||||||
-p 51820:51820/udp \
|
-p 51820:51820/udp \
|
||||||
-p 51821:51821/tcp \
|
-p 51821:51821/tcp \
|
||||||
|
|
|
@ -14,6 +14,7 @@ services:
|
||||||
|
|
||||||
# Optional:
|
# Optional:
|
||||||
# - PASSWORD=foobar123
|
# - PASSWORD=foobar123
|
||||||
|
# - PORT=51821
|
||||||
# - WG_PORT=51820
|
# - WG_PORT=51820
|
||||||
# - WG_DEFAULT_ADDRESS=10.8.0.x
|
# - WG_DEFAULT_ADDRESS=10.8.0.x
|
||||||
# - WG_DEFAULT_DNS=1.1.1.1
|
# - WG_DEFAULT_DNS=1.1.1.1
|
||||||
|
|
|
@ -95,7 +95,7 @@ module.exports = class WireGuard {
|
||||||
[Interface]
|
[Interface]
|
||||||
PrivateKey = ${config.server.privateKey}
|
PrivateKey = ${config.server.privateKey}
|
||||||
Address = ${config.server.address}/24
|
Address = ${config.server.address}/24
|
||||||
ListenPort = 51820
|
ListenPort = ${WG_PORT}
|
||||||
PreUp = ${WG_PRE_UP}
|
PreUp = ${WG_PRE_UP}
|
||||||
PostUp = ${WG_POST_UP}
|
PostUp = ${WG_POST_UP}
|
||||||
PreDown = ${WG_PRE_DOWN}
|
PreDown = ${WG_PRE_DOWN}
|
||||||
|
|
Loading…
Reference in New Issue