From owner-freebsd-mobile@FreeBSD.ORG Wed Sep 12 13:13:41 2007 Return-Path: Delivered-To: freebsd-mobile@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 7C1A316A419 for ; Wed, 12 Sep 2007 13:13:41 +0000 (UTC) (envelope-from nollan@phreaker.net) Received: from av10-2-sn2.hy.skanova.net (av10-2-sn2.hy.skanova.net [81.228.8.182]) by mx1.freebsd.org (Postfix) with ESMTP id 3461613C461 for ; Wed, 12 Sep 2007 13:13:41 +0000 (UTC) (envelope-from nollan@phreaker.net) Received: by av10-2-sn2.hy.skanova.net (Postfix, from userid 502) id 672E637EC1; Wed, 12 Sep 2007 14:45:04 +0200 (CEST) Received: from smtp4-2-sn2.hy.skanova.net (smtp4-2-sn2.hy.skanova.net [81.228.8.93]) by av10-2-sn2.hy.skanova.net (Postfix) with ESMTP id 9600237EAC; Wed, 12 Sep 2007 14:45:03 +0200 (CEST) Received: from [192.168.1.58] (81-237-246-236-no120.tbcn.telia.com [81.237.246.236]) by smtp4-2-sn2.hy.skanova.net (Postfix) with ESMTP id E589137E5D; Wed, 12 Sep 2007 14:45:02 +0200 (CEST) Message-ID: <46E7E08F.8020602@phreaker.net> Date: Wed, 12 Sep 2007 14:50:23 +0200 From: nollan User-Agent: Thunderbird 2.0.0.6 (X11/20070909) MIME-Version: 1.0 To: freebsd-mobile@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: nollan@phreaker.net Subject: Wireless connection problem. X-BeenThere: freebsd-mobile@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Mobile computing with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 12 Sep 2007 13:13:41 -0000 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....." 2: ipfw list: (not safe, just temporary) 50 divert 8668 ip from any to any via ath0 100 allow ip from any to any 3: Hardware The ath0 card is a D-Link DWL-G520 The router is a ZyXEL P-320 (no turbomode etc) As I said, the setup works flawless util the carrier is lost and ath0 is unable to regain carrier. Thanks in advance, Regards J