Friends--
After many hours and several months, it is time to ask for help from you.
Issue: cannot get client to connect to NAS.
Server: Synology ds213j running dsm 5.1, at 192.168.0.202
Client: Ubuntu 12.04.5 LTS OpenVPN 2.2.1 x86_64-linux-gnu
Router: Archer C7 AC1750 with port forwarding rules: external 1447 set to internal 1447 on the ipaddress for the nas, using udp. Static routing is
1 10.8.0.1 255.255.255.255 192.168.0.201 Enabled Modify Delete
2 192.168.1.0 255.255.255.0 192.168.0.201 Enabled Modify Delete
3 10.8.0.0 255.255.255.0 192.168.0.201 Enabled Modify Delete
4 10.8.1.1 255.255.255.255 192.168.0.202 Enabled Modify Delete
5 10.8.1.0 255.255.255.0 192.168.0.202 Enabled Modify Delete
Note: This client also connects to another server (192.168.0.201) on the same lan via openvpn (this connection has been working well for a year or two). I am using the same keys and crts for both servers.
The other server uses port 1194, its server.conf has the line "server 10.8.0.0 255.255.255.0" and the same push route line as the one below. Its ccd/client file is "iroute 192.168.1.0 255.255.255.0
ifconfig-push 10.8.0.42 10.8.0.41"
Server.conf:
management 127.0.0.1 1195
port 1447
proto udp
dev tun
ca /usr/syno/etc/synovpnclient/openvpn/ca.crt
cert /usr/syno/etc/synovpnclient/openvpn/mariah.crt
key /usr/syno/etc/synovpnclient/openvpn/mariah.key # This file should be kept secret
dh /usr/syno/etc/synovpnclient/openvpn/dh1024.pem
server 10.8.1.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
client-config-dir /usr/syno/etc/synovpnclient/openvpn/ccd
route 192.168.1.0 255.255.255.0
client-to-client
log-append /var/log/openvpn.log
keepalive 10 120
comp-lzo
max-clients 2
persist-key
persist-tun
status /usr/syno/etc/synovpnclient/openvpn/openvpn-status.log
status-version 2
verb 3
Server's ccd/air file is:
iroute 192.168.1.0 255.255.255.0
ifconfig-push 10.8.1.42 10.8.1.41
client.conf:
client
dev tun1
proto udp
remote xxxx.no-ip.org 1447
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/ca.crt
cert /etc/openvpn/air.crt
key /etc/openvpn/air.key
remote-cert-tls server
comp-lzo
verb 3
On client, when I run openvpn client.conf, I get:
Sun Feb 15 18:09:15 2015 OpenVPN 2.2.1 x86_64-linux-gnu [SSL] [LZO2] [EPOLL] [PKCS11] [eurephia] [MH] [PF_INET6] [IPv6 payload 20110424-2 (2.2RC2)] built on Dec 1 2014
Sun Feb 15 18:09:15 2015 NOTE: OpenVPN 2.1 requires '--script-security 2' or higher to call user-defined scripts or executables
Sun Feb 15 18:09:15 2015 LZO compression initialized
Sun Feb 15 18:09:15 2015 Control Channel MTU parms [ L:1542 D:138 EF:38 EB:0 ET:0 EL:0 ]
Sun Feb 15 18:09:15 2015 Socket Buffers: R=[229376->131072] S=[229376->131072]
Sun Feb 15 18:09:15 2015 Data Channel MTU parms [ L:1542 D:1450 EF:42 EB:135 ET:0 EL:0 AF:3/1 ]
Sun Feb 15 18:09:15 2015 Local Options hash (VER=V4): '41690919'
Sun Feb 15 18:09:15 2015 Expected Remote Options hash (VER=V4): '530fdded'
Sun Feb 15 18:09:15 2015 UDPv4 link local: [undef]
Sun Feb 15 18:09:15 2015 UDPv4 link remote: [AF_INET]XX.XX.XX.171:1447
Sun Feb 15 18:10:15 2015 TLS Error: TLS key negotiation failed to occur within 60 seconds (check your network connectivity)
Sun Feb 15 18:10:15 2015 TLS Error: TLS handshake failed
Sun Feb 15 18:10:15 2015 TCP/UDP: Closing socket
On the server side, there is nothing at all in the /var/log/openvpn.log file, nor in the /usr/syno/etc/synovpnclient/openvpn/openvpn-status.log
For today's tests, I completely disabled the firewall on the NAS, thinking that could be an issue.
So what to do to get these machines connected?
Thanks!