diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-05-03 17:01:48 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-05-03 17:01:48 +0000 |
commit | 52c72ab5205d388f2ab1e0c6b079a803ffb14336 (patch) | |
tree | e4dde4649c5d3fe9d7fa4c20511ba80d4c6762d3 | |
parent | ca410e820b52cf536c5ca2ba9b9d172608a2287f (diff) |
more extensive antispoof test
-rw-r--r-- | regress/sbin/pfctl/Makefile | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfsetup4.clean | 1 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfsetup4.in | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfsetup4.ok | 2 | ||||
-rw-r--r-- | regress/sbin/pfctl/pfsetup4.setup | 1 |
5 files changed, 8 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index 792bf6a7063..90bf8eaa407 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.134 2003/05/01 16:18:10 henning Exp $ +# $OpenBSD: Makefile,v 1.135 2003/05/03 17:01:47 henning Exp $ # TARGETS # pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok @@ -16,7 +16,7 @@ PFTESTS+=51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 PFFAIL=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 PFFAIL+=28 29 30 31 32 33 34 35 36 PFSIMPLE=1 2 -PFSETUP=1 2 3 +PFSETUP=1 2 3 4 PFLOAD=1 2 3 4 5 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 23 24 25 26 27 28 29 PFLOAD+=30 31 32 34 36 38 39 40 44 46 47 48 49 54 56 60 61 65 PFALTQ=1 2 3 4 5 6 7 8 9 10 11 12 13 14 diff --git a/regress/sbin/pfctl/pfsetup4.clean b/regress/sbin/pfctl/pfsetup4.clean new file mode 100644 index 00000000000..4f3daea01e2 --- /dev/null +++ b/regress/sbin/pfctl/pfsetup4.clean @@ -0,0 +1 @@ +ifconfig lo1 inet 192.168.0.1 netmask 0xffffff00 delete diff --git a/regress/sbin/pfctl/pfsetup4.in b/regress/sbin/pfctl/pfsetup4.in new file mode 100644 index 00000000000..474a75f2022 --- /dev/null +++ b/regress/sbin/pfctl/pfsetup4.in @@ -0,0 +1,2 @@ +antispoof log quick for { lo0 lo1 } inet \ + label "antispoof:$if:$srcaddr:$dstaddr" diff --git a/regress/sbin/pfctl/pfsetup4.ok b/regress/sbin/pfctl/pfsetup4.ok new file mode 100644 index 00000000000..4a9c07421b5 --- /dev/null +++ b/regress/sbin/pfctl/pfsetup4.ok @@ -0,0 +1,2 @@ +block drop in log quick on ! lo0 inet from 127.0.0.0/8 to any label "antispoof:lo0:127.0.0.0/8:any" +block drop in log quick on ! lo1 inet from 192.168.0.0/24 to any label "antispoof:lo1:192.168.0.0/24:any" diff --git a/regress/sbin/pfctl/pfsetup4.setup b/regress/sbin/pfctl/pfsetup4.setup new file mode 100644 index 00000000000..ef2f8f25de4 --- /dev/null +++ b/regress/sbin/pfctl/pfsetup4.setup @@ -0,0 +1 @@ +ifconfig lo1 inet 192.168.0.1 netmask 0xffffff00 |