From ff0052e8fdde56a8f3ff7aea6780720753503093 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Wed, 18 Sep 2002 12:25:15 +0000 Subject: test af detection logic in nat and rdr rules --- regress/sbin/pfctl/Makefile | 4 ++-- regress/sbin/pfctl/pf27.in | 17 +++++++++++++++++ regress/sbin/pfctl/pf27.ok | 12 ++++++++++++ 3 files changed, 31 insertions(+), 2 deletions(-) create mode 100644 regress/sbin/pfctl/pf27.in create mode 100644 regress/sbin/pfctl/pf27.ok (limited to 'regress/sbin/pfctl') 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 -- cgit v1.2.3