diff options
author | 2002-07-13 18:37:09 +0000 | |
---|---|---|
committer | 2002-07-13 18:37:09 +0000 | |
commit | 9af2fe3fddd8e5c85abeef32384b9280fa7bcf3b (patch) | |
tree | e78da893099f1f59bb52c413529dc9332209ed3a | |
parent | add list expansion for interface and proto in nat rules and for proto in rdr (diff) | |
download | wireguard-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.in | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf18.ok | 4 |
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 |