freifunk: enable nat for tunneled uplink

This commit is contained in:
Astro 2021-04-29 23:08:28 +02:00
parent 8bfb061785
commit b7456776b0
1 changed files with 1 additions and 0 deletions

View File

@ -51,6 +51,7 @@ in {
${pkgs.iptables}/bin/iptables -t nat -F POSTROUTING
${pkgs.iptables}/bin/iptables -t nat -A POSTROUTING \
\! --source 10.200.0.0/15 -o ${meshInterface} -j SNAT --to 10.200.${ddmeshAddrPart}
${pkgs.iptables}/bin/iptables -t nat -o bat0 -A POSTROUTING -j MASQUERADE
set -e
'';