Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Oct 2006 18:37:42 +0200
From:      Erik Norgaard <norgaard@locolomo.org>
To:        Martin Turgeon <turgeon.martin@gmail.com>
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
Message-ID:  <45365856.90508@locolomo.org>
In-Reply-To: <0J7C00A3541CUN90@VL-MH-MR001.ip.videotron.ca>
References:  <0J7C00A3541CUN90@VL-MH-MR001.ip.videotron.ca>

next in thread | previous in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?45365856.90508>