1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter-feeds.git synced 2025-03-09 15:40:03 +00:00

Allow Lan to Wan

This commit is contained in:
Ycarus 2018-05-28 17:27:14 +02:00
parent a259dea40a
commit cfe62425f2

View file

@ -13,6 +13,17 @@ if [ "$(uci -q show firewall | grep Allow-All-Ping)" = "" ]; then
commit firewall
EOF
fi
if [ "$(uci -q show firewall | grep Allow-Lan-to-Wan)" = "" ]; then
uci -q batch <<-EOF >/dev/null
add firewall rule
set firewall.@rule[-1].enabled='1'
set firewall.@rule[-1].target='ACCEPT'
set firewall.@rule[-1].name='Allow-Lan-to-Wan'
set firewall.@rule[-1].dest='wan'
set firewall.@rule[-1].src='lan'
commit firewall
EOF
fi
rm -f /tmp/luci-indexcache
exit 0