mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
No masq for local IP
This commit is contained in:
parent
1a4fef4b0e
commit
d2c0673ac5
1 changed files with 9 additions and 0 deletions
|
@ -70,6 +70,15 @@ if [ "$(uci -q show firewall | grep ICMPv6-Lan-to-OMR)" = "" ]; then
|
|||
commit firewall
|
||||
EOF
|
||||
fi
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
del_list firewall.wan.masq_dest='!10.0.0.0/8'
|
||||
del_list firewall.wan.masq_dest='!172.16.0.0/12'
|
||||
del_list firewall.wan.masq_dest='!192.168.0.0/16'
|
||||
add_list firewall.wan.masq_dest='!10.0.0.0/8'
|
||||
add_list firewall.wan.masq_dest='!172.16.0.0/12'
|
||||
add_list firewall.wan.masq_dest='!192.168.0.0/16'
|
||||
EOF
|
||||
|
||||
rm -f /tmp/luci-indexcache
|
||||
|
||||
exit 0
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue