How to create multi-server vpn
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.
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
-
- OpenVpn Newbie
- Posts: 4
- Joined: Tue Mar 08, 2011 1:33 pm
How to create multi-server vpn
Can somebody teach me how to create a multi-server vpn? Thanks.
- Bebop
- Forum Team
- Posts: 301
- Joined: Wed Dec 15, 2010 9:24 pm
Re: How to create multi-server vpn
Easier than you might have thought.genlight wrote:Can somebody teach me how to create a multi-server vpn
First: Can you create a single server VPN?
If yes, then its very easy for you to create multi-server.
The simple and short answer is -- Just create more .conf files, and start openvpn as a daemon. For more detailed explanation, read on.
I'll give you example for 3 server VPN.
Go to your default openvpn directory. example:
Code: Select all
cd /etc/openvpn
Code: Select all
touch ./server01.conf
touch ./server02.conf
touch ./server03.conf
server01.conf:
Code: Select all
port 1194
proto udp
dev tun
server 10.8.1.0 255.255.255.0
Code: Select all
port 1194
proto udp
dev tun
server 10.8.2.0 255.255.255.0
Code: Select all
port 1194
proto udp
dev tun
server 10.8.3.0 255.255.255.0
Centos
Code: Select all
service openvpn restart
Code: Select all
/etc/init.d/openvpn restart
The cure for boredom is curiosity
-
- OpenVpn Newbie
- Posts: 12
- Joined: Mon Feb 07, 2011 5:15 am
Re: How to create multi-server vpn
I have separate directories for each server, and keep each server.conf in each subdirectory.
Theoretically this would make it possible to keep keys for each server separate.
This also gives you different logs in each subdirectory, in case you have to troubleshoot stuff.
Theoretically this would make it possible to keep keys for each server separate.
This also gives you different logs in each subdirectory, in case you have to troubleshoot stuff.
- Bebop
- Forum Team
- Posts: 301
- Joined: Wed Dec 15, 2010 9:24 pm
Re: How to create multi-server vpn
None of those are reasons to store .conf outside of /etc/openvpn, because the key and log locations you mentioned are taken from .conf regardless. You can have as many sub-directories for keys and logs as you wish, however, .conf can stay with /etc/openvpn.hostizzle wrote:I have separate directories for each server, and keep each server.conf in each subdirectory.
Theoretically this would make it possible to keep keys for each server separate.
This also gives you different logs in each subdirectory, in case you have to troubleshoot stuff.
IMO the valid reason to potentially store .conf in a sub-directory is if you want to start your multiple servers manually, one by one, then thats a legitimate reason to move .confs to a sub-directory.
As for me, I prefer to have the daemon starting my servers for me. if any server needs to be started manually (not automatically), then it can be moved to a sub-directory.
The cure for boredom is curiosity
-
- OpenVpn Newbie
- Posts: 9
- Joined: Wed Mar 16, 2011 2:10 am
Re: How to create multi-server vpn
are this the IP addresses?Code: Select all
port 1194 proto udp dev tun server 10.8.1.0 255.255.255.0
Code: Select all
port 1194 proto udp dev tun server 10.8.2.0 255.255.255.0
Code: Select all
port 1194 proto udp dev tun server 10.8.3.0 255.255.255.0
Code: Select all
10.8.1.0,10.8.2.0,10.8.2.3
-
- OpenVpn Newbie
- Posts: 9
- Joined: Wed Mar 16, 2011 2:10 am
Re: How to create multi-server vpn
i found a multi-server vpn provider somewhere on the net, they claimed they 5 servers and i found out that they only have one security certificate on the installer they provided and 5 ovpn files.
here's 5 the client config
values of the IP addresses are the only thing that is changing.
here's 5 the client config
Code: Select all
client
dev tun
remote xxx.xxx.xx.xx
ca crt/ca.crt
Code: Select all
client
dev tun
remote qqq.qqq.qq.qq
ca crt/ca.crt
Code: Select all
client
dev tun
remote yyy.yyy.yy.yy
ca crt/ca.crt
Code: Select all
client
dev tun
remote zzz.zzz.zz.zz
ca crt/ca.crt
Code: Select all
client
dev tun
remote www.www.ww.ww
ca crt/ca.crt
- Bebop
- Forum Team
- Posts: 301
- Joined: Wed Dec 15, 2010 9:24 pm
Re: How to create multi-server vpn
arvpnick = genlight?arvpnick wrote: so what do i need to buy
Multi-server VPN. What specifically do you mean?genlight wrote:teach me how to create a multi-server vpn
- 1 hardware server with multiple OpenVPN server instances?
- Multiple hardware servers?
- Multiple internet tunnels?
- Multiple WAN IP addresses?
The cure for boredom is curiosity
-
- Forum Team
- Posts: 285
- Joined: Wed Aug 27, 2008 2:41 am
Re: How to create multi-server vpn
I assume by multi-server VPN you mean chaining VPN's
- xauen
- Forum Team
- Posts: 80
- Joined: Tue May 10, 2011 7:57 pm
- Location: Manila, Philippines
- Contact:
Re: How to create multi-server vpn
I suppose its what he means.. chaining multiple vpn server
using one authentication system.
Im looking for this also sire.
Can you please help me out?
using one authentication system.
Im looking for this also sire.
Can you please help me out?
"Never be bullied into silence. Never allow yourself to be made a victim. Accept no ones definition of you"
-IDK
-IDK