From owner-freebsd-questions@FreeBSD.ORG Fri Sep 16 12:36:19 2005 Return-Path: X-Original-To: freebsd-questions@freebsd.org 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 44D7016A41F for ; Fri, 16 Sep 2005 12:36:19 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: from mail24.sea5.speakeasy.net (mail24.sea5.speakeasy.net [69.17.117.26]) by mx1.FreeBSD.org (Postfix) with ESMTP id E9F5F43D48 for ; Fri, 16 Sep 2005 12:36:18 +0000 (GMT) (envelope-from freebsd-questions-local@be-well.ilk.org) Received: (qmail 4464 invoked from network); 16 Sep 2005 12:36:17 -0000 Received: from dsl092-078-145.bos1.dsl.speakeasy.net (HELO be-well.ilk.org) ([66.92.78.145]) (envelope-sender ) by mail24.sea5.speakeasy.net (qmail-ldap-1.03) with SMTP for ; 16 Sep 2005 12:36:17 -0000 Received: by be-well.ilk.org (Postfix, from userid 1147) id 4A9FE36; Fri, 16 Sep 2005 08:36:15 -0400 (EDT) Sender: lowell@be-well.ilk.org To: Felix Chang To: freebsd-questions@freebsd.org References: <20050915035610.54037.qmail@web86901.mail.ukl.yahoo.com> From: Lowell Gilbert Date: 16 Sep 2005 08:36:14 -0400 In-Reply-To: <20050915035610.54037.qmail@web86901.mail.ukl.yahoo.com> Message-ID: <44ll1x42bl.fsf@be-well.ilk.org> Lines: 29 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Subject: Re: PPP tunnel problem! X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: freebsd-questions@freebsd.org List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Sep 2005 12:36:19 -0000 Felix Chang writes: > Hi, > > I am using the FreeBSD to become the NAS so that > can provide PPPoE and PPP services to the clients > which is worked with the Radius. I have successfully > started the PPP and PPPoE services and connected to > the internet with the authentication of the Radius. > However, I face one serious problem. During the time > the client was connecting to the internet, if the > client unplugs the cable or shut down their PC without > disconnection, the tunnel created was still remain in > the NAS. This make the client cannot connect to the > internet anymore as I set the radius not to allow any > duplicated login. > > May I know is that anyway for the FreeBSD to kill > the tunnel automatically when the client unplugs the > cable or shutdown the PC without disconnection. I had > tried the "set timeout" in the ppp.conf but I don't > think this is the right solution. Why isn't it the right solution? The physical interface is still up, so I don't see any other way to detect that the client has gone away. Well, maybe you could set up RADIUS to kill the first session when (successfully) authenticating the second. But that would likely be tricky to set up...