Page 1 of 1

How to end session from client side

Posted: Tue Aug 30, 2011 7:45 pm
by avica
Hi
I am new to VPN.
I am using OpenVPN client on PC running Linux.
I wonder how I end the openVPN session from a command line?

Thanks in advance.

Re: How to end session from client side

Posted: Tue Aug 30, 2011 8:57 pm
by janjust
if you're running

Code: Select all

openvpn --config ....
and it remains running in the foreground then simply press 'Ctrl+C'

If openvpn is configured to daemonize itself then a

Code: Select all

killall openvpn
will most certainly do the trick, although it is a 'shotgun' method.

Re: How to end session from client side

Posted: Wed Aug 31, 2011 3:12 am
by avica
Thank you very much.
It was helpfull.