init.d: openwrt-minimal exclude localnet

This commit is contained in:
bol-van 2024-10-21 22:18:30 +03:00
parent 2914da35d6
commit 8b3cac6a9a
2 changed files with 4 additions and 4 deletions

View File

@ -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

View File

@ -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;