From owner-freebsd-bugs@FreeBSD.ORG Wed Oct 18 16:37:55 2006 Return-Path: X-Original-To: freebsd-bugs@freebsd.org Delivered-To: freebsd-bugs@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id D591016A407; Wed, 18 Oct 2006 16:37:55 +0000 (UTC) (envelope-from norgaard@locolomo.org) Received: from strange.daemonsecurity.com (59.Red-81-33-11.staticIP.rima-tde.net [81.33.11.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id C390343D5C; Wed, 18 Oct 2006 16:37:52 +0000 (GMT) (envelope-from norgaard@locolomo.org) Received: from [192.168.7.193] (68.Red-80-34-55.staticIP.rima-tde.net [80.34.55.68]) by strange.daemonsecurity.com (Postfix) with ESMTP id 237112E024; Wed, 18 Oct 2006 18:37:51 +0200 (CEST) Message-ID: <45365856.90508@locolomo.org> Date: Wed, 18 Oct 2006 18:37:42 +0200 From: Erik Norgaard User-Agent: Thunderbird 1.5.0.7 (Windows/20060909) MIME-Version: 1.0 To: Martin Turgeon References: <0J7C00A3541CUN90@VL-MH-MR001.ip.videotron.ca> In-Reply-To: <0J7C00A3541CUN90@VL-MH-MR001.ip.videotron.ca> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: freebsd-bugs@freebsd.org, freebsd-questions@freebsd.org, freebsd-pf@freebsd.org Subject: Re: Routing with external interface doesn't work after a while X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 18 Oct 2006 16:37:56 -0000 Martin Turgeon wrote: > I've been reading the mailing list for a while, but it's my first post. I'm > not sure what is causing the problem so I'm posting to multiple lists. I'm > running FreeBSD 6.1 on a Celeron 2.8GHz with 512Mo of RAM. It looks likes > after a while (a couple of weeks) the routing isn't working anymore, but > only with the external interface (the one connected to my cable modem from > Videotron in Montreal). The box is acting as the gateway of the network with > PF, OpenVPN 2.0.5-1 and ISC-DHCPd 3.0.3-1 running. The problem also occurred > on FreeBSD 6.0 on another box. OK, this can take a long time to solve if the problem reoccurs after some weeks - can you reproduce at a faster rate? > The routing table looks ok. > > The external interface is still receiving ARP requests but nothing is going > out from my internal network. OK, so your internal network can't get out. But can you get out from the gateway? I mean, try login to the gateway and ping the default gateway. Do you get replies? do you see packets going out when sniffing? > Here's what I tried with no result: > > I tried to flush the states with pfctl -Fs > I tried to reload the NAT with pfctl -N > > The solution was to renew the address of the external interface with > dhclient fxp0. > > I looked back at the routing table after the dhclient fxp0 and nothing > changed except the address of the default gateway because my IP address > changed of subnetwork. While the gateway is working take dump output of ifconfig and "route get default" into a file. When it stops working do it again. Repeat after you have restored the connection. Did any thing change from it worked till it stopped working? Cheers, Erik -- Ph: +34.666334818 web: http://www.locolomo.org X.509 Certificate: http://www.locolomo.org/crt/8D03551FFCE04F0C.crt Key ID: 69:79:B8:2C:E3:8F:E7:BE:5D:C3:C3:B1:74:62:B8:3F:9F:1F:69:B9