firewall: - handle NAT reflection in firewall hotplug, solves synchronizing issues on boot - introduce masq_src and masq_dest options to limit zone masq to specific ip ranges, supports multiple subnets and negation

SVN-Revision: 22888
This commit is contained in:
Jo-Philipp Wich
2010-09-04 15:49:13 +00:00
parent 3e747a7f75
commit ca5bf9e291
4 changed files with 33 additions and 8 deletions

View File

@@ -2,7 +2,7 @@
. /etc/functions.sh
if [ "$ACTION" = "ifup" ] && [ "$INTERFACE" = "wan" ]; then
if [ "$ACTION" = "add" ] && [ "$INTERFACE" = "wan" ]; then
local wanip=$(uci -P/var/state get network.wan.ipaddr)
iptables -t nat -F nat_reflection_in 2>/dev/null || {