mirror of
https://github.com/Ysurac/openmptcprouter-feeds.git
synced 2025-02-24 06:44:21 +00:00
Set dnsmasq config after nft set are created (#443)
This commit is contained in:
commit
aac6bfe6d9
1 changed files with 6 additions and 7 deletions
|
@ -560,13 +560,6 @@ _intf_rule() {
|
||||||
[ -z "$intf" ] && return
|
[ -z "$intf" ] && return
|
||||||
# [ -z "$RELOAD" ] || [ "$(uci show firewall.omr_dst_bypass_$intf_4)" = "" ] && {
|
# [ -z "$RELOAD" ] || [ "$(uci show firewall.omr_dst_bypass_$intf_4)" = "" ] && {
|
||||||
#unset RELOAD
|
#unset RELOAD
|
||||||
#echo "$intf ip set dhcp"
|
|
||||||
uci batch <<-EOF
|
|
||||||
set dhcp.omr_dst_bypass_$intf=ipset
|
|
||||||
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_4"
|
|
||||||
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_6"
|
|
||||||
commit dhcp
|
|
||||||
EOF
|
|
||||||
#echo "firewall omr_dst_bypass ipset"
|
#echo "firewall omr_dst_bypass ipset"
|
||||||
uci -q batch <<-EOF
|
uci -q batch <<-EOF
|
||||||
set firewall.omr_dst_bypass_${intf}_4=ipset
|
set firewall.omr_dst_bypass_${intf}_4=ipset
|
||||||
|
@ -678,6 +671,12 @@ _intf_rule() {
|
||||||
commit network
|
commit network
|
||||||
EOF
|
EOF
|
||||||
fi
|
fi
|
||||||
|
uci batch <<-EOF
|
||||||
|
set dhcp.omr_dst_bypass_$intf=ipset
|
||||||
|
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_4"
|
||||||
|
add_list dhcp.omr_dst_bypass_$intf.name="omr_dst_bypass_${intf}_6"
|
||||||
|
commit dhcp
|
||||||
|
EOF
|
||||||
|
|
||||||
if [ "$(uci -q get openmptcprouter.settings.proxy)" = "shadowsocks" ]; then
|
if [ "$(uci -q get openmptcprouter.settings.proxy)" = "shadowsocks" ]; then
|
||||||
config_load shadowsocks-libev
|
config_load shadowsocks-libev
|
||||||
|
|
Loading…
Reference in a new issue