File tree Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Expand file tree Collapse file tree 3 files changed +4
-2
lines changed Original file line number Diff line number Diff line change 28
28
libcap-utils \
29
29
libqrencode-tools \
30
30
net-tools \
31
+ nftables \
31
32
openresolv \
32
33
wireguard-tools==${WIREGUARD_RELEASE} && \
33
34
echo "wireguard" >> /etc/modules && \
Original file line number Diff line number Diff line change 28
28
libcap-utils \
29
29
libqrencode-tools \
30
30
net-tools \
31
+ nftables \
31
32
openresolv \
32
33
wireguard-tools==${WIREGUARD_RELEASE} && \
33
34
echo "wireguard" >> /etc/modules && \
Original file line number Diff line number Diff line change 2
2
Address = ${INTERFACE}.1
3
3
ListenPort = 51820
4
4
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
You can’t perform that action at this time.
0 commit comments