From owner-freebsd-ipfw@FreeBSD.ORG Wed Feb 4 07:30:14 2004 Return-Path: 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 8F1B016A4CE for ; Wed, 4 Feb 2004 07:30:14 -0800 (PST) Received: from pd3mo1so.prod.shaw.ca (shawidc-mo1.cg.shawcable.net [24.71.223.10]) by mx1.FreeBSD.org (Postfix) with ESMTP id D59E143D1F for ; Wed, 4 Feb 2004 07:30:12 -0800 (PST) (envelope-from sdrew@shaw.ca) Received: from pd5mr1so.prod.shaw.ca (pd5mr1so-qfe3.prod.shaw.ca [10.0.141.232]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HSK00EA2GC0CM@l-daemon> for freebsd-ipfw@freebsd.org; Wed, 04 Feb 2004 08:28:48 -0700 (MST) Received: from pn2ml2so.prod.shaw.ca (pn2ml2so-qfe0.prod.shaw.ca [10.0.121.146]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HSK005CJGC0B0@l-daemon> for freebsd-ipfw@freebsd.org; Wed, 04 Feb 2004 08:28:48 -0700 (MST) Received: from stevehome (h68-146-82-16.cg.shawcable.net [68.146.82.16]) by l-daemon (iPlanet Messaging Server 5.2 HotFix 1.18 (built Jul 28 2003)) with ESMTP id <0HSK0005SGC0V3@l-daemon> for freebsd-ipfw@freebsd.org; Wed, 04 Feb 2004 08:28:48 -0700 (MST) Date: Wed, 04 Feb 2004 08:28:42 -0700 From: Steve Drew In-reply-to: <20040204192806.0636123f.drl@void.net.my> To: 'Umar Draz' Message-id: <0HSK0005TGC0V3@l-daemon> MIME-version: 1.0 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165 X-Mailer: Microsoft Office Outlook, Build 11.0.5510 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7BIT Thread-index: AcPrEgHhoQsEGSeLTt6cX7d7sx4H2QAIRRwg cc: freebsd-ipfw@freebsd.org Subject: RE: IPFW (Biggner) X-BeenThere: freebsd-ipfw@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: IPFW Technical Discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 Feb 2004 15:30:14 -0000 Squid listens on inside interface then add ipfw rule as follows: ipfw add 100 fwd , tcp from any to any 80 in recv Of course you still need the correct squid settings to handle the transparent connection as you would of done under linux. /Steve. -----Original Message----- From: owner-freebsd-ipfw@freebsd.org [mailto:owner-freebsd-ipfw@freebsd.org] On Behalf Of Darryl Yeoh Sent: Wednesday, February 04, 2004 4:28 AM To: Umar Draz Cc: freebsd-ipfw@freebsd.org Subject: Re: IPFW (Biggner) On Sat, 24 Jan 2004 05:01:56 +0000 "Umar Draz" wrote: > hi > > i am a new user of freeBSD. > > I have a server of Linux 7.3 with dsl connection. Now on Linux 7.3 i have > configure Squid as transparent and also Linux 7.3 running as a Gatway. > > i have use these command for configure transparent Proxy for my users > > iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT > --to-port 8080 > iptables -t nat -A POSTROUTING -o eth1 -j SNAT --to 202.147.x.x > > now its running fine. Every Thing is fine. My Client Just add my > linux 7.3's ip as a Gateway and DNS (and access internet) > > now i want Linux 7.3 replace with FreeBSD 4.8. so there is no > iptables in freeBSD. there is ipfw plz tel me how i can configure > my freebsd machine that my freebsd machine can work as a gateway > and also running squid as a transparent. > > thanks and regards > > Umar Draz > > _________________________________________________________________ > Help STOP SPAM with the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > > _______________________________________________ > freebsd-ipfw@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw > To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org" Hello, If everything is working fine for you with Linux, why do you need to change it to something else ? > Best regards, Darryl Yeoh _______________________________________________ freebsd-ipfw@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-ipfw To unsubscribe, send any mail to "freebsd-ipfw-unsubscribe@freebsd.org"