Page 1 of 1

Can't establish connection to a VPN client

Posted: Wed Jul 22, 2015 11:03 am
by peppezic
Hi everyone!
I'm using OpenVPN on a ubuntu server for several months with no problem and with any need of help (since the documentation is full and complete!).

Unfortunately now I need your help.
I need, from a windows PC on my LAN, to connect to a process running on a windows VPN client PC (172.16.1.0/24 subnet).
I'm correctly pinging VPN client machine both from OpenVPN server and LAN client (see last example of this article: https://community.openvpn.net/openvpn/w ... AndRouting) and vice versa, but I can't connect to any service running on the VPN Client (no remote desktop, no shares, any listening service) even with local vpn client firewall off.

So I'm wondering...if there's no firewall blocking a connection, and since I have a route from my LAN to all VPN clients...why shouldn't this work?

Below server and client configuration:

Code: Select all

port 1194
proto udp
dev tun
ca /etc/openvpn/certs/ca.pem
cert /etc/openvpn/certs/server.pem
key /etc/openvpn/certs/key.pem
dh /etc/openvpn/certs/dh2048.pem
ifconfig-pool-persist ipp.txt
server 172.16.0.0 255.255.255.0
client-config-dir ccd
route 172.16.1.0 255.255.255.0
route 172.16.2.0 255.255.255.0
route 172.16.3.0 255.255.255.0
client-connect /etc/openvpn/scripts/clientconnect.sh
client-disconnect /etc/openvpn/scripts/clientdisconnect.sh
keepalive 10 120
comp-lzo
persist-key
persist-tun
verb 3
plugin /usr/lib/openvpn/openvpn-plugin-auth-pam.so openvpn
reneg-sec 36000
tmp-dir /etc/openvpn/tmp-dir
username-as-common-name
script-security 3 system
ccd-exclusive
client conf:

Code: Select all

client
dev tun
proto udp
remote <myvpn> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca global_geotrust.cer
comp-lzo
verb 5
auth-user-pass
auth-nocache
explicit-exit-notify
reneg-sec 36000
Kind regards.

Re: Can't establish connection to a VPN client

Posted: Thu Jul 23, 2015 7:25 pm
by Traffic
peppezic wrote:I need, from a windows PC on my LAN, to connect to a process running on a windows VPN client PC (172.16.1.0/24 subnet).
What process ?