From owner-freebsd-config@FreeBSD.ORG Thu Jan 22 01:27:22 2004 Return-Path: Delivered-To: freebsd-config@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D577016A4CE for ; Thu, 22 Jan 2004 01:27:22 -0800 (PST) Received: from mailbox.wingercom.dk (mailbox.wingercom.dk [81.19.240.4]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4195743D1D for ; Thu, 22 Jan 2004 01:27:21 -0800 (PST) (envelope-from per@xterm.dk) Received: from mailbox.wingercom.dk (localhost [127.0.0.1]) by mailbox.wingercom.dk (Postfix) with SMTP id CE6E0931A9; Thu, 22 Jan 2004 10:30:34 +0100 (CET) Received: from 62.242.151.142 (SquirrelMail authenticated user per) by mailbox.wingercom.dk with HTTP; Thu, 22 Jan 2004 10:30:34 +0100 (CET) Message-ID: <36045.62.242.151.142.1074763834.squirrel@mailbox.wingercom.dk> Date: Thu, 22 Jan 2004 10:30:34 +0100 (CET) From: "Per Engelbrecht" To: In-Reply-To: References: X-Mailer: SquirrelMail (version 1.2.5) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit cc: freebsd-config@freebsd.org Subject: Re: IPFW X-BeenThere: freebsd-config@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Installation and Configuration List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 22 Jan 2004 09:27:23 -0000 Hi Umar Welcome to the BSD world! First of all you have to do some homework on your own. What you're asking is a bit like "I've got me at Boing 747 - how do I fly it ?"A more reasonable question would be "I've read the manual for my Boing, buthow do I set the stab for take-off ?" To get you jump-started on firewall setup, edit a copy of /etc/rc.firewallaccordingly to your needs (it itself, contains a lot of good comments) then addfirewall type in /etc/rc.conf, then run 'shutdown now' + 'return' + 'exit' (this willre-read your startup-script (=rc.conf)) all this as root of course - and bingo, yougot yourself a firewall. This was an extreemly short version. Read firewall(7)and ipfw(8) among others. respectfully /per per@xterm.dk > > 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 > _________________________________________________________________ > > The new [1]MSN 8: smart spam protection and 2 months FREE* > > References > > 1. http://g.msn.com/8HMAEN/2737??PS= > _______________________________________________ > freebsd-config@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-config > To unsubscribe, send any mail to > "freebsd-config-unsubscribe@freebsd.org"