PPP tunnel problem!

Lowell Gilbert freebsd-questions-local at be-well.ilk.org
Fri Sep 16 05:36:19 PDT 2005


Felix Chang <felix836 at yahoo.co.uk> 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...


More information about the freebsd-questions mailing list