Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 8 Apr 2000 17:48:46 +0200
From:      Dave Wilson <davew@pmburg.co.za>
To:        freebsd-questions@FreeBSD.ORG
Subject:   IpMasqing under FBSD 4.0 using NATD ? :)
Message-ID:  <00040817501600.00321@dave.dgn>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?00040817501600.00321>