From owner-freebsd-questions@FreeBSD.ORG Tue Nov 1 14:34:58 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 5B24C16A41F for ; Tue, 1 Nov 2005 14:34:58 +0000 (GMT) (envelope-from jwm-freebsd@sentinelchicken.net) Received: from dukecmmtar01.coxmail.com (dukecmmtar01.coxmail.com [68.99.120.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id D63A043D45 for ; Tue, 1 Nov 2005 14:34:57 +0000 (GMT) (envelope-from jwm-freebsd@sentinelchicken.net) Received: from sentinelchicken.net ([70.183.13.213]) by dukecmmtar01.coxmail.com (InterMail vM.6.01.05.02 201-2131-123-102-20050715) with SMTP id <20051101143502.KSAA2173.dukecmmtar01.coxmail.com@sentinelchicken.net> for ; Tue, 1 Nov 2005 09:35:02 -0500 Received: (qmail 90647 invoked from network); 1 Nov 2005 14:34:56 -0000 Received: from unknown (HELO numbuscus.sentinelchicken.net) (10.0.0.2) by samson.sentinelchicken.net with SMTP; 1 Nov 2005 14:34:56 -0000 Received: (nullmailer pid 2545 invoked by uid 1000); Tue, 01 Nov 2005 14:34:54 -0000 Date: Tue, 1 Nov 2005 09:34:54 -0500 From: Jason Morgan To: FreeBSD Questions Message-ID: <20051101143454.GB1073@sentinelchicken.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.10i Subject: Re: Quick Routing Question X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Nov 2005 14:34:58 -0000 On Tue, Nov 01, 2005 at 09:03:11AM -0500, Steve Bertrand wrote: > > > > -----Original Message----- > > From: owner-freebsd-questions@freebsd.org > > [mailto:owner-freebsd-questions@freebsd.org] On Behalf Of Fabian Keil > > Sent: Tuesday, November 01, 2005 5:58 AM > > To: Jason Morgan > > Cc: FreeBSD Questions > > Subject: Re: Quick Routing Question > > > > Jason Morgan wrote: > > > > > I am setting up a wireless subnet and, while the gateway (FreeBSD > > > system) is communicating fine with the wireless router, my other > > > subnet is not able to connect to the wireless router. Here is a > > > diagram of my network, I think it's fairly typical. > > > > > > > > > Wired Subnet (10.0.0.x) > > > / > > > / > > > Internet <-- FreeBSD Machine > > > \ > > > \ > > > Wireless Subnet (192.168.1.x) > > > > > > > > > The 'wired' interface on the FreeBSD machine has an IP of 10.0.0.1, > > > with the 'wireless' IP being 192.168.1.1. Now, the FreeBSD machine > > > and the wireless router (192.168.1.2) communicate fine as does the > > > wired subnet; however, I am not able to connect from a > > 10.0.0.x client > > > to the wireless router. After running traceroute, etc, it > > seems that > > > the FreeBSD machine is simply not routing the data from one > > subnet to > > > the other. I've verified that it's not the firewall > > blocking packets. > > > How do I get these subnets to communicate? > > > > Did you put gateway_enable=YES in rc.conf? > > Did you read > > > work-routing.html>? Yes, the FreeBSD machine has been acting as a router/gateway/firewall for the wired network for quite some time. I did look at the handbook, that's usually my first stop. > > Also, what does: > > # netstat -rn > > ...output? # netstat -rn Routing tables Internet: Destination Gateway Flags Refs Use Netif Expire default 70.183.13.193 UGS 0 24701 xl0 10/24 link#3 UC 0 0 fxp0 10.0.0.1 00:d0:b7:44:f9:c6 UHLW 0 903 lo0 10.0.0.2 00:50:8d:e5:a5:41 UHLW 0 322468 fxp0 572 10.0.0.4 00:e0:98:04:01:f6 UHLW 0 1131 fxp0 1140 70.183.13.192/26 link#2 UC 0 0 xl0 70.183.13.193 00:13:5f:00:f0:ee UHLW 1 0 xl0 1188 70.183.13.213 00:50:04:cf:52:8a UHLW 0 18 lo0 127.0.0.1 127.0.0.1 UH 0 0 lo0 192.168.1 link#1 UC 0 0 dc0 Internet6: Destination Gateway Flags Netif Expire ::1 ::1 UH lo0 fe80::%dc0/64 link#1 UC dc0 fe80::204:5aff:fe42:5084%dc0 00:04:5a:42:50:84 UHL lo0 fe80::%xl0/64 link#2 UC xl0 fe80::250:4ff:fecf:528a%xl0 00:50:04:cf:52:8a UHL lo0 fe80::%fxp0/64 link#3 UC fxp0 fe80::2d0:b7ff:fe44:f9c6%fxp0 00:d0:b7:44:f9:c6 UHL lo0 fe80::%lo0/64 fe80::1%lo0 U lo0 fe80::1%lo0 link#4 UHL lo0 ff01::/32 ::1 U lo0 ff02::%dc0/32 link#1 UC dc0 ff02::%xl0/32 link#2 UC xl0 ff02::%fxp0/32 link#3 UC fxp0 ff02::%lo0/32 ::1 UC lo0 Also, made one small error in my initial post. The wireless router has IP 192.168.1.1 and the server's 'wireless' interface is 192.168.1.2 (going to switch these as soon as I get access to the wireless router settings). I've tried setting static routes between various interfaces on the FreeBSD machine, it hasn't worked, but I may be doing it wrong. I thought routed should take care of this dynamically, but I'm a bit unsure about that. > > Steve > > > > > Fabian > > -- > > http://www.fabiankeil.de/ > > > Thanks alot for the replies. I appreciate it. Jason