How to setup multiple VPS servers using same ca.cert?

This forum is for admins who are looking to build or expand their OpenVPN setup.

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

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
User avatar
xauen
Forum Team
Posts: 80
Joined: Tue May 10, 2011 7:57 pm
Location: Manila, Philippines
Contact:

How to setup multiple VPS servers using same ca.cert?

Post by xauen » Sat May 14, 2011 5:24 pm

Hello sirs,

I have multiple VPS servers that i want to incorporate on my existing VPS with VPN server.
I would like my current clients to have access to the "new" multiple VPS server using same login credentials (in one kloxo panel.

Eg.
1. user100 connects to server1.
2. server1 is full so user100 transfers to server2 using same login credentials in the same openvpn clientGUI (customized).
3. user100 connects, then leaves due to slow connection speed.
4. user100 then connects to server3 using same credentials he used on servers 1 & 2.

thanks sirs:-)
"Never be bullied into silence. Never allow yourself to be made a victim. Accept no ones definition of you"
-IDK

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

Re: How to setup multiple VPS servers using same ca.cert?

Post by janjust » Sat May 14, 2011 9:31 pm

set up 3 servers with 3 server certs (server1.crt, server2.crt, server3.crt), all signed by the same CA.crt .

set up the client config to use

Code: Select all

remote server1 1194
remote server2 1194
remote server3 1194
remote-random
make sure the username+passwords are synced across all 3 servers (e.g. using a central LDAP database).

There's no reason this could not be made to work.

User avatar
xauen
Forum Team
Posts: 80
Joined: Tue May 10, 2011 7:57 pm
Location: Manila, Philippines
Contact:

Re: How to setup multiple VPS servers using same ca.cert?

Post by xauen » Thu May 19, 2011 9:37 am

Ok now i get it a little bit.

But, what if i wanna setup a master-slave VPS using Kloxo.
1. Do i have to install openvpn in the slave server "also" or just on the master server
using multiple .conf but with different local IP?
2. How about the IPtables? Do i have to add the IP's of the slave servers on the master server
IPtables postrouting? Or do i have to "individualize" each iptables for each slave server?
3. I want a little bit clarification on "service openvpn start ". Does this command start all serverx.conf regardless of the quantity of my serverx.conf files? Or do i have to start each serverx.conf manually next to "service openvpn start"?

Hoping for your immediate answer guys.

Thank you :)
"Never be bullied into silence. Never allow yourself to be made a victim. Accept no ones definition of you"
-IDK

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

Re: How to setup multiple VPS servers using same ca.cert?

Post by janjust » Thu May 19, 2011 11:18 am

1. Do i have to install openvpn in the slave server "also" or just on the master server
using multiple .conf but with different local IP?
this is NOT a VPS/kloxo forum, it's an openvpn forum; what you want to achieve is kloxo dependent - ask them
2. How about the IPtables? Do i have to add the IP's of the slave servers on the master server
IPtables postrouting? Or do i have to "individualize" each iptables for each slave server?
again, depends on what you want to achieve and configuring iptables is off-topic for this forum anyways
3. I want a little bit clarification on "service openvpn start ". Does this command start all serverx.conf regardless of the quantity of my serverx.conf files? Or do i have to start each serverx.conf manually next to "service openvpn start"?
that depends on the linux distro: some restart all .conf service (rhel5/centos) , some can be configured to restart only a single service (debian, ubuntu) . Besides, the 'service openvpn start' command is slightly off-topic for this forum also.

User avatar
xauen
Forum Team
Posts: 80
Joined: Tue May 10, 2011 7:57 pm
Location: Manila, Philippines
Contact:

Re: How to setup multiple VPS servers using same ca.cert?

Post by xauen » Sat May 21, 2011 6:45 am

Sir janjust i just dont get the point sir.

Can you give me some reference materials on how i can connect multiple openvpn servers
to a central ldap. I've been searching the internet for weeks now,.

Please help me.. Im in deep trouble sire.

Thanks,
"Never be bullied into silence. Never allow yourself to be made a victim. Accept no ones definition of you"
-IDK

Post Reply