I have 1 machine that has OpenVPN tunnel setup with 1 external network computer. Now i want to add another external network computer with a new tunnel.
Config file for currently operating tunnel
client ;dev tap dev tun ;dev-node MyTap ;proto tcp proto udp ;remote 184.108.40.206 1194 remote mywebsite.com 1194 remote 220.127.116.11 1194 ;remote my-server-2 1194 ;remote-random resolv-retry infinite nobind ;user nobody ;group nobody persist-key persist-tun ;http-proxy-retry # retry on connection failures ;http-proxy [proxy server] [proxy port #] ;mute-replay-warnings ca /etc/openvpn/keys/ca.crt cert /etc/openvpn/keys/client.crt key /etc/openvpn/keys/client.key ns-cert-type server ;tls-auth ta.key 1 ;cipher x comp-lzo verb 3 ;mute 20
This is VPN tunnel configuration for currently working tunnel. Now i am trying to create another tunnel that uses its own ca.crt, client.crt and client.key
This is another config file for second tunnel
client dev tun proto tcp remote 18.104.22.168 port 1000 resolv-retry infinite nobind persist-key persist-tun ca ca.crt cert 207.crt key 207.key ns-cert-type server comp-lzo verb 3
- I have tried to add the setup to the same config file but with no luck. Is this even possible to add another details to same config file or creating a new config file is a must?
- If this is really not the way to go what other options there are?