Change handling for natted networks - Set rule for both, incomming and outgoing.

This commit is contained in:
Christoph 2019-02-20 12:27:08 +01:00
parent e9f1c30ad2
commit 442dc29d8b

View File

@ -258,9 +258,9 @@ if [[ ${#nat_network_arr[@]} -gt 0 ]] && $kernel_activate_forwarding ; then
continue
fi
# - ?? - Don't know which rule is the right one
# - ?? - Don't know which rule is the right one , maybe both..
# -
#$ipt -t nat -A POSTROUTING -o ${_val_arr[1]} -d ${_val_arr[0]} -j MASQUERADE
$ipt -t nat -A POSTROUTING -o ${_val_arr[1]} -d ${_val_arr[0]} -j MASQUERADE
$ipt -t nat -A POSTROUTING -o ${_val_arr[1]} -s ${_val_arr[0]} -j MASQUERADE
done
fi