Page 1 of 1

VPN with different VPSes

Posted: Fri Jun 03, 2011 3:54 pm
by NewBiee
Hey is it possible if I have two VPNs set up on different servers? But only shares one access.

For example,

My vpn 1 on vps1 has a vpn in germany.
My vpn 2 on vps2 has a vpn in us.

Now what i want is that vpn 1 and vpn 2 will have the same user accounts in connecting the vpn.

I use the "useradd username" command.

I want them to have both the username on the two vpns,


NOW the prob is, when i both execute useradd command on both vps, they can connect on those two servers simultaneously, and i dont want that. How do you do it?

Re: VPN with different VPSes

Posted: Sun Jul 24, 2011 2:39 pm
by Tim
I have no idea how to do in the lightweight way. If you are planning to add more VPSes and more VPNs you may think of more advanced access control solution with central database.
The way we are doing it in www.securitykiss.com is that for every VPN user connection the script connects to database to check access permissions. By recording user status in the database you can apply "only one connection per user" policy.

Re: VPN with different VPSes

Posted: Mon Jul 25, 2011 11:27 pm
by Bebop
You will have to be more clear with your description of the problem.
NewBiee wrote:Now what i want is that vpn 1 and vpn 2 will have the same user accounts in connecting the vpn.
How do your clients connect to the VPN, and what is the purpose in accessing the vpn -- is it a tunnel, or do they access shared resources?
NewBiee wrote:I use the "useradd username" command.
useradd will give them access to the shell on the VPS -- I thought you said you want to give them access to VPN..

Forgive me for not understanding what you want right now, but if you try say it again using different words, it may be possible to try help you with a solution. So, rephrase if you may.