VPN with different VPSes

This forum is for all inquiries relating to the installation of OpenVPN from source and with binaries.

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

Forum rules
Please visit (and READ) the OpenVPN HowTo http://openvpn.net/howto prior to asking any questions in here!
Post Reply
NewBiee
OpenVpn Newbie
Posts: 10
Joined: Tue May 31, 2011 12:26 pm

VPN with different VPSes

Post by NewBiee » Fri Jun 03, 2011 3:54 pm

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?

Tim
OpenVpn Newbie
Posts: 1
Joined: Sun Jul 24, 2011 2:32 pm

Re: VPN with different VPSes

Post by Tim » Sun Jul 24, 2011 2:39 pm

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.

User avatar
Bebop
Forum Team
Posts: 301
Joined: Wed Dec 15, 2010 9:24 pm

Re: VPN with different VPSes

Post by Bebop » Mon Jul 25, 2011 11:27 pm

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.
The cure for boredom is curiosity

Post Reply