xref: /freebsd/sbin/pfctl/tests/files/pf0104.in (revision 7ef62cebc2f965b0f640263e179276928885e33d)
1# This test assumes that localhost points to 127.0.0.1 first
2pass in       proto tcp to port 25 divert-to localhost port 8025
3# Test IPv4 addresses
4pass in       proto tcp to port 25 divert-to 127.0.0.1 port 8025
5pass in inet  proto tcp to port 25 divert-to 127.0.0.1 port 8025
6pass in inet  proto tcp to port 25 divert-to localhost port 8025
7# Test IPv6 addresses
8pass in       proto tcp to port 25 divert-to ::1       port 8025
9pass in inet6 proto tcp to port 25 divert-to ::1       port 8025
10pass in inet6 proto tcp to port 25 divert-to localhost port 8025
11