Date: Thu, 16 Feb 2006 11:50:47 +1300 From: Barry Murphy <barry@unix.co.nz> To: freebsd-ipfw@freebsd.org Subject: ipfw with fw.one_pass doesnt work when specifying interface Message-ID: <03de01c63282$430d24f0$5038c80a@clear.co.nz>
next in thread | raw e-mail | index | archive | help
Hey guys, I've found "/sbin/sysctl net.inet.ip.fw.one_pass=0" not to work on rules that have the "in via IF" specified. Replicated: ipfw add 00082 count log ip from 60.234.68.88/29 to any in via em1 ipfw add 00082 count log ip from any to 60.234.68.88/29 out via em1 ipfw add 01082 count log ip from 60.234.68.88/29 to any in via em1 ipfw add 01082 count log ip from any to 60.234.68.88/29 out via em1 Rule 82 picks up traffic but rule 1082 gets none. It works fine if I use: ipfw add 00082 count ip from any to 60.234.68.88/29 in ipfw add 00082 count ip from 60.234.68.88/29 to any out ipfw add 01082 count ip from any to 60.234.68.88/29 in ipfw add 01082 count ip from 60.234.68.88/29 to any out However I need to specify an interface (em1) as I'll be adding a FWD rule to a transparent proxy and want it to count the traffic to the proxy too. Any ideas? Cheers Barry
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?03de01c63282$430d24f0$5038c80a>