From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 22:16:23 2007 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 489F916A417 for ; Wed, 12 Sep 2007 22:16:23 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from snoogles.rachie.is-a-geek.net (66-230-99-27-cdsl-rb1.nwc.acsalaska.net [66.230.99.27]) by mx1.freebsd.org (Postfix) with ESMTP id 860A713C45B for ; Wed, 12 Sep 2007 22:16:21 +0000 (UTC) (envelope-from fbsd.questions@rachie.is-a-geek.net) Received: from localhost (localhost [127.0.0.1]) by snoogles.rachie.is-a-geek.net (Postfix) with ESMTP id 829CF1CCDD for ; Wed, 12 Sep 2007 14:16:20 -0800 (AKDT) From: Mel To: freebsd-questions@freebsd.org Date: Thu, 13 Sep 2007 00:16:17 +0200 User-Agent: KMail/1.9.7 References: <46E85DB3.60701@phreaker.net> In-Reply-To: <46E85DB3.60701@phreaker.net> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200709130016.18793.fbsd.questions@rachie.is-a-geek.net> Subject: Re: Wireless connection problem. 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: Wed, 12 Sep 2007 22:16:23 -0000 On Wednesday 12 September 2007 23:44:19 nollan wrote: > Hi List! > > I've got a really annoying problem with my wireless connection from my > FreeBSD Gateway to the WAN-router (Yes, the gateway connect to the WAN > via wireless :(. ). The setup works fine until the carrier is lost > (maybe weak signal), then it refuses to pick the connection up again, > resulting in a non-working gateway. Then I have to flush ipfw, dhclient > ath0 and restart natd to make it all work again. If I keep the > connection busy (i.e. ping -i 5 gateway), it all works fine, no carrier > is lost. Shouldn't it be possible for the setup to regain carrier > automatically when it's lost? > > My setup: > > 1: > rc.conf: > gateway_enable="YES" > dhclient_program="/sbin/dhclient" > dhclient_flags="" > > firewall_enable="YES" > firewall_script="/etc/rc.firewall" > firewall_type="OPEN" > > natd_enable="YES" > natd_interface="ath0" > natd_flags="-f /etc/natd.conf" (same_ports yes - use_sockets yes - > dynamic yes) > > ifconfig_ath0="ssid ZyXEL DHCP wepmode on weptxkey 1 wepkey 1:0x....." Have you tried wpa_supplicant(8)? If I understand correctly your interface isn't marked as 'down', so re-initialization doesn't occur. wpa_supplicant might pick up on it. -- Mel