Skip to content

Commit 1282a2e

Browse files
committed
Incorporate changes from #385
1 parent d7723cd commit 1282a2e

File tree

3 files changed

+4
-2
lines changed

3 files changed

+4
-2
lines changed

Dockerfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN \
2828
libcap-utils \
2929
libqrencode-tools \
3030
net-tools \
31+
nftables \
3132
openresolv \
3233
wireguard-tools==${WIREGUARD_RELEASE} && \
3334
echo "wireguard" >> /etc/modules && \

Dockerfile.aarch64

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ RUN \
2828
libcap-utils \
2929
libqrencode-tools \
3030
net-tools \
31+
nftables \
3132
openresolv \
3233
wireguard-tools==${WIREGUARD_RELEASE} && \
3334
echo "wireguard" >> /etc/modules && \

root/defaults/server.conf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
Address = ${INTERFACE}.1
33
ListenPort = 51820
44
PrivateKey = $(cat /config/server/privatekey-server)
5-
PostUp = iptables -A FORWARD -i %i -j ACCEPT; iptables -A FORWARD -o %i -j ACCEPT; iptables -t nat -A POSTROUTING -o eth+ -j MASQUERADE
6-
PostDown = iptables -D FORWARD -i %i -j ACCEPT; iptables -D FORWARD -o %i -j ACCEPT; iptables -t nat -D POSTROUTING -o eth+ -j MASQUERADE
5+
PostUp = iptables-nft -A FORWARD -i %i -j ACCEPT; iptables-nft -A FORWARD -o %i -j ACCEPT; iptables-nft -t nat -A POSTROUTING -o eth+ -j MASQUERADE
6+
PostDown = iptables-nft -D FORWARD -i %i -j ACCEPT; iptables-nft -D FORWARD -o %i -j ACCEPT; iptables-nft -t nat -D POSTROUTING -o eth+ -j MASQUERADE

0 commit comments

Comments
 (0)