diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-18 14:03:49 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2002-09-18 14:03:49 +0000 |
commit | 6e5d4e25106c6530f12b6c17869c20fb2bc66cbe (patch) | |
tree | 2097a6d1194a54faec5d7f690d19886f8a67f417 /regress/sbin | |
parent | a91fd736527b29aa9cd786b3d239d0708bc67e72 (diff) |
test port ranges in rdr rules
Diffstat (limited to 'regress/sbin')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf29.in | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf29.ok | 2 |
3 files changed, 6 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index ccf44cee8c6..9573530e68f 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,7 +1,7 @@ -# $OpenBSD: Makefile,v 1.34 2002/09/18 13:33:43 henning Exp $ +# $OpenBSD: Makefile,v 1.35 2002/09/18 14:03:48 henning Exp $ PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 -PFTESTS+=28 +PFTESTS+=28 29 PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 PFSIMPLE=1 2 diff --git a/regress/sbin/pfctl/pf29.in b/regress/sbin/pfctl/pf29.in new file mode 100644 index 00000000000..e34b65a9b46 --- /dev/null +++ b/regress/sbin/pfctl/pf29.in @@ -0,0 +1,2 @@ +rdr on lo0 proto tcp from any to 192.168.0.0/24 port 8000:8010 -> 127.0.0.1 port 8000:* +rdr on lo0 proto tcp from any to 192.168.0.0/24 port ftp:ssh -> 127.0.0.1 port bgp:* diff --git a/regress/sbin/pfctl/pf29.ok b/regress/sbin/pfctl/pf29.ok new file mode 100644 index 00000000000..92a44130def --- /dev/null +++ b/regress/sbin/pfctl/pf29.ok @@ -0,0 +1,2 @@ +rdr on lo0 inet proto tcp from any to 192.168.0.0/24 port 8000:8010 -> 127.0.0.1 port 8000:* +rdr on lo0 inet proto tcp from any to 192.168.0.0/24 port 21:22 -> 127.0.0.1 port 179:* |