Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 19 Nov 2004 08:38:09 +0200
From:      "Anton Bester" <antonrb@tridan.co.za>
To:        freebsd-net@freebsd.org
Subject:   Gateway/Router
Message-ID:  <200411190838090921.004E2A50@196.25.53.67>

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



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