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