xref: /freebsd/sbin/pfctl/tests/files/pf0104.in (revision 405c3050f102b8c74782f0366c8ead927bd07b68)
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