From owner-freebsd-questions@FreeBSD.ORG Fri Feb 13 16:50:57 2004 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 DB19916A4CE for ; Fri, 13 Feb 2004 16:50:56 -0800 (PST) Received: from smtp.cms-stl.com (smtp.cms-stl.com [192.94.149.12]) by mx1.FreeBSD.org (Postfix) with ESMTP id B3BA543D1F for ; Fri, 13 Feb 2004 16:50:56 -0800 (PST) (envelope-from madden@cmsrtp.com) Message-ID: <402D709D.6030902@cmsrtp.com> Date: Fri, 13 Feb 2004 18:49:33 -0600 From: Michael Madden Organization: Computerized Medical Systems User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040113 X-Accept-Language: en MIME-Version: 1.0 To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Checker-Version: SpamAssassin 2.51 (1.174.2.5-2003-03-20-exp) X-CMS-Scanned: Sophos Anti-Virus Subject: FreeBSD 5.2 Router Setup X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: madden@cmsrtp.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 14 Feb 2004 00:50:57 -0000 I am trying to setup a pc with FreeBSD 5.2 as a router. I've got two NICs setup. My laptop can ping the LAN side of the router (192.168.200.1), and it can also ping the WAN side of the router (172.16.20.10). However, I cannot get past the WAN side of the router to other pcs or the internet, but if I login to the router, I can see other pcs and the internet. It almost seems like IP forwarding isn't working isn't working on the router. Here is /etc/rc.conf: ifconfig_xl0="inet 172.16.20.10 netmask 255.255.0.0" ifconfig_xl1="inet 192.168.200.1 netmask 255.255.255.0" defaultrouter="172.16.255.1" gateway_enable="YES" hostname="pcmadden.cms-stl.com" linux_enable="YES" moused_enable="YES" ntpdate_enable="YES" ntpdate_flags="time-ext.missouri.edu" sshd_enable="YES" usbd_enable="YES" Here is the output of ifconfig: xl0: flags=8843 mtu 1500 options=b inet 172.16.20.10 netmask 0xffff0000 broadcast 172.16.255.255 inet6 fe80::201:2ff:fe3f:5823%xl0 prefixlen 64 scopeid 0x1 ether 00:01:02:3f:58:23 media: Ethernet autoselect (100baseTX ) status: active xl1: flags=8843 mtu 1500 options=b inet 192.168.200.1 netmask 0xffffff00 broadcast 192.168.200.255 inet6 fe80::210:5aff:fea8:fd83%xl1 prefixlen 64 scopeid 0x2 ether 00:10:5a:a8:fd:83 media: Ethernet autoselect (none) status: no carrier lo0: flags=8049 mtu 16384 inet 127.0.0.1 netmask 0xff000000 inet6 ::1 prefixlen 128 inet6 fe80::1%lo0 prefixlen 64 scopeid 0x3 Here is the output of netstat -r: Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default guardian-int UGS 0 516 xl0 localhost localhost UH 0 2 lo0 172.16 link#1 UC 0 0 xl0 stldns 00:06:5b:8b:dd:9f UHLW 0 43 xl0 1059 hulk 00:30:d3:01:98:f1 UHLW 0 6 xl0 light 00:c0:4f:a1:2b:f8 UHLW 0 3 xl0 1057 legolas 00:06:5b:84:44:c5 UHLW 0 1325 xl0 836 guardian-int 00:a0:8e:1d:bd:b4 UHLW 1 0 xl0 660 192.168.200 link#2 UC 0 0 xl1 Internet6: Destination Gateway Flags Netif Expire localhost.cms-stl. localhost.cms-stl. UH lo0 fe80::%xl0 link#1 UC xl0 fe80::201:2ff:fe3f 00:01:02:3f:58:23 UHL lo0 fe80::%xl1 link#2 UC xl1 fe80::210:5aff:fea 00:10:5a:a8:fd:83 UHL lo0 fe80::%lo0 fe80::1%lo0 U lo0 fe80::1%lo0 link#3 UHL lo0 ff01:: localhost.cms-stl. U lo0 ff02::%xl0 link#1 UC xl0 ff02::%xl1 link#2 UC xl1 ff02::%lo0 localhost.cms-stl. UC lo0 Any help figuring this out would be greatly appreciated. Thanks, Michael