1
0
Fork 0
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:
Ycarus (Yannick Chabanois) 2020-06-03 17:19:15 +02:00
parent 2630b9e357
commit 922b750c85

View file

@ -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