From owner-freebsd-questions@FreeBSD.ORG Tue Sep 30 18:33:45 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3291416A4B3 for ; Tue, 30 Sep 2003 18:33:45 -0700 (PDT) Received: from ndiccaa.pair.com (ndiccaa.pair.com [209.68.2.162]) by mx1.FreeBSD.org (Postfix) with SMTP id 052BF43FF9 for ; Tue, 30 Sep 2003 18:33:44 -0700 (PDT) (envelope-from freebsd@killersolutions.com) Received: (qmail 69226 invoked by uid 3025); 1 Oct 2003 01:33:43 -0000 Received: from 0.0.0.0 (authenticated user) by some box; Tue, 30 Sep 2003 21:33:43 -0400 (EDT) Message-ID: <63697.www.killersolutions.com.1064972023.ronate@www.killersolutions.c om> Date: Tue, 30 Sep 2003 21:33:43 -0400 (EDT) From: freebsd@killersolutions.com To: freebsd-questions@freebsd.org User-Agent: Netscape Mail 1.0 MIME-Version: 1.0 Content-Type: text/plain;charset=iso-8859-1 X-Priority: 3 Importance: Normal Subject: FreeBSD routing between 2 interfaces X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 01 Oct 2003 01:33:45 -0000 Dear FreeBSD users, I urgenly need to connect 192.168.1.* network to the internet. What am I doing wrong? I have 2 networks, 192.168.0.* and 192.168.1.* FreeBSD 5.1 is connected to both networks via 2 network cards, its ip is 192.168.0.3 and 192.168.1.2. As of now from the 192.168.1 network I can only ping the 192.168.0.1 and 192.168.0.3 machines. Nothing else. No Internet. Rc.conf = gateway_enable="YES", defaultrouter="192.168.0.1", firewall_script="/etc/ipfw.rules" ipfw.rules = ipfw add pipe 1 ip from any to any in recv dc0 ipfw add pipe 2 ip from any to any out xmit dc0 ipfw pipe 1 config mask src-ip 0xffffffff bw 1024kbits/s ipfw pipe 2 config mask dst-ip 0xffffffff bw 1024kbits/s Internet | 192.168.0.1 Router/DHCP Server/Switch | | | ----------------------------- | | | | | (FreeBSD 5.1 Machine - DNS/Web Server/Samba Server) 192.168.0.* clients 192.168.0.3(xl0) 192.168.1.2(dc0) (Limit Bandwidth to 192.168.1.* on this network(dc0) card to 1024kbits max) | | Router/Switch/DHCP server | | 192.168.1.* clients