From owner-freebsd-net@FreeBSD.ORG Fri Nov 19 06:38:21 2004 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 78E0C16A4CE for ; Fri, 19 Nov 2004 06:38:21 +0000 (GMT) Received: from ns.trimail.co.za (ns.trimail.co.za [196.25.53.67]) by mx1.FreeBSD.org (Postfix) with ESMTP id 25B7B43D31 for ; Fri, 19 Nov 2004 06:38:19 +0000 (GMT) (envelope-from antonrb@tridan.co.za) Received: from webserver ([196.25.53.69]) by ns.trimail.co.za (8.12.5/8.11.6) with ESMTP id iAJ6Zar9027684 for ; Fri, 19 Nov 2004 08:35:36 +0200 (SAST) (envelope-from antonrb@tridan.co.za) Message-ID: <200411190838090921.004E2A50@196.25.53.67> X-Mailer: Calypso Version 3.30.00.00 (4) Date: Fri, 19 Nov 2004 08:38:09 +0200 From: "Anton Bester" To: freebsd-net@freebsd.org Mime-Version: 1.0 Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: quoted-printable Subject: Gateway/Router X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: antonrb@tridan.co.za List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Nov 2004 06:38:21 -0000 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