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 2828 libcap-utils \
2929 libqrencode-tools \
3030 net-tools \
31+ nftables \
3132 openresolv \
3233 wireguard-tools==${WIREGUARD_RELEASE} && \
3334 echo "wireguard" >> /etc/modules && \
Original file line number Diff line number Diff line change 2828 libcap-utils \
2929 libqrencode-tools \
3030 net-tools \
31+ nftables \
3132 openresolv \
3233 wireguard-tools==${WIREGUARD_RELEASE} && \
3334 echo "wireguard" >> /etc/modules && \
Original file line number Diff line number Diff line change 22Address = ${INTERFACE}.1
33ListenPort = 51820
44PrivateKey = $(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