NetBSD/tests/ipf/regress/in6
jmmv b9daf172a0 Add the ipf tests developed by Lukasz Strzygowski as part of the atfify
GSoC 2008 project.  These were originally inside the kernel subdirectory
but I think they belong in their own top-level directory because ipf
consists of more components than just the kernel-level packet filter.
2009-02-20 21:42:59 +00:00

9 lines
478 B
Plaintext

map foo0 from any port = 1 to any port != 0 -> 0/32 udp
map foo0 from any port eq 1 to any port ne 0 -> 0/32 udp
map foo0 from any port < 1 to any port > 0 -> 0/32 tcp
map foo0 from any port lt 1 to any port gt 0 -> 0/32 tcp
map foo0 from any port <= 1 to any port >= 0 -> 0/32 tcp/udp
map foo0 from any port le 1 to any port ge 0 -> 0/32 tcp/udp
map foo0 from any port 1 >< 20 to any port 20 <> 40 -> 0/32 tcp/udp
map foo0 from any port 10:20 to any port 30:40 -> 0/32 tcp/udp