인디노트

How to create multi-server vpn 본문

개발 플랫폼 및 언어

How to create multi-server vpn

인디개발자 2018. 11. 7. 22:56

Easier than you might have thought.

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

create server01.conf, server02.conf, server03.conf. Example:

CODE: SELECT ALL

touch ./server01.conf
touch ./server02.conf
touch ./server03.conf

Configure each server.conf to be a new server.

server01.conf:

CODE: SELECT ALL

port 1194
proto udp
dev tun
server 10.8.1.0 255.255.255.0

server02.conf:

CODE: SELECT ALL

port 1194
proto udp
dev tun
server 10.8.2.0 255.255.255.0

server03.conf:

CODE: SELECT ALL

port 1194
proto udp
dev tun
server 10.8.3.0 255.255.255.0

restart openvpn as daemon.

Centos

CODE: SELECT ALL

service openvpn restart

Debian

CODE: SELECT ALL

/etc/init.d/openvpn restart








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

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







반응형
Comments