Change rule for masquerading, but i don't know, if the new one is correct.

This commit is contained in:
2018-03-19 01:17:11 +01:00
parent aa6a6aa992
commit 6765ae9020
2 changed files with 8 additions and 1 deletions

View File

@ -258,7 +258,10 @@ if [[ ${#nat_network_arr[@]} -gt 0 ]] && $kernel_activate_forwarding ; then
continue
fi
$ipt -t nat -A POSTROUTING -o ${_val_arr[1]} -d ${_val_arr[0]} -j MASQUERADE
# - ?? - Don't know which rule is the right one
# -
#$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