mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-03-09 15:40:03 +00:00
Merge branch 'test' into develop
This commit is contained in:
commit
30b9f47d69
16 changed files with 352 additions and 148 deletions
|
@ -6,6 +6,8 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
|
|||
set unbound.@unbound[-1].protocol="ip4_only"
|
||||
set unbound.@unbound[-1].enabled=1
|
||||
set unbound.@unbound[-1].recursion="aggressive"
|
||||
set unbound.@unbound[-1].validator='1'
|
||||
set unbound.@unbound[-1].validator_ntp='1'
|
||||
commit unbound
|
||||
EOF
|
||||
fi
|
||||
|
@ -16,6 +18,7 @@ if [ "$(uci -q get openmptcprouter.latest_versions)" = "" ]; then
|
|||
#add_list dhcp.@dnsmasq[-1].server="223.5.5.5"
|
||||
#add_list dhcp.@dnsmasq[-1].server="223.6.6.6"
|
||||
#add_list dhcp.@dnsmasq[-1].server="180.76.76.76"
|
||||
set dhcp.@dnsmasq[-1].dnssec='1'
|
||||
commit dhcp
|
||||
EOF
|
||||
fi
|
||||
|
|
|
@ -105,14 +105,14 @@ if [ "$(uci -q show firewall | grep ICMPv6-Lan-to-OMR)" = "" ]; then
|
|||
commit firewall
|
||||
EOF
|
||||
fi
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
del_list firewall.zone_wan.masq_dest='!10.0.0.0/8'
|
||||
del_list firewall.zone_wan.masq_dest='!172.16.0.0/12'
|
||||
del_list firewall.zone_wan.masq_dest='!192.168.0.0/16'
|
||||
add_list firewall.zone_wan.masq_dest='!10.0.0.0/8'
|
||||
add_list firewall.zone_wan.masq_dest='!172.16.0.0/12'
|
||||
add_list firewall.zone_wan.masq_dest='!192.168.0.0/16'
|
||||
EOF
|
||||
#uci -q batch <<-EOF >/dev/null
|
||||
# del_list firewall.zone_wan.masq_dest='!10.0.0.0/8'
|
||||
# del_list firewall.zone_wan.masq_dest='!172.16.0.0/12'
|
||||
# del_list firewall.zone_wan.masq_dest='!192.168.0.0/16'
|
||||
# add_list firewall.zone_wan.masq_dest='!10.0.0.0/8'
|
||||
# add_list firewall.zone_wan.masq_dest='!172.16.0.0/12'
|
||||
# add_list firewall.zone_wan.masq_dest='!192.168.0.0/16'
|
||||
#EOF
|
||||
if [ "$(ubus call system board | jsonfilter -e '@.board_name')" = "bananapi,bpi-r2" ] || [ "$(ubus call system board | jsonfilter -e '@.board_name' | grep -i wrt)" != "" ]; then
|
||||
uci -q batch <<-EOF >/dev/null
|
||||
set firewall.@defaults[0].flow_offloading='1'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue