From owner-freebsd-questions@FreeBSD.ORG Wed Sep 12 22:02:48 2007 Return-Path: Delivered-To: questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 08D2D16A41A for ; Wed, 12 Sep 2007 22:02:48 +0000 (UTC) (envelope-from nollan@phreaker.net) Received: from av7-1-sn3.vrr.skanova.net (av7-1-sn3.vrr.skanova.net [81.228.9.181]) by mx1.freebsd.org (Postfix) with ESMTP id BEF7C13C465 for ; Wed, 12 Sep 2007 22:02:47 +0000 (UTC) (envelope-from nollan@phreaker.net) Received: by av7-1-sn3.vrr.skanova.net (Postfix, from userid 502) id E01AD38E2C; Wed, 12 Sep 2007 23:37:56 +0200 (CEST) Received: from smtp3-2-sn3.vrr.skanova.net (smtp3-2-sn3.vrr.skanova.net [81.228.9.102]) by av7-1-sn3.vrr.skanova.net (Postfix) with ESMTP id CF0C938E27; Wed, 12 Sep 2007 23:37:56 +0200 (CEST) Received: from [192.168.1.58] (81-237-246-236-no120.tbcn.telia.com [81.237.246.236]) by smtp3-2-sn3.vrr.skanova.net (Postfix) with ESMTP id 9403A37E42; Wed, 12 Sep 2007 23:38:58 +0200 (CEST) Message-ID: <46E85DB3.60701@phreaker.net> Date: Wed, 12 Sep 2007 23:44:19 +0200 From: nollan User-Agent: Thunderbird 2.0.0.6 (X11/20070909) MIME-Version: 1.0 To: questions@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-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:02:48 -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. I've tried freebsd-mobile, but it seems fairly idle. Thanks in advance, Regards J