mirror of
https://github.com/bol-van/zapret.git
synced 2025-04-19 21:42:59 +03:00
docs : find_wan => find_wan_all
This commit is contained in:
parent
7fdc41fc21
commit
1ce5609038
@ -101,8 +101,7 @@ SOXIFIER_PORT=1099
|
|||||||
|
|
||||||
create_ipset no-update
|
create_ipset no-update
|
||||||
|
|
||||||
network_find_wan wan_iface
|
network_find_wan_all wan_iface
|
||||||
|
|
||||||
for ext_iface in $wan_iface; do
|
for ext_iface in $wan_iface; do
|
||||||
network_get_device ext_device $ext_iface
|
network_get_device ext_device $ext_iface
|
||||||
ipt OUTPUT -t nat -o $ext_device -p tcp --dport 443 -m set --match-set zapret dst -j REDIRECT --to-port $SOXIFIER_PORT
|
ipt OUTPUT -t nat -o $ext_device -p tcp --dport 443 -m set --match-set zapret dst -j REDIRECT --to-port $SOXIFIER_PORT
|
||||||
|
@ -237,11 +237,9 @@ OUTPUT относится к исходящим с роутера пакетам
|
|||||||
|
|
||||||
create_ipset no-update
|
create_ipset no-update
|
||||||
|
|
||||||
network_find_wan wan_iface
|
network_find_wan_all wan_iface
|
||||||
|
|
||||||
for ext_iface in $wan_iface; do
|
for ext_iface in $wan_iface; do
|
||||||
network_get_device DEVICE $ext_iface
|
network_get_device DEVICE $ext_iface
|
||||||
|
|
||||||
ipt OUTPUT -t mangle -o $DEVICE -p tcp --dport 443 -m set --match-set zapret dst -j MARK --set-mark 0x800/0x800
|
ipt OUTPUT -t mangle -o $DEVICE -p tcp --dport 443 -m set --match-set zapret dst -j MARK --set-mark 0x800/0x800
|
||||||
ipt OUTPUT -t mangle -o $DEVICE -m set --match-set ipban dst -j MARK --set-mark 0x800/0x800
|
ipt OUTPUT -t mangle -o $DEVICE -m set --match-set ipban dst -j MARK --set-mark 0x800/0x800
|
||||||
done
|
done
|
||||||
@ -306,11 +304,9 @@ config rule
|
|||||||
|
|
||||||
create_ipset no-update
|
create_ipset no-update
|
||||||
|
|
||||||
network_find_wan wan_iface
|
network_find_wan_all wan_iface
|
||||||
|
|
||||||
for ext_iface in $wan_iface; do
|
for ext_iface in $wan_iface; do
|
||||||
network_get_device DEVICE $ext_iface
|
network_get_device DEVICE $ext_iface
|
||||||
|
|
||||||
ipt OUTPUT -t mangle -o $DEVICE -p tcp --dport 443 -m set --match-set zapret dst -j MARK --set-mark 0x800/0x800
|
ipt OUTPUT -t mangle -o $DEVICE -p tcp --dport 443 -m set --match-set zapret dst -j MARK --set-mark 0x800/0x800
|
||||||
ipt OUTPUT -t mangle -o $DEVICE -m set --match-set ipban dst -j MARK --set-mark 0x800/0x800
|
ipt OUTPUT -t mangle -o $DEVICE -m set --match-set ipban dst -j MARK --set-mark 0x800/0x800
|
||||||
ipt OUTPUT -t mangle -o $DEVICE -j MARK --set-mark 0x1000/0x1000
|
ipt OUTPUT -t mangle -o $DEVICE -j MARK --set-mark 0x1000/0x1000
|
||||||
|
Loading…
x
Reference in New Issue
Block a user