Ticket #465 (new Feature Request)

Opened 8 months ago

Last modified 8 months ago

immediate disconnect feature

Reported by: wichert@wiggy.net Assigned to:
Priority: low Milestone: Not yet assigned to a Milestone
Component: Gateway Keywords:
Cc:

Description

As I mentioned on the list I have a need for immediate disconnect feature. There are some related features already present, but they do not fit my particular use case:

  • The standard logout option only logs out the requesting IP address
  • The auth server can already return a disconnect authcode when the gateway does its regular update process. This means there will be a, possibly signficant, delay between requesting a disconnect in the auth server and the gateway actually disconnecting someone. When dealing with abuse, spamruns, etc. this is undesirable.

I have implemented this in two patches:

0001-Add-a-basic-disconnect-command.patch
This implements a very basic disconnect command and hooks it into the http server.
0002-Refactor-logout-logic-so-we-can-share-code.patch
This refactors various bits of code so the logout logic is shared between the firewall update process, wdctl_reset and the disconnect handler

This feature requires the patches from #463 to secure the status page: the status page contains enough information to allow abusers to disconnect every user connected to a gateway/

Attachments

0001-Add-a-basic-disconnect-command.patch (2.9 kB) - added by wichert@wiggy.net on 04/28/08 11:50:03.
0002-Refactor-logout-logic-so-we-can-share-code.patch (6.4 kB) - added by wichert@wiggy.net on 04/28/08 11:50:18.
0005-Secure-the-callback-request.patch (1.1 kB) - added by wichert@wiggy.net on 04/29/08 04:10:43.

Change History

04/28/08 11:50:03 changed by wichert@wiggy.net

  • attachment 0001-Add-a-basic-disconnect-command.patch added.

04/28/08 11:50:18 changed by wichert@wiggy.net

  • attachment 0002-Refactor-logout-logic-so-we-can-share-code.patch added.

04/29/08 04:10:43 changed by wichert@wiggy.net

  • attachment 0005-Secure-the-callback-request.patch added.

04/29/08 04:14:30 changed by wichert@wiggy.net

Based on discussions with Alex on the list I've added a third patch to this series which protects the disconnect method with HTTP authentication. As a result these patches now need the changes from #453 in order to compile.


Add/Change #465 (immediate disconnect feature)