From owner-freebsd-isp@FreeBSD.ORG Mon Sep 24 05:02:51 2007 Return-Path: Delivered-To: freebsd-isp@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 87BE516A417 for ; Mon, 24 Sep 2007 05:02:51 +0000 (UTC) (envelope-from dennyow@zoostation.mine.nu) Received: from zoostation.mine.nu (ad202.166.1.182.magix.com.sg [202.166.1.182]) by mx1.freebsd.org (Postfix) with ESMTP id E9F3213C467 for ; Mon, 24 Sep 2007 05:02:50 +0000 (UTC) (envelope-from dennyow@zoostation.mine.nu) Received: from zoostation.mine.nu (localhost [127.0.0.1]) by zoostation.mine.nu (8.13.8/8.13.8) with ESMTP id l8O4oZZo038580; Mon, 24 Sep 2007 12:50:35 +0800 (SGT) (envelope-from dennyow@zoostation.mine.nu) Received: (from dennyow@localhost) by zoostation.mine.nu (8.13.8/8.13.8/Submit) id l8O4oZAO038579; Mon, 24 Sep 2007 12:50:35 +0800 (SGT) (envelope-from dennyow) Date: Mon, 24 Sep 2007 12:50:35 +0800 From: danow@magix.com.sg To: freebsd-isp@freebsd.org Message-ID: <20070924045035.GB30086@singtel.com> References: <20070924044357.GA30086@singtel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable In-Reply-To: <20070924044357.GA30086@singtel.com> User-Agent: Mutt/1.4.2.3i Subject: freebsd 6.2 with ipfw forward not working X-BeenThere: freebsd-isp@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Internet Services Providers List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 24 Sep 2007 05:02:51 -0000 Hi, I have a rule in ipfw to divert all destination address with tcp port 80 to= a local squid server. However this is working for me. When i did a tcpdump= on lo0, no packets are seen. ipfw rules add fwd 127.0.0.1,3128 log tcp from any to any=20 and in /var/log/security shows the packet being forwarded. This is what squid -v shows Squid Cache: Version 2.6.STABLE16 configure options: '--bindir=3D/usr/local/sbin' '--sbindir=3D/usr/local/sb= in' '--datadir=3D/usr/local/etc/squid' '--libexecdir=3D/usr/local/libexec/s= quid' '--localstatedir=3D/usr/local/squid' '--sysconfdir=3D/usr/local/etc/s= quid' '--enable-removal-policies=3Dlru heap' '--disable-linux-netfilter' '-= -disable-linux-tproxy' '--disable-epoll' '--enable-auth=3Dbasic ntlm digest= ' '--enable-basic-auth-helpers=3DDB NCSA PAM MSNT SMB YP' '--enable-digest-= auth-helpers=3Dpassword' '--enable-external-acl-helpers=3Dip_user session u= nix_group wbinfo_group' '--enable-ntlm-auth-helpers=3DSMB' '--enable-negoti= ate-auth-helpers=3Dsquid_kerb_auth' '--enable-storeio=3Dufs diskd null' '--= enable-pf-transparent' '--enable-ipf-transparent' '--enable-err-languages= =3DArmenian Azerbaijani Bulgarian Catalan Czech Danish Dutch English Eston= ian Finnish French German Greek Hebrew Hungarian Italian Japanese Korean L= ithuanian Polish Portuguese Romanian Russian-1251 Russian-koi8-r Serbian = Simplify_Chinese Slovak Spanish Swedish Traditional_Chinese Turkish' '--en= able-default-err-language=3DEnglish' '--prefix=3D/usr/local' '--mandir=3D/u= sr/local/man' '--infodir=3D/usr/local/info/' 'i386-portbld-freebsd6.2' 'bui= ld_alias=3Di386-portbld-freebsd6.2' 'host_alias=3Di386-portbld-freebsd6.2' = 'target_alias=3Di386-portbld-freebsd6.2' 'CC=3Dcc' 'CFLAGS=3D-O2 -fno-stric= t-aliasing -pipe ' 'LDFLAGS=3D' 'CPPFLAGS=3D' in /etc/sysctl.conf net.inet.ip.forwarding=3D1 In kernel config, options IPFIREWALL options IPFIREWALL_FORWARD Any idea what's wrong with my config? Have i missed out anything? Thanks, Denny