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:
parent
69f657dbc7
commit
e15e1da8b5
1 changed files with 6 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue