I have two virtual private servers and I would like to get them to work in one network using OpenVPN. Both of them are Debian machines.Server setup:port 11194proto udp6 # I know using udp6 instead of udp here is unnecessarydev tapca ca.crtcert server.crtkey server.keydh dh2048.pemserver 10.8.0.0 255.255.255.0push redirect-gateway def1 bypass-dhcppush dhcp-option DNS 208.67.222.222push dhcp-option DNS 208.67.220.220keepalive 10 120cipher AES-128-CBCcomp-lzouser nobodygroup nogrouppersist-keypersist-tunstatus openvpn-status.loglog-append  openvpn.logverb 3Client setup:clientport 11194remote 86.xx.xx.190cipher AES-128-CBCdev tapproto udpnobindauth-nocachepersist-keypersist-tunverb 2comp-lzokeysize 128key-direction 1log-append openvpn.log<ca>[ca here]</ca><cert>[cert here]</cert><key>[key here]</key>I can connect to the server on a windows client without a problem, the connection works just fine. However, when I'm trying to connect via my secondary VPS:openvpn --config /path/to/cfg.ovpnthe ssh session ends and the whole server goes out of reach and is no longer available at it's public ip address. Then I have to do a forced reboot via my cloud management panel to stop the bad connection. What am I doing wrong here?Here's the log file from the client:Fri May  5 09:48:52 2017 OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Nov 12 2015Fri May  5 09:48:52 2017 library versions: OpenSSL 1.0.1t  3 May 2016, LZO 2.08Fri May  5 09:48:52 2017 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.Fri May  5 09:48:52 2017 UDPv4 link local: [undef]Fri May  5 09:48:52 2017 UDPv4 link remote: [AF_INET]86.xx.xx.190:11194Fri May  5 09:48:53 2017 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=Fort-Funston CA, name=server, emailAddress=me@myhost.mydomainFri May  5 09:48:53 2017 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=server, name=server, emailAddress=me@myhost.mydomainFri May  5 09:48:53 2017 WARNING: 'keydir' is present in local config but missing in remote config, local='keydir 0'Fri May  5 09:48:53 2017 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit keyFri May  5 09:48:53 2017 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationFri May  5 09:48:53 2017 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit keyFri May  5 09:48:53 2017 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationFri May  5 09:48:53 2017 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSAFri May  5 09:48:53 2017 [server] Peer Connection Initiated with [AF_INET]86.xx.xx.190:11194Fri May  5 09:48:55 2017 TUN/TAP device tap0 openedFri May  5 09:48:55 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0Fri May  5 09:48:55 2017 /sbin/ip link set dev tap0 up mtu 1500Fri May  5 09:48:55 2017 /sbin/ip addr add dev tap0 10.8.0.4/24 broadcast 10.8.0.255Fri May  5 09:48:55 2017 Initialization Sequence CompletedFri May  5 09:49:17 2017 event_wait : Interrupted system call (code=4)Fri May  5 09:49:17 2017 Closing TUN/TAP interfaceFri May  5 09:49:17 2017 /sbin/ip addr del dev tap0 10.8.0.4/24Fri May  5 09:49:17 2017 SIGHUP[hard,] received, process restartingFri May  5 09:49:17 2017 OpenVPN 2.3.4 x86_64-pc-linux-gnu [SSL (OpenSSL)] [LZO] [EPOLL] [PKCS11] [MH] [IPv6] built on Nov 12 2015Fri May  5 09:49:17 2017 library versions: OpenSSL 1.0.1t  3 May 2016, LZO 2.08Fri May  5 09:49:19 2017 WARNING: No server certificate verification method has been enabled.  See http://openvpn.net/howto.html#mitm for more info.Fri May  5 09:49:19 2017 UDPv4 link local: [undef]Fri May  5 09:49:19 2017 UDPv4 link remote: [AF_INET]86.xx.xx.190:11194Fri May  5 09:49:19 2017 VERIFY OK: depth=1, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=Fort-Funston CA, name=server, emailAddress=me@myhost.mydomainFri May  5 09:49:19 2017 VERIFY OK: depth=0, C=US, ST=CA, L=SanFrancisco, O=Fort-Funston, OU=MyOrganizationalUnit, CN=server, name=server, emailAddress=me@myhost.mydomainFri May  5 09:49:20 2017 WARNING: 'keydir' is present in local config but missing in remote config, local='keydir 0'Fri May  5 09:49:20 2017 Data Channel Encrypt: Cipher 'AES-128-CBC' initialized with 128 bit keyFri May  5 09:49:20 2017 Data Channel Encrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationFri May  5 09:49:20 2017 Data Channel Decrypt: Cipher 'AES-128-CBC' initialized with 128 bit keyFri May  5 09:49:20 2017 Data Channel Decrypt: Using 160 bit message hash 'SHA1' for HMAC authenticationFri May  5 09:49:20 2017 Control Channel: TLSv1, cipher TLSv1/SSLv3 DHE-RSA-AES256-SHA, 2048 bit RSAFri May  5 09:49:20 2017 [server] Peer Connection Initiated with [AF_INET]86.xx.xx.190:11194Fri May  5 09:49:22 2017 TUN/TAP device tap0 openedFri May  5 09:49:22 2017 do_ifconfig, tt->ipv6=0, tt->did_ifconfig_ipv6_setup=0Fri May  5 09:49:22 2017 /sbin/ip link set dev tap0 up mtu 1500Fri May  5 09:49:22 2017 /sbin/ip addr add dev tap0 10.8.0.4/24 broadcast 10.8.0.255Fri May  5 09:49:22 2017 Initialization Sequence Completed
VPS goes out of reach after connecting to a VPN (OpenVPN)
openvpn;vpn
Remove from the config the parameterpush redirect-gateway def1This parameter redirect all the traffic through the VPN tunnel