mirror of
https://github.com/bol-van/zapret.git
synced 2024-11-29 21:40:52 +03:00
init.d: openwrt-minimal exclude localnet
This commit is contained in:
parent
2914da35d6
commit
8b3cac6a9a
@ -2,8 +2,8 @@ DISABLE_IPV6=0
|
|||||||
TP_PORT=900
|
TP_PORT=900
|
||||||
TP_USER=daemon
|
TP_USER=daemon
|
||||||
|
|
||||||
EXCLUDE4="10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 169.254.0.0/16"
|
EXCLUDE4="10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 169.254.0.0/16 127.0.0.0/8"
|
||||||
EXCLUDE6="fc00::/7 fe80::/10"
|
EXCLUDE6="fc00::/7 fe80::/10 ::1"
|
||||||
IPTS="iptables ip6tables"
|
IPTS="iptables ip6tables"
|
||||||
[ "$DISABLE_IPV6" = 1 ] && IPTS=iptables
|
[ "$DISABLE_IPV6" = 1 ] && IPTS=iptables
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
set tpws_exclude4 {
|
set tpws_exclude4 {
|
||||||
type ipv4_addr; flags interval; auto-merge;
|
type ipv4_addr; flags interval; auto-merge;
|
||||||
elements = { 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16 }
|
elements = { 10.0.0.0/8,172.16.0.0/12,192.168.0.0/16,169.254.0.0/16,127.0.0.0/8 }
|
||||||
}
|
}
|
||||||
set tpws_exclude6 {
|
set tpws_exclude6 {
|
||||||
type ipv6_addr; flags interval; auto-merge;
|
type ipv6_addr; flags interval; auto-merge;
|
||||||
elements = { fc00::/7, fe80::/10 }
|
elements = { fc00::/7, fe80::/10, ::1 }
|
||||||
}
|
}
|
||||||
chain tpws_pre {
|
chain tpws_pre {
|
||||||
type nat hook prerouting priority dstnat; policy accept;
|
type nat hook prerouting priority dstnat; policy accept;
|
||||||
|
Loading…
Reference in New Issue
Block a user