Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 3 Dec 2018 22:02:08 +0000 (UTC)
From:      Kristof Provost <kp@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-stable@freebsd.org, svn-src-stable-12@freebsd.org
Subject:   svn commit: r341444 - stable/12/sbin/pfctl/tests/files
Message-ID:  <201812032202.wB3M28sX047393@repo.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: kp
Date: Mon Dec  3 22:02:08 2018
New Revision: 341444
URL: https://svnweb.freebsd.org/changeset/base/341444

Log:
  MFC r339627:
  
  pf tests: Fix incorrect test for PR 231323
  
  Fix r339466.  The test result file did not list the rdr rule.
  Additionally, the route-to rule needs a redirection address.
  
  PR:		233739

Modified:
  stable/12/sbin/pfctl/tests/files/pf1005.in
  stable/12/sbin/pfctl/tests/files/pf1005.ok
Directory Properties:
  stable/12/   (props changed)

Modified: stable/12/sbin/pfctl/tests/files/pf1005.in
==============================================================================
--- stable/12/sbin/pfctl/tests/files/pf1005.in	Mon Dec  3 21:07:10 2018	(r341443)
+++ stable/12/sbin/pfctl/tests/files/pf1005.in	Mon Dec  3 22:02:08 2018	(r341444)
@@ -1,3 +1,3 @@
 rdr on em0 proto tcp from any to any -> 1.1.1.1 port 2121
-pass out log quick on lo0 route-to lo0 from any to any
-pass in log quick on lo0 route-to (lo0 localhost) from any to any
+pass out log quick on lo0 route-to (lo0 localhost) inet from any to any
+pass in log quick on lo0 route-to (lo0 localhost) inet6 from any to any

Modified: stable/12/sbin/pfctl/tests/files/pf1005.ok
==============================================================================
--- stable/12/sbin/pfctl/tests/files/pf1005.ok	Mon Dec  3 21:07:10 2018	(r341443)
+++ stable/12/sbin/pfctl/tests/files/pf1005.ok	Mon Dec  3 22:02:08 2018	(r341444)
@@ -1,2 +1,3 @@
-pass out log quick on lo0 route-to (lo0 ?) all flags S/SA keep state
+rdr on em0 inet proto tcp all -> 1.1.1.1 port 2121
+pass out log quick on lo0 route-to (lo0 127.0.0.1) inet all flags S/SA keep state
 pass in log quick on lo0 route-to (lo0 ::1) inet6 all flags S/SA keep state



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201812032202.wB3M28sX047393>