From owner-freebsd-questions@FreeBSD.ORG Sun Apr 18 15:07:55 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 4A96616A4CE for ; Sun, 18 Apr 2004 15:07:55 -0700 (PDT) Received: from dword.org (p15091850.pureserver.info [217.160.107.116]) by mx1.FreeBSD.org (Postfix) with SMTP id 2E21343D2F for ; Sun, 18 Apr 2004 15:07:54 -0700 (PDT) (envelope-from guido@unknownsite.de) Received: (qmail 5194 invoked from network); 18 Apr 2004 22:07:55 -0000 Received: from dsl-213-023-244-180.arcor-ip.net (HELO tolkien) (213.23.244.180) by p15091850.pureserver.info with SMTP; 18 Apr 2004 22:07:55 -0000 From: Guido Winkelmann To: freebsd-questions@freebsd.org Date: Mon, 19 Apr 2004 00:08:13 +0200 User-Agent: KMail/1.6.51 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Message-Id: <200404190008.14020.guido@unknownsite.de> Subject: PPP connections drop frequently and won't automatically come up again X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 18 Apr 2004 22:07:55 -0000 Hi I am using a small FreeBSD machine as a NAT router (and for a few other purposes) for an ADSL connection for my home network. I am using the user space ppp program with the -ddial and the -nat switch for this. The problem is that, at seemingly random intervals, the connection to the internet will go down (or rather, stop working) and refuse to automatically come up again. After a reboot, everything works again. After that happened again yesterday, I logged in to the machine via ssh (which took a lot longer than usual btw, it was about a minute until I was prompted for my password). I found the ppp process to still be running, the interface tun0 to still be up and the default route to still be set to tun0. Also, there was no mention of any problem in /var/log/ppp or /var/log/messages (at least not from ppp itself - some other daemon was repeatedly complaining about the lack of internet connectivity). The send/receive diode on the DSL modem was still blinking wildly. Next thing I did was to unplug the DSL modem from its power supply, wait a few seconds and plug it in again, hoping that now the ppp process would finally realize that there was something wrong and reinitiate the connection, but that didn't succeed. I only could bring up the Internet connection again with a reboot. This happens at very irregular intervals. The last time, it happened only a few hours after bootup, the time before, everything worked fine for nearly a month, until I rebooted the machine for updating. (I did get disconnected a few times during that months, though. At least I got a new IP address a few times. But the connection never stayed down for more than a few seconds.) The FreeBSD version is RELENG_5_2, updated two or three days ago. I've got the following lines in /etc/rc.conf for ppp: [...] # Internet access from the local network gateway_enable="YES" ppp_enable="YES" ppp_mode="ddial" ppp_nat="YES" ppp_profile="arcor" ###################### [...] and this is my /etc/ppp/ppp.conf: default: set server /var/run/internet "" 0177 set log Phase tun command set ifaddr 10.0.0.1/0 10.0.0.2/0 arcor: set device PPPoE:rl0 set authname xxxxxxx set authkey xxxxxx set dial set login add default HISADDR [...] (the rest is just portforwarding) Could someone please help me with that? Guido Winkelmann