From 442dc29d8bcea540e020ccf0e0698f986b1d3853 Mon Sep 17 00:00:00 2001 From: Christoph Date: Wed, 20 Feb 2019 12:27:08 +0100 Subject: [PATCH] Change handling for natted networks - Set rule for both, incomming and outgoing. --- ipt-firewall-gateway | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipt-firewall-gateway b/ipt-firewall-gateway index 699b89c..44ee8ca 100755 --- a/ipt-firewall-gateway +++ b/ipt-firewall-gateway @@ -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