Server can't ping or access client

Need help configuring your VPN? Just post here and you'll get that help.

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
grodriguesq
OpenVpn Newbie
Posts: 6
Joined: Sun Nov 12, 2017 4:31 pm

Server can't ping or access client

Post by grodriguesq » Mon Nov 13, 2017 2:33 pm

Hi guys.

I have 2 servers.
192.168.0.1 - OLD SERVER (OPENVPN WORKS PERFCTLY) Windows 2008 Server
192.168.0.2 - NEW SERVER (THE PROBLEM) Windows 2016 Server

In then NEW SERVER I installed the openvpn, and did the same configs, copied server files, server.ovpn and the routes.

192.168.2.1 - IP of the OPENVPN SERVER
192.168.2.6 - IP of the Client when is connected on the OPENVPN SERVER

192.168.1.1 - Local IP of the client.
192.168.0.2 - Local IP of the SERVER.

A Client can connect to the NEW SERVER, the client can ping and access File Sharing using \\192.168.2.1.
But if I'm on the NEW SERVER and try to ping 192.168.2.6 or access \\192.168.2.6 I can't reach there.

My guess is there is something wrong with routes on the SERVER side.

OBS.: Everything still works good on the OLD SERVER.

OPENVPN VERSION 1.0.3

SERVER CONFIG

## server.ovpn ##
port 1194
proto udp
dev tun

ca ca.crt
cert zill.crt
key zill.key
dh dh1024.pem

server 192.168.2.0 255.255.255.0

push "route 192.168.2.0 255.255.255.0"
push "dhcp-option WINS 192.168.2.1"
push "dhcp-option DNS 192.168.2.1"
push "dhcp-option DOMAIN zill.local"

client-to-client

ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo no
max-clients 4
persist-key
persist-tun
status openvpn-status.log
verb 3





CLIENT CONNECTION SCRIPT

client
proto udp
dev tun
remote xxx.xxx.xxx.xxx
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert zill.crt
key zill.key
comp-lzo no
verb 3



ROUTING TABLE ON NEW SERVER



IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.0.254 192.168.0.2 291
127.0.0.0 255.0.0.0 On-link 127.0.0.1 331
127.0.0.1 255.255.255.255 On-link 127.0.0.1 331
127.255.255.255 255.255.255.255 On-link 127.0.0.1 331
192.168.0.0 255.255.255.0 On-link 192.168.0.2 291
192.168.0.2 255.255.255.255 On-link 192.168.0.2 291
192.168.0.255 255.255.255.255 On-link 192.168.0.2 291
192.168.2.0 255.255.255.0 On-link 192.168.0.2 36
192.168.2.0 255.255.255.0 192.168.2.2 192.168.2.1 55
192.168.2.0 255.255.255.0 192.168.2.4 192.168.0.2 36
192.168.2.0 255.255.255.252 On-link 192.168.2.1 311
192.168.2.1 255.255.255.255 On-link 192.168.2.1 311
192.168.2.3 255.255.255.255 On-link 192.168.2.1 311
192.168.2.255 255.255.255.255 On-link 192.168.0.2 291
224.0.0.0 240.0.0.0 On-link 127.0.0.1 331
224.0.0.0 240.0.0.0 On-link 192.168.0.2 291
224.0.0.0 240.0.0.0 On-link 192.168.2.1 311
255.255.255.255 255.255.255.255 On-link 127.0.0.1 331
255.255.255.255 255.255.255.255 On-link 192.168.0.2 291
255.255.255.255 255.255.255.255 On-link 192.168.2.1 311
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
0.0.0.0 0.0.0.0 192.168.0.254 Default
===========================================================================


TinCanTech
OpenVPN Protagonist
Posts: 11137
Joined: Fri Jun 03, 2016 1:17 pm

Re: Server can't ping or access client

Post by TinCanTech » Mon Nov 13, 2017 2:46 pm


grodriguesq
OpenVpn Newbie
Posts: 6
Joined: Sun Nov 12, 2017 4:31 pm

Re: Server can't ping or access client

Post by grodriguesq » Mon Nov 13, 2017 2:54 pm

Now I Installed the version 2.3.18i602-i686 but the problem still the same.

With version 2.4.4-I601 the problem is getting worse, with this version the client can't ping server, server can't ping itself and the server can't ping the client.

Post Reply