mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-12 18:41:51 +00:00
Remove some firewall IPv6 default rules
This commit is contained in:
parent
2630b9e357
commit
922b750c85
1 changed files with 12 additions and 0 deletions
|
@ -20,6 +20,18 @@ if [ "$(uci -q get firewall.zone_vpn)" = "" ]; then
|
|||
EOF
|
||||
fi
|
||||
|
||||
if [ "$(uci -q get firewall.@rule[5].name)" = "Allow-ICMPv6-Input" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
del firewall.@rule[5]
|
||||
commit firewall
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q get firewall.@rule[6].name)" = "Allow-ICMPv6-Forward" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
del firewall.@rule[6]
|
||||
commit firewall
|
||||
EOF
|
||||
fi
|
||||
if [ "$(uci -q show firewall | grep Allow-All-Ping)" = "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
add firewall rule
|
||||
|
|
Loading…
Reference in a new issue