How to end session from client side

This forum is for general conversation and user-user networking.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
avica
OpenVpn Newbie
Posts: 2
Joined: Tue Aug 30, 2011 7:42 pm

How to end session from client side

Post by avica » Tue Aug 30, 2011 7:45 pm

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.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: How to end session from client side

Post by janjust » Tue Aug 30, 2011 8:57 pm

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.

avica
OpenVpn Newbie
Posts: 2
Joined: Tue Aug 30, 2011 7:42 pm

Re: How to end session from client side

Post by avica » Wed Aug 31, 2011 3:12 am

Thank you very much.
It was helpfull.

Post Reply