summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf20.in
blob: 3b22a5155c4a8b901eae283fcfe67a328e9a0df2 (plain)
1
2
3
4
5
6
7
8
9
# Test whether list expansion in NAT/RDR works correctly

EVIL = "lo0"
GOOD = "{ lo0, lo1 }"
GOOD_NET = "{ 127.0.0.0/24, 10.0.1.0/24 }"
DEST_NET = "{ 1.2.3.4/25, 2.4.6.8/30 }"

nat on $EVIL from $GOOD_NET to $DEST_NET -> $EVIL
rdr on $GOOD proto tcp from $GOOD_NET to $DEST_NET port 21 -> 127.0.0.1 port 8021