I’m a trainee in informatic and I encounter a problem. I have to do a VPN network. I use OpenVPN to do it.
This is the current configuration :
http://www.noelshack.com/2016-17-1461749973-current.png
My goals:
- - Site 1 can communicate with Site 2
- Site 1 can communicate with Site 3
- Site 2 can’t communicate with Site 3 (don’t care)
So Site 1 is the main site.
I have searched two days :
I succeed only with two instances of OpenVPN on Site 1 to make the connections.
This is a example for Site 1 to Site 2 :
Begin
remote [Hidden]
float
port 1195
proto udp
dev tun0
secret /etc/openvpn/server.key
ifconfig 10.0.0.1 10.0.0.2
route 192.168.2.0 255.255.255.0
push “redirect-gateway defl bypass-dhcp”
log /etc/openvpn/openvpn.log
keepalive 10 120
comp-lzo
user nobody
group nobody
persist-tun
persist-key
persist-remote-ip
persist-local-ip
verb3
End
Is it possible to connect Site 2 and Site 3 to Site 1 with only one instance of OpenVPN on Site 1 ?