About ADSL and Internet Sharing

Adam blueeskimo at gmx.net
Fri Mar 28 17:08:46 PST 2003


On Fri, 2003-03-28 at 19:44, Alfonso Romero wrote:
> I followed all the indications in the handbook to share an ADSL modem with several PCs through a FreeBSD box, but can´t access www with the other PCs. I can ping www.yahoo.com from any PC, but that´s all I can do. What could be the problem?

More than likely your NAT is misconfigured. 

Here's how I have mine set up (ipnat):
map tun0 192.168.56.0/24 -> 0/32 portmap tcp/udp 63000:65535
map tun0 192.168.56.0/24 -> 0/32

Basically what this says is:
- All internal traffic will be routed between 63000-65535
- All outgoing connections from internal machines will be temporarily
translated. Meaning, if 192.168.56.5:3456 (internal client) connects to
192.168.56.2:63001 (gateway), when the data comes back from the remote
server to 63001, NAT remembers that this is actually intended for
192.168.56.5:3456, and routes accordingly ..

I hope this makes sense to you ..

-- 
Adam <blueeskimo at gmx.net>



More information about the freebsd-questions mailing list