diff options
Diffstat (limited to 'regress/sbin/pfctl')
-rw-r--r-- | regress/sbin/pfctl/Makefile | 4 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf27.in | 17 | ||||
-rw-r--r-- | regress/sbin/pfctl/pf27.ok | 12 |
3 files changed, 31 insertions, 2 deletions
diff --git a/regress/sbin/pfctl/Makefile b/regress/sbin/pfctl/Makefile index 67acc6c81dd..e2015f98905 100644 --- a/regress/sbin/pfctl/Makefile +++ b/regress/sbin/pfctl/Makefile @@ -1,6 +1,6 @@ -# $OpenBSD: Makefile,v 1.32 2002/09/18 08:59:08 henning Exp $ +# $OpenBSD: Makefile,v 1.33 2002/09/18 12:25:14 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 +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 PFFAIL=1 2 3 4 5 6 7 8 9 10 11 12 13 14 PFSIMPLE=1 2 diff --git a/regress/sbin/pfctl/pf27.in b/regress/sbin/pfctl/pf27.in new file mode 100644 index 00000000000..5b57cbaf8e0 --- /dev/null +++ b/regress/sbin/pfctl/pf27.in @@ -0,0 +1,17 @@ +# test af detection logic + +nat on lo0 from any to 127.0.0.1 -> lo0 +nat on lo0 from 127.0.0.1 to any -> lo0 +nat on lo0 from any to lo0 -> 127.0.0.1 + +nat on lo0 from any to 127.0.0.1 -> (lo0) +nat on lo0 from 127.0.0.1 to any -> (lo0) +nat on lo0 from any to (lo0) -> 127.0.0.1 + +rdr on lo0 from any to 127.0.0.1 -> lo0 +rdr on lo0 from 127.0.0.1 to any -> lo0 +rdr on lo0 from any to lo0 -> 127.0.0.1 + +rdr on lo0 from any to 127.0.0.1 -> (lo0) +rdr on lo0 from 127.0.0.1 to any -> (lo0) +rdr on lo0 from any to (lo0) -> 127.0.0.1 diff --git a/regress/sbin/pfctl/pf27.ok b/regress/sbin/pfctl/pf27.ok new file mode 100644 index 00000000000..cc081709ab4 --- /dev/null +++ b/regress/sbin/pfctl/pf27.ok @@ -0,0 +1,12 @@ +nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.1 +nat on lo0 inet from 127.0.0.1 to any -> 127.0.0.1 +nat on lo0 inet from any to 127.0.0.1 -> 127.0.0.1 +nat on lo0 inet from any to 127.0.0.1 -> (lo0) +nat on lo0 inet from 127.0.0.1 to any -> (lo0) +nat on lo0 inet from any to (lo0) -> 127.0.0.1 +rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.1 +rdr on lo0 inet from 127.0.0.1 to any -> 127.0.0.1 +rdr on lo0 inet from any to 127.0.0.1 -> 127.0.0.1 +rdr on lo0 inet from any to 127.0.0.1 -> (lo0) +rdr on lo0 inet from 127.0.0.1 to any -> (lo0) +rdr on lo0 inet from any to (lo0) -> 127.0.0.1 |