From owner-freebsd-ipfw@FreeBSD.ORG Wed Feb 15 22:50:57 2006 Return-Path: X-Original-To: freebsd-ipfw@freebsd.org Delivered-To: freebsd-ipfw@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 583FE16A422 for ; Wed, 15 Feb 2006 22:50:57 +0000 (GMT) (envelope-from barry@unix.co.nz) Received: from smtp1.clear.net.nz (smtp1.clear.net.nz [203.97.33.27]) by mx1.FreeBSD.org (Postfix) with ESMTP id 5CB4F43D73 for ; Wed, 15 Feb 2006 22:50:49 +0000 (GMT) (envelope-from barry@unix.co.nz) Received: from tcl02991 ([10.200.56.80]) by smtp1.clear.net.nz (CLEAR Net Mail) with SMTP id <0IUR00KK13GNIN@smtp1.clear.net.nz> for freebsd-ipfw@freebsd.org; Thu, 16 Feb 2006 11:50:48 +1300 (NZDT) Date: Thu, 16 Feb 2006 11:50:47 +1300 From: Barry Murphy To: freebsd-ipfw@freebsd.org Message-id: <03de01c63282$430d24f0$5038c80a@clear.co.nz> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Mailer: Microsoft Outlook Express 6.00.2800.1106 Content-type: text/plain; charset=iso-8859-1 Content-transfer-encoding: 7bit X-Priority: 3 X-MSMail-priority: Normal Subject: ipfw with fw.one_pass doesnt work when specifying interface X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Feb 2006 22:50:57 -0000 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