summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorhenning <henning@openbsd.org>2002-07-13 18:37:09 +0000
committerhenning <henning@openbsd.org>2002-07-13 18:37:09 +0000
commit9af2fe3fddd8e5c85abeef32384b9280fa7bcf3b (patch)
treee78da893099f1f59bb52c413529dc9332209ed3a
parentadd list expansion for interface and proto in nat rules and for proto in rdr (diff)
downloadwireguard-openbsd-9af2fe3fddd8e5c85abeef32384b9280fa7bcf3b.tar.xz
wireguard-openbsd-9af2fe3fddd8e5c85abeef32384b9280fa7bcf3b.zip
regression test for interface and proto list expansion in nat rules
-rw-r--r--regress/sbin/pfctl/pf18.in4
-rw-r--r--regress/sbin/pfctl/pf18.ok4
2 files changed, 8 insertions, 0 deletions
diff --git a/regress/sbin/pfctl/pf18.in b/regress/sbin/pfctl/pf18.in
index 629f18ea319..c6981f8d85a 100644
--- a/regress/sbin/pfctl/pf18.in
+++ b/regress/sbin/pfctl/pf18.in
@@ -14,3 +14,7 @@ nat on lo0 inet from $TEST_LIST1 to $TEST_LIST2 -> lo0
nat on lo0 inet from 192.168.0.1/24 to any -> (lo0)
nat on lo0 from 192.168.1.8 to ! 172.17.0.0/16 -> 10.0.0.8
+
+nat on ! lo0 proto { udp, tcp } from any to any -> 10.0.0.8
+
+nat on { lo0, tun0 } from any to any -> 10.0.0.8
diff --git a/regress/sbin/pfctl/pf18.ok b/regress/sbin/pfctl/pf18.ok
index b29d0497a3a..5ce88f81143 100644
--- a/regress/sbin/pfctl/pf18.ok
+++ b/regress/sbin/pfctl/pf18.ok
@@ -16,3 +16,7 @@ nat on lo0 inet from 192.168.1.5 to 172.14.1.2 -> 127.0.0.1
nat on lo0 inet from 192.168.1.5 to 172.6.1.1 -> 127.0.0.1
nat on lo0 inet from 192.168.0.1/24 to any -> (lo0)
nat on lo0 inet from 192.168.1.8 to ! 172.17.0.0/16 -> 10.0.0.8
+nat on ! lo0 inet proto tcp all -> 10.0.0.8
+nat on ! lo0 inet proto udp all -> 10.0.0.8
+nat on tun0 inet all -> 10.0.0.8
+nat on lo0 inet all -> 10.0.0.8