summaryrefslogtreecommitdiff
path: root/regress/sbin/pfctl/pf104.in
blob: 91bd43e3a4bb58f4408ef942522b901874308fd6 (plain)
1
2
3
4
5
6
7
8
9
10
# This test assumes that localhost points to 127.0.0.1 first
pass in       proto tcp to port 25 divert-to localhost port 8025
# Test IPv4 addresses
pass in       proto tcp to port 25 divert-to 127.0.0.1 port 8025
pass in inet  proto tcp to port 25 divert-to 127.0.0.1 port 8025
pass in inet  proto tcp to port 25 divert-to localhost port 8025
# Test IPv6 addresses
pass in       proto tcp to port 25 divert-to ::1       port 8025
pass in inet6 proto tcp to port 25 divert-to ::1       port 8025
pass in inet6 proto tcp to port 25 divert-to localhost port 8025