diff options
author | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-01-18 05:16:44 +0000 |
---|---|---|
committer | Ryan Thomas McBride <mcbride@cvs.openbsd.org> | 2003-01-18 05:16:44 +0000 |
commit | 5bb5a86f0ca9cc93fa6b124815a3148d826cfe16 (patch) | |
tree | e1f39a9e84be62ec2ed6cd585b9046edb1c2e217 /regress/sbin/pfctl | |
parent | ed43c453864229241b6ba975a2e5b66450c6d235 (diff) |
Add "static-port" to some of the nat rule tests.
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r-- | regress/sbin/pfctl/pf18.in | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf18.ok | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf36.in | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf36.ok | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/regress/sbin/pfctl/pf18.in b/regress/sbin/pfctl/pf18.in index c6981f8d85a..6c1589cf2a6 100644 --- a/regress/sbin/pfctl/pf18.in +++ b/regress/sbin/pfctl/pf18.in @@ -15,6 +15,6 @@ 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 proto { udp, tcp } from any to any -> 10.0.0.8 static-port 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 0d9c533189d..34196031541 100644 --- a/regress/sbin/pfctl/pf18.ok +++ b/regress/sbin/pfctl/pf18.ok @@ -16,7 +16,7 @@ nat on lo0 inet from 192.168.1.7 to 172.14.1.2 -> 127.0.0.1 nat on lo0 inet from 192.168.1.7 to 172.16.2.0/24 -> 127.0.0.1 nat on lo0 inet from 192.168.0.0/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 udp all -> 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 static-port +nat on ! lo0 inet proto tcp all -> 10.0.0.8 static-port nat on lo0 inet all -> 10.0.0.8 nat on tun0 inet all -> 10.0.0.8 diff --git a/regress/sbin/pfctl/pf36.in b/regress/sbin/pfctl/pf36.in index 7739ec0209b..7071f843847 100644 --- a/regress/sbin/pfctl/pf36.in +++ b/regress/sbin/pfctl/pf36.in @@ -2,7 +2,7 @@ nat on lo0 from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } nat on lo0 from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin -nat on lo0 from any to 127.0.0.1 -> lo0/24 bitmask +nat on lo0 from any to 127.0.0.1 -> lo0/24 bitmask static-port nat on lo0 from any to 127.0.0.1 -> lo0/24 random nat on lo0 from any to lo0 -> 127.0.0.1/24 source-hash 0x0123456789ABCDEF0123456789abcdef nat on lo0 from any to 127.0.0.1 -> lo0/24 source-hash foobarlicious diff --git a/regress/sbin/pfctl/pf36.ok b/regress/sbin/pfctl/pf36.ok index ab22c412959..53f7d7e9120 100644 --- a/regress/sbin/pfctl/pf36.ok +++ b/regress/sbin/pfctl/pf36.ok @@ -1,6 +1,6 @@ nat on lo0 inet from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin nat on lo0 inet from any to 127.0.0.1 -> { 127.0.0.1, 127.0.0.2 } round-robin -nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 bitmask +nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 bitmask static-port nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 random nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 source-hash 0x0123456789abcdef0123456789abcdef nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.0/24 source-hash 0x4da8e393fd22f577426cfdf7fe52d3b0 |