diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-13 18:37:10 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-07-13 18:37:10 +0000 |
commit | 6a0b2cbb4e84477ece7ccc1341e7ca98f3322231 (patch) | |
tree | 42b9a570adc414764634c99fb8cd0194d267fb3c | |
parent | eeb905ca672ebd122cfca73af735b3f613b12a0b (diff) |
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 |