howto kill specific client in multi-client server mode

All comments and questions related to the functionality of the OpenVPN web pages and forum should go here.

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

Locked
tushar.sharma
OpenVPN Power User
Posts: 58
Joined: Fri Oct 07, 2011 12:23 pm
Location: Pune
Contact:

howto kill specific client in multi-client server mode

Post by tushar.sharma » Thu Feb 09, 2012 9:17 am

Hello All,

i have setup openvpn server and allowed to 10 clients to connect
to it,, now if i want to gracefully kill some specific client on basis
of its ip or common how can i do that using openvpn command line
mode..is it really possible ?


Thanking You,
Tushar Sharma

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: howto kill specific client in multi-client server mode

Post by maikcat » Thu Feb 09, 2012 9:19 am

you can via managment console -BUT-

if they run openvpn as service they will reconnect..

to temporary block them you must use ccd-exclusive directive
and rename/remove their ccd file..

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

tushar.sharma
OpenVPN Power User
Posts: 58
Joined: Fri Oct 07, 2011 12:23 pm
Location: Pune
Contact:

Re: howto kill specific client in multi-client server mode

Post by tushar.sharma » Thu Feb 09, 2012 9:47 am

Dear Maikcat,

I have establish one connection of client to server initially kept its file in ccd dir now
and on running connection i have renamed its file in ccd folder still the client is connected.


Howto gracefully kill it, is it possible without management interface..


thanking YOu
Tushar

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: howto kill specific client in multi-client server mode

Post by maikcat » Thu Feb 09, 2012 12:25 pm

Howto gracefully kill it, is it possible without management interface..
AFAIK only using managment console and issuing kill cn

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

tushar.sharma
OpenVPN Power User
Posts: 58
Joined: Fri Oct 07, 2011 12:23 pm
Location: Pune
Contact:

Re: howto kill specific client in multi-client server mode

Post by tushar.sharma » Fri Feb 10, 2012 6:36 am

Hey Maikcat,

I have done it using management interface only.
I opened one tcp socket on management interface on my gui
and send kill command with specific client common name instance.\



Thanking You

Tushar :)

User avatar
maikcat
Forum Team
Posts: 4200
Joined: Wed Jan 12, 2011 9:23 am
Location: Athens,Greece
Contact:

Re: howto kill specific client in multi-client server mode

Post by maikcat » Fri Feb 10, 2012 8:33 am

glad to helped you out.

closing topic.

Michael.
Amiga 500 , Zx +2 owner
Long live Dino Dini (Kick off 2 Creator)

Inflammable means flammable? (Dr Nick Riviera,Simsons Season13)

"objects in mirror are losing"

Locked