diff options
author | jasoni <jasoni@cvs.openbsd.org> | 2001-11-26 16:53:28 +0000 |
---|---|---|
committer | jasoni <jasoni@cvs.openbsd.org> | 2001-11-26 16:53:28 +0000 |
commit | 33b0aaaf67c75ef3528285b8466657e39b03ed09 (patch) | |
tree | 26db17c94960bacb81a43751142f4d1a9cd3ff87 /regress/sbin | |
parent | cb78ac1fa03ec7031b5ea7554a93f69bc207077f (diff) |
add tests for fastroute options
Diffstat (limited to 'regress/sbin')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 6 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf13.in | 16 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf13.ok | 12 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfail8.in | 3 |
4 files changed, 34 insertions, 3 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index e3a0a4769c2..95b8a31a4a3 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,9 +1,9 @@ -# $OpenBSD: Makefile,v 1.10 2001/10/07 11:56:58 dhartmei Exp $ +# $OpenBSD: Makefile,v 1.11 2001/11/26 16:53:27 jasoni Exp $ NOMAN= NOPROG= -PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 -PFFAIL=1 2 3 4 5 6 7 +PFTESTS=1 2 3 4 5 6 7 8 9 10 11 12 13 +PFFAIL=1 2 3 4 5 6 7 8 .for n in ${PFFAIL} regress: pfail${n} diff --git a/regress/sbin/pfctl/pf13.in b/regress/sbin/pfctl/pf13.in new file mode 100644 index 00000000000..0c69676387c --- /dev/null +++ b/regress/sbin/pfctl/pf13.in @@ -0,0 +1,16 @@ +pass in quick on enc0 fastroute all +pass in quick on enc0 fastroute inet all +pass in quick on enc0 fastroute inet6 all + +pass out quick on tun0 route-to tun1 all +pass out quick on tun0 route-to tun1 from any to 192.168.1.1 +pass out quick on tun0 route-to tun1 from any to fec0::1 + +block in on tun0 dup-to tun1:192.168.1.1 proto tcp from any to any port = 21 +block in on tun0 dup-to tun1:fec0::1 proto tcp from any to any port = 21 + +pass in quick on tun0 route-to tun1 from 192.168.1.1/32 to 10.1.1.1/32 +pass in quick on tun0 route-to tun1 from fec0::1/64 to fec1::2/128 + +pass in quick on tun0 dup-to tun1:192.168.1.100 from 192.168.1.1/32 to 10.1.1.1/32 +pass in quick on tun0 dup-to tun1:fec1::2 from fec0::1/64 to fec1::2/128 diff --git a/regress/sbin/pfctl/pf13.ok b/regress/sbin/pfctl/pf13.ok new file mode 100644 index 00000000000..870ba872e54 --- /dev/null +++ b/regress/sbin/pfctl/pf13.ok @@ -0,0 +1,12 @@ +@0 pass in quick on enc0 fastroute all +@0 pass in quick on enc0 fastroute inet all +@0 pass in quick on enc0 fastroute inet6 all +@0 pass out quick on tun0 route-to tun1 all +@0 pass out quick on tun0 route-to tun1 inet from any to 192.168.1.1/32 +@0 pass out quick on tun0 route-to tun1 inet6 from any to fec0::1/128 +@0 block in on tun0 dup-to tun1:192.168.1.1 inet proto tcp from any to any port = ftp +@0 block in on tun0 dup-to tun1:fec0::1 inet6 proto tcp from any to any port = ftp +@0 pass in quick on tun0 route-to tun1 inet from 192.168.1.1/32 to 10.1.1.1/32 +@0 pass in quick on tun0 route-to tun1 inet6 from fec0::1/64 to fec1::2/128 +@0 pass in quick on tun0 dup-to tun1:192.168.1.100 inet from 192.168.1.1/32 to 10.1.1.1/32 +@0 pass in quick on tun0 dup-to tun1:fec1::2 inet6 from fec0::1/64 to fec1::2/128 diff --git a/regress/sbin/pfctl/pfail8.in b/regress/sbin/pfctl/pfail8.in new file mode 100644 index 00000000000..f081caaa864 --- /dev/null +++ b/regress/sbin/pfctl/pfail8.in @@ -0,0 +1,3 @@ +block in quick on tun0 dup-to tun1:fec0::1 from any to 192.168.1.0/24 +block in quick on tun0 dup-to tun1:192.168.1.1 from any to fec0::1/128 + |