From owner-freebsd-questions@FreeBSD.ORG Sat Sep 10 05:21:44 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 3391D16A420 for ; Sat, 10 Sep 2005 05:21:44 +0000 (GMT) (envelope-from tdimson@gmail.com) Received: from zproxy.gmail.com (zproxy.gmail.com [64.233.162.196]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9D9A743D45 for ; Sat, 10 Sep 2005 05:21:43 +0000 (GMT) (envelope-from tdimson@gmail.com) Received: by zproxy.gmail.com with SMTP id z31so11400nzd for ; Fri, 09 Sep 2005 22:21:42 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=aveH8NFbhbqTOb82Wk7Lm56tbHZLSj3U+gJ4aqR7xcyZc0sZrsQH+4YhZ5VuD34iQNgd1oslI5QZAJq8Ayab3w24AobkZiniaYvXimnpvvdh1YzkmBz+Q62ijgpcQKNRFaNLrgTtTGB+K3pvoltT4q4UlPzVebENoPsLfOkEQxo= Received: by 10.36.154.3 with SMTP id b3mr1022395nze; Fri, 09 Sep 2005 22:21:42 -0700 (PDT) Received: by 10.36.23.11 with HTTP; Fri, 9 Sep 2005 22:21:42 -0700 (PDT) Message-ID: Date: Sat, 10 Sep 2005 01:21:42 -0400 From: Thomas Dimson To: freebsd-questions@freebsd.org In-Reply-To: <20050910060618.GA2199@bifteki.lan> Mime-Version: 1.0 References: <20050910060618.GA2199@bifteki.lan> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Re: Strange (newbie) Gateway Errors X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: tdimson@gmail.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 10 Sep 2005 05:21:44 -0000 Sorry, I should have clarified. I do have that option enabled. In fact, my machine works perfectly as a gateway to the internet - it just= =20 fails to forward (or much more likely, recieve) packets from an intranet an= d=20 send it to the machine. On 9/10/05, Leonidas Tsampros wrote: >=20 > On Fri, Sep 09, 2005 at 08:58:41PM -0400, Thomas Dimson wrote: > > Hi, > > > > Sorry if this is out of place, but I am having an issue with forwarding > > packets on my freebsd-current box from a windows PC. > > > > Here what I'm trying to do: > > I have two network cards, one on a university network and one going to = a > > router, which is connected to a cable modem. Both cards use the vr=20 > driver. > > University is configured through DHCP, private router is just specified= =20 > ( > > 192.168.1.110 ). I am=20 > trying to route traffic to the > > internet through the router while keeping all university traffic=20 > internal. > > > > Problem: > > I run a traceroute from my freebsd box to the university network and it > > works fine. I can access the website (129.97.128.40< > http://129.97.128.40>) > > through the internal network. However, using my windows PC - with the > > freebsd server specified as a gateway - it just times out when trying t= o > > connect to the web site. Any website on the internet works fine, but no= t=20 > the > > intranet. > > > > Here is my config, I am just setting a static route to the ip of the=20 > website > > to test for now: > > netstat -r > > Routing tables > > > > Internet: > > Destination Gateway Flags Refs Use Netif Expire > > default 192.168.1.1 UGS 0=20 > 119789 vr0 > > localhost localhost UH 0 0 lo0 > > 129.97.128.40/32 =20 > cn-rtrev-res15net. UGS 0 12 vr1 > > 192.168.1 link#1 UC 0 0 vr0 > > 192.168.1.1 00:20:78:ce:cb:b4= =20 > UHLW 2 154 vr0 1172 > > 192.168.1.107 =20 > 00:11:95:5d:0b:7f UHLW 1 210110 vr0 945 > > > > Internet6: > > Destination Gateway Flags Netif Expire > > localhost localhost UH lo0 > > fe80::%vr0 link#1 UC vr0 > > fe80::20d:88ff:fe7 00:0d:88:7f:42:d0 UHL lo0 > > fe80::%vr1 link#2 UC vr1 > > fe80::211:95ff:fee 00:11:95:e2:57:40 UHL lo0 > > fe80::%lo0 fe80::1%lo0 U lo0 > > fe80::1%lo0 link#4 UHL lo0 > > ff01:: localhost U lo0 > > ff02::%vr0 link#1 UC vr0 > > ff02::%vr1 link#2 UC vr1 > > ff02::%lo0 localhost UC lo0 > > > > Can anyone provide me with aid, or at least the location of a log file= =20 > for > > the gateway functions of the machine? >=20 > Try to add gateway_enable=3D"YES" in /etc/rc.conf and run either >=20 > # /etc/routing start [as root] >=20 > or reboot the pc. >=20 > Actually , when you want your freebsd to act as a gateway , you have > to set the sysctl variable net.inet.ip.forwarding to 1. However , the > gateway_enable options takes care of this. >=20 >=20 > _______________________________________________ > freebsd-questions@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-questions > To unsubscribe, send any mail to " > freebsd-questions-unsubscribe@freebsd.org" >