Elimintate a client from server

How to customize and extend your OpenVPN installation.

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

Post Reply
macaruchi
OpenVpn Newbie
Posts: 4
Joined: Sat Jul 23, 2011 6:20 pm

Elimintate a client from server

Post by macaruchi » Thu Aug 11, 2011 4:42 pm

Hi!
I have a OpenVPN server with 20 users and everything is fine but now I need to eliminate 2 users from my server. How can I delete the access for these 2 users ?
I know if that I delete the cert into the clients I can do it but it is imposible now.
There is a way to tell it to server that user can not connect to my server ?

TIA

george
Forum Team
Posts: 117
Joined: Tue Jun 09, 2009 4:25 pm
Location: St. Louis, MO USA

Re: Elimintate a client from server

Post by george » Thu Aug 11, 2011 4:59 pm

If you are using cert based authentication, you just need to revoke their cert, if you are using password auth, lock their account, or delete it.

macaruchi
OpenVpn Newbie
Posts: 4
Joined: Sat Jul 23, 2011 6:20 pm

Re: Elimintate a client from server

Post by macaruchi » Thu Aug 11, 2011 8:39 pm

Well, I am newbie but I suposse that I am using cert because I created the certificate for each client.
SO How I revoke the certificate?

2- I must create a server certification for each client ?

Now, I have just one server certification and I created 20 certicates for each client for ust one server but i dont know how to revoke their certificates to lock conection to my network?

Where I can find help or any document to read.

TIA

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

Re: Elimintate a client from server

Post by janjust » Fri Aug 12, 2011 8:53 am

You only need a single server certificate , and each clients needs separate client certificates. If you've only handed out 2 client certs I would simply start from scratch.

If you're using the easy-rsa package to set up your certificates then do

Code: Select all

. ./vars
./revoke-full <name-of-client-cert> 
a so-called Certificate Revocation List file (CRL) will be generated, which you can include in your openvpn server setup using

Code: Select all

crl -verify<full-path-to-.crl-file>

Post Reply