diff options
author | Henning Brauer <henning@cvs.openbsd.org> | 2003-07-04 11:09:06 +0000 |
---|---|---|
committer | Henning Brauer <henning@cvs.openbsd.org> | 2003-07-04 11:09:06 +0000 |
commit | 20eb66975b535c14b79707c3185b41bf00ff6cae (patch) | |
tree | 4bca285dd95a8f21fc3fde2f683ed6503769cc5c | |
parent | 987e16de712f4a11c166241ad06624bdcd2d5dc4 (diff) |
test nat pass
-rw-r--r-- | regress/sbin/pfctl/Makefile | 6 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf80.in | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf80.loaded | 8 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf80.ok | 2 |
4 files changed, 17 insertions, 3 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index 4bfeef1b765..f216cb17e87 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,4 +1,4 @@ -# $OpenBSD: Makefile,v 1.157 2003/06/18 11:38:56 henning Exp $ +# $OpenBSD: Makefile,v 1.158 2003/07/04 11:09:05 henning Exp $ # TARGETS # pf: feed pfNN.in through pfctl and check wether the output matches pfNN.ok @@ -13,14 +13,14 @@ 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 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 PFTESTS+=51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 -PFTESTS+=74 75 76 77 78 79 +PFTESTS+=74 75 76 77 78 79 80 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 37 38 39 40 41 42 PFSIMPLE=1 2 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 66 67 68 69 70 71 -PFLOAD+=72 73 74 75 76 77 78 79 +PFLOAD+=72 73 74 75 76 77 78 79 80 PFALTQ=1 2 3 4 5 6 7 8 9 10 11 12 13 14 # disabled; no altq in anchors # PFLOAD+=33 35 37 42 43 45 51 58 59 62 63 64 diff --git a/regress/sbin/pfctl/pf80.in b/regress/sbin/pfctl/pf80.in new file mode 100644 index 00000000000..6913dd36055 --- /dev/null +++ b/regress/sbin/pfctl/pf80.in @@ -0,0 +1,4 @@ +nat pass on lo0 from 10/8 to 172.16/16 -> 172.16.0.1 +rdr pass on lo0 proto tcp from any to 1.2.3.4 port 80 -> 127.0.0.1 port 8080 + +
\ No newline at end of file diff --git a/regress/sbin/pfctl/pf80.loaded b/regress/sbin/pfctl/pf80.loaded new file mode 100644 index 00000000000..410125072c1 --- /dev/null +++ b/regress/sbin/pfctl/pf80.loaded @@ -0,0 +1,8 @@ +@0 nat pass on lo0 inet from 10.0.0.0/8 to 172.16.0.0/16 -> 172.16.0.1 + [ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ] + [ queue: qname= qid=0 pqname= pqid=0 ] + [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] +@0 rdr pass on lo0 inet proto tcp from any to 1.2.3.4 port = www -> 127.0.0.1 port 8080 + [ Skip steps: i=end d=end f=end p=end sa=end sp=end da=end dp=end ] + [ queue: qname= qid=0 pqname= pqid=0 ] + [ Evaluations: 0 Packets: 0 Bytes: 0 States: 0 ] diff --git a/regress/sbin/pfctl/pf80.ok b/regress/sbin/pfctl/pf80.ok new file mode 100644 index 00000000000..0748c539a21 --- /dev/null +++ b/regress/sbin/pfctl/pf80.ok @@ -0,0 +1,2 @@ +nat pass on lo0 inet from 10.0.0.0/8 to 172.16.0.0/16 -> 172.16.0.1 +rdr pass on lo0 inet proto tcp from any to 1.2.3.4 port = www -> 127.0.0.1 port 8080 |