From owner-freebsd-questions Sat Apr 8 8:57: 7 2000 Delivered-To: freebsd-questions@freebsd.org Received: from cytosine.dhs.org (cx272244-a.orng1.occa.home.com [24.1.177.149]) by hub.freebsd.org (Postfix) with ESMTP id 02BE837BA82 for ; Sat, 8 Apr 2000 08:57:04 -0700 (PDT) (envelope-from bhishan@cytosine.dhs.org) Received: (from bhishan@localhost) by cytosine.dhs.org (8.10.0/8.10.0) id e38Fut318347; Sat, 8 Apr 2000 08:56:55 -0700 (PDT) From: Bhishan Hemrajani Message-Id: <200004081556.e38Fut318347@cytosine.dhs.org> Subject: Re: IpMasqing under FBSD 4.0 using NATD ? :) In-Reply-To: <00040817501600.00321@dave.dgn> from Dave Wilson at "Apr 8, 2000 05:48:46 pm" To: davew@pmburg.co.za Date: Sat, 8 Apr 2000 08:56:55 -0700 (PDT) Cc: freebsd-questions@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL61 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG When you're using ppp, it's usually not a good idea to use natd. What you should do is, start ppp with the "-auto" parameter. That will make it act like a gateway. The next thing to do is to setup the other computers to have their gateway set to 10.0.0.1. If they are FreeBSD, then, put this line in /etc/rc.conf: defaultrouter="10.0.0.1" But, if they are windows: 1. Right-click network neighborhood 2. Click properties 3. Click on tcp/ip for the nic card. 4. Click properties 5. Click the tab labeled Gateway 6. Type in 10.0.0.1 7. Click add 8. Click ok 9. Click ok Hope this helps. --bhishan > Hi Guy's, howzit going? > > I'm batteling with natd BIG time, I have followed docs on the web and the > man pages and still can't seem to get it right. > > Basically I'm using my FreeBSD box to dial into my isp. > In my FreeBSD box I have a LAN card (ed0), with an IP of > 10.0.0.1/255.255.255.0, which goes to my LAN running IP's 10.0.0.2, > 10.0.0.3. > > I want to allow 10.0.0.2 and 10.0.0.3 onto the Internet. > I have configured pppd for normal dial-up into my isp and that is working > 100% > Here are the options I have configured after a default install of FreeBSD > 4.0: > > Kernel > ------ > > options IPFIREWALL > options IPDIVERT > > /etc/rc.local > ------------- > > natd -interface ed0 > ipfw -f flush > ipfw add divert natd all from any to any via ed0 > ipfw pass all from any to any > > I have Squid 2.2STABLE5 setup on the box too, and all the workstations > can surf the net fine if I tell IE to use squid as a proxy, but I prefer > to use masqing/natd for irc/mail etc. > > I have setup IP masqing in Linux before and it has worked brilliantly, > but I just can't seem to find what I'm doing wrong in FreeBSD. :( > > Please help if you can. > Thanx :) > > Regards > Dave Wilson > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-questions" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message