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