Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I know how to connect to an openvpn via a command line in Windows XP. What I can't figure out is how to end the connection. Any thoughts?

share|improve this question

5 Answers 5

press F4 (it's listed in the title bar of the command window).

share|improve this answer
    
-1 they're looking for command line, not keyboard shortcuts –  Mark Henderson Apr 8 '12 at 20:56
    
That's the correct answer: When you're starting openvpn.exe on command line, the only way to disconnect is to hit F4. CTRL-C is ineffective. –  Nicolas Guillaumin Jun 30 '13 at 7:33

they often have the command

vpnc-disconnect

share|improve this answer

You can stop the service with:

net stop openvpnservice
share|improve this answer

Its looks like openvpn doesnot have disconnect option. But you can use taskkill command to disconnect the vpn connection. I have tested myself. It is properly disconnecting instead of abruptly killing openvpn.

taskkill.exe /F /IM openvpn.exe

share|improve this answer

Refer below link, that might help you...

http://pwnt.be/2009/08/01/automating-openvpn-connection-on-windows-xp

share|improve this answer
    
Whilst this may theoretically answer the question, it would be preferable to include the essential parts of the answer here, and provide the link for reference. –  Mark Henderson Apr 8 '12 at 20:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.