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