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

Add HNAT by default for BPI-R2

This commit is contained in:
Ycarus 2018-10-16 08:21:03 +02:00
parent 69f657dbc7
commit e15e1da8b5

View file

@ -78,6 +78,12 @@ uci -q batch <<-EOF >/dev/null
add_list firewall.wan.masq_dest='!172.16.0.0/12'
add_list firewall.wan.masq_dest='!192.168.0.0/16'
EOF
if [ "$(ubus call system board | jsonfilter -e '@.board_name')" = "bananapi,bpi-r2" ]; then
uci -q batch <<-EOF >/dev/null
set firewall.@defaults[0].flow_offloading='1'
set firewall.@defaults[0].flow_offloading_hw='1'
EOF
fi
rm -f /tmp/luci-indexcache