diff --git a/docs/https.txt b/docs/https.txt index 4e795dc..6ddd47f 100644 --- a/docs/https.txt +++ b/docs/https.txt @@ -97,12 +97,10 @@ redsocks { --- /etc/firewall.user ----- SOXIFIER_PORT=1099 -ipt() -{ - iptables -C $@ 2>/dev/null || iptables -I $@ -} - -. /lib/functions/network.sh +. /opt/zapret/init.d/openwrt/functions + +create_ipset no-update + network_find_wan wan_iface for ext_iface in $wan_iface; do diff --git a/docs/wireguard/wireguard_iproute_openwrt.txt b/docs/wireguard/wireguard_iproute_openwrt.txt index d6ac55b..af5bffb 100644 --- a/docs/wireguard/wireguard_iproute_openwrt.txt +++ b/docs/wireguard/wireguard_iproute_openwrt.txt @@ -233,12 +233,10 @@ OUTPUT относится к исходящим с роутера пакетам Если с самого роутера ничего заруливать не надо, можно опустить все до команд с PREROUTING. --/etc/firewall.user---------------------------- -ipt() -{ - iptables -C $@ 2>/dev/null || iptables -I $@ -} - -. /lib/functions/network.sh +. /opt/zapret/init.d/openwrt/functions + +create_ipset no-update + network_find_wan wan_iface for ext_iface in $wan_iface; do @@ -304,12 +302,10 @@ config rule Если вам не актуальны исходящие с самого роутера, то можно ничего не менять. --/etc/firewall.user---------------------------- -ipt() -{ - iptables -C $@ 2>/dev/null || iptables -I $@ -} - -. /lib/functions/network.sh +. /opt/zapret/init.d/openwrt/functions + +create_ipset no-update + network_find_wan wan_iface for ext_iface in $wan_iface; do