]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC r222582:
authorae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Jul 2011 06:56:31 +0000 (06:56 +0000)
committerae <ae@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Wed, 6 Jul 2011 06:56:31 +0000 (06:56 +0000)
commit4680d07385c018e14a26b48ac6155c9f42b08db6
treef7a05c64bd75aad4eddb1cb5c5a45bd5e51bc0e2
parentf926a628547788bdff7a3f858c4c2c4f2a26766f
MFC r222582:
  O_FORWARD_IP is only action which depends from the result of lookup of
  dynamic rules. We are doing forwarding in the following cases:
   o For the simple ipfw fwd rule, e.g.

   fwd 10.0.0.1 ip from any to any out xmit em0
   fwd 127.0.0.1,3128 tcp from any to any 80 in recv em1

   o For the dynamic fwd rule, e.g.

    fwd 192.168.0.1 tcp from any to 10.0.0.3 3333 setup keep-state

          When this rule triggers it creates a dynamic rule, but this
   dynamic rule should forward packets only in forward direction.

   o And the last case that does not work before - simple fwd rule which
   triggers when some dynamic rule is already executed.

  PR: kern/136695, kern/147720, kern/150798

git-svn-id: svn://svn.freebsd.org/base/stable/8@223819 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/netinet/ipfw/ip_fw2.c