dnk: add FORWARD ACCEPT

This commit is contained in:
Daniil Firsov 2022-12-01 16:29:42 +03:00
parent 87f26c7040
commit 9d23f62325

View File

@ -126,6 +126,7 @@ cat <<EOF > "$SERVER_NAME.conf"
Address = ${SERVER_IP_PREFIX}.1/32 Address = ${SERVER_IP_PREFIX}.1/32
ListenPort = ${SERVER_PORT} ListenPort = ${SERVER_PORT}
PrivateKey = ${SERVER_PVT_KEY} PrivateKey = ${SERVER_PVT_KEY}
PostUp = iptables -P FORWARD ACCEPT
PostUp = iptables -t nat -A POSTROUTING -o ${SERVER_INTERFACE} -j MASQUERADE PostUp = iptables -t nat -A POSTROUTING -o ${SERVER_INTERFACE} -j MASQUERADE
PostDown = iptables -t nat -D POSTROUTING -o ${SERVER_INTERFACE} -j MASQUERADE PostDown = iptables -t nat -D POSTROUTING -o ${SERVER_INTERFACE} -j MASQUERADE