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

Better iptables rules for omr-bypass

This commit is contained in:
Ycarus 2018-10-22 15:44:36 +02:00
parent 469830a076
commit 06a28d4227
7 changed files with 50 additions and 59 deletions

View file

@ -54,5 +54,15 @@ if [ "$(uci -q get ucitrack.@shadowsocks-libev[-1].affects | grep omr-bypass)" =
add_list ucitrack.@shadowsocks-libev[-1].affects=omr-bypass
EOF
fi
s=firewall.omr-bypass
uci get "$s" >/dev/null || {
uci batch <<-EOF
set $s=include
set $s.path=/etc/firewall.omr-bypass
set $s.reload=1
commit firewall
EOF
}
rm -f /tmp/luci-indexcache
exit 0