Disconnect VPN user with Session ID
Hello,
I need a command to api or ... that could use in my program to disconnect user based that user session id.
[assume two user with same username connected [with radius authentication] and I want disconnect just one of them]
how can I do it with command line?
June 6th, 2011 3:57am
Hi,
It seems that there is no command to disconnect a VPN connection according to user session ID. However you can restrict only one VPN connection per user by writing a RAS administration DLL for this purpose.
To disconnect a dial-up or VPN connection by using a command prompt
http://technet.microsoft.com/en-us/library/cc732379(WS.10).aspx#BKMK_Anchor4
Steps to develop a RAS administration DLL using Visual Studio
http://blogs.technet.com/b/rrasblog/archive/2007/12/20/steps-to-develop-a-ras-administration-dll-using-visual-studio.aspx
BrentPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 6th, 2011 8:55am
Hi,
I mean my program run in RRAS server not vpn client.
http://technet.microsoft.com/en-us/library/cc732379(WS.10).aspx#BKMK_Anchor4 is useful for vpn clients
and about http://blogs.technet.com/b/rrasblog/archive/2007/12/20/steps-to-develop-a-ras-administration-dll-using-visual-studio.aspx I don't know where can I user it. (or is better to say how can I use that dll file)
June 8th, 2011 2:28am
Hi,
The RAS administration DLL is loaded by RRAS during service startup, it is required to register the DLL with RRAS. If you would like to know about specific usage for RAS administration DLL, you can contact with
rrasblog@online.microsoft.com.
Limit one connection to the VPN server per user
http://blogs.technet.com/b/rrasblog/archive/2008/07/17/limit-one-connection-to-the-vpn-server-per-user.aspx
RAS Administration DLL - Your customized solution to manage the server!
http://blogs.technet.com/b/rrasblog/archive/2007/12/16/ras-administration-dll-your-customized-solution-to-manage-the-server.aspx
BrentPlease remember to click Mark as Answer on the post that helps you, and to click Unmark as Answer if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
Free Windows Admin Tool Kit Click here and download it now
June 8th, 2011 5:53am