Gateway/Router

Anton Bester antonrb at tridan.co.za
Fri Nov 19 06:38:21 GMT 2004


Hello

I'm trying to setup a gateway/router between my private network and my Public network.

My public network is connected via T1 and I have 5 public IP's

I have installed a FreeBSD 5.1 server and enabled the following:
1. gateway
2. IPFILTER
3. IPNAT
4. defaultrouter="196.x.x.1" (currently my cisco router going out to internet)
5. Bind (only forwarding to my local DNS Server on the public network)

I have put in 2 NIC's and configured them as follows:
1. rl0: to my private network (192.168.1.1)
2. ed0: to my public network (196.x.x.3)

My ipnat.rules file looks as follows:
map ed0 192.168.1.0/255.255.255.0 -> 196.x.x.3/255.255.255.x

My problem is that I cannot access the internet from my private network, I can do dns lookups from a command prompt from my private network. The workstation configuration on the private network is like this:
1. IP 192.168.1.3
2. subnet 255.255.255.0
3. gateway 192.168.1.1
4. DNS 192.168.1.1

Is there anything else I need to do, the FreeBSD Manual talks about "Dual Homed Hosts" and that it need to be enabled but it does not tell how and were.

Any help will be appreciated.

Regards
Extech


Anton Bester
Tridan Solutions (Pty) Ltd
Cell: +27 82 920 6970
Tel: +27 12 347 0775
Fax: +27 (0)86 650 4606
Website: http://www.tridan.co.za



More information about the freebsd-net mailing list