add separate IFACE_WAN6 handling for sysv and macos targets

This commit is contained in:
bol-van
2022-11-15 15:26:13 +03:00
parent 9f303c2748
commit 3f8825e668
5 changed files with 20 additions and 11 deletions

View File

@@ -172,8 +172,8 @@ pf_anchor_zapret_v6_tpws()
echo "rdr on lo0 inet6 proto tcp from !::1 to any port $port -> fe80::1 port $1"
for t in $tbl; do
rule="route-to (lo0 fe80::1) inet6 proto tcp from !::1 to $t port $port user { >root }"
if [ -n "$IFACE_WAN" ] ; then
for wan in $IFACE_WAN; do
if [ -n "${IFACE_WAN6:-$IFACE_WAN}" ] ; then
for wan in ${IFACE_WAN6:-$IFACE_WAN}; do
echo "pass out on $wan $rule"
done
else