From fd2589ce02dae1c3510190df06166a5bd3fcf5a8 Mon Sep 17 00:00:00 2001 From: bolvan Date: Thu, 16 May 2019 18:09:26 +0300 Subject: [PATCH] docs : create_ipset from init.d/openwrt/functions --- docs/https.txt | 10 ++++------ docs/wireguard/wireguard_iproute_openwrt.txt | 20 ++++++++------------ 2 files changed, 12 insertions(+), 18 deletions(-) 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