Routes problem, ping not into LAN
Posted: Tue Jan 10, 2012 4:56 pm
Good afternoon, I try to explain my problem.
The scenary is:
LAN1: 192.168.0.0
OPENVPN SERVER IP: 192.168.0.12
WINDOWS 2003 SERVER with OpenVPN Server GUI installed and server.ovpn with the next configuration:
local 192.168.0.12
port 1194
proto udp
mssfix 1400
dev tun
ca "C:\\Archivos de programa (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de programa (x86)\\OpenVPN\\config\\hall9000.tcsc.local.crt"
key "C:\\Archivos de programa (x86)\\OpenVPN\\config\\hall9000.tcsc.local.key" # Este archivo debe mantenerse en secreto
dh "C:\\Archivos de programa (x86)\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option WINS 192.168.0.12"
push "dhcp-option DNS 192.168.0.12"
push "dhcp-option DOMAIN tcsc.local"
keepalive 10 120
comp-lzo
max-clients 4
persist-key
persist-tun
status openvpn-status.log
verb 3
LAN 1 ROUTE PRINT:
Rutas activas:
Destino de red Máscara de red Puerta de acceso Interfaz Métrica
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.12 20
10.8.0.0 255.255.255.252 10.8.0.1 10.8.0.1 30
10.8.0.0 255.255.255.0 10.8.0.2 10.8.0.1 1
10.8.0.1 255.255.255.255 127.0.0.1 127.0.0.1 30
10.255.255.255 255.255.255.255 10.8.0.1 10.8.0.1 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.12 192.168.0.12 20
192.168.0.12 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.255 255.255.255.255 192.168.0.12 192.168.0.12 20
224.0.0.0 240.0.0.0 10.8.0.1 10.8.0.1 30
224.0.0.0 240.0.0.0 192.168.0.12 192.168.0.12 20
255.255.255.255 255.255.255.255 10.8.0.1 10.8.0.1 1
255.255.255.255 255.255.255.255 192.168.0.12 192.168.0.12 1
Puerta de enlace predeterminada: 192.168.0.1
===========================================================================
Rutas persistentes:
Ninguno
LAN2: 192.168.1.0
OPENVPN CLIENT 192.168.1.34
WINDOWS XP SP3 with OpenVPN Server GUI installed and client.ovpn with the next configuration:
client
proto udp
dev tun
remote 77.XXX.XXX.XXX 1194 #Dirección IP Pública del servidor OpenVPN
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Archivos de programa\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de programa\\OpenVPN\\config\\rpc806020.crt"
key "C:\\Archivos de programa\\OpenVPN\\config\\rpc806020.key"
comp-lzo
verb 3
LAN2 ROUTE PRINT:
Rutas activas:
Destino de red Máscara de red Puerta de acceso Interfaz Métrica
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.34 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.1.34 192.168.1.34 20
192.168.1.0 255.255.255.0 192.168.1.34 192.168.1.34 20
192.168.1.34 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.34 192.168.1.34 20
224.0.0.0 240.0.0.0 192.168.1.34 192.168.1.34 20
255.255.255.255 255.255.255.255 192.168.1.34 2 1
255.255.255.255 255.255.255.255 192.168.1.34 192.168.1.34 1
255.255.255.255 255.255.255.255 192.168.1.34 4 1
Puerta de enlace predeterminada: 192.168.1.1
===========================================================================
Rutas persistentes:
ninguno
Both PC's connect ok, and the result of the pings are:
PING SERVER (LAN1) ------> PC (LAN2-10.8.0.6) : OK
PING PC(LAN2) ------> SERVER (LAN1- 10.8.0.1): OK
PING PC(LAN2) ------> SERVER (LAN1-192.168.0.12):OK
PING SERVER(LAN1) ------> PC (LAN2 - 192.168.1.34): NOT OK
PING PC(LAN2) ------> ANY PC INSIDE LAN1 (192.168.0.XX): NOT OK
PING SERVER(LAN1) ------> ANY PC INSIDE LAN2 (192.168.1.XX): NOT OK
THE WINDOWS FIREWALL IN BOTH MACHINES ARE OFF
I need help with NOT OK cases!
Why can't do ping from any machine to inside the other lan???
Thanks for any response.
The scenary is:
LAN1: 192.168.0.0
OPENVPN SERVER IP: 192.168.0.12
WINDOWS 2003 SERVER with OpenVPN Server GUI installed and server.ovpn with the next configuration:
local 192.168.0.12
port 1194
proto udp
mssfix 1400
dev tun
ca "C:\\Archivos de programa (x86)\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de programa (x86)\\OpenVPN\\config\\hall9000.tcsc.local.crt"
key "C:\\Archivos de programa (x86)\\OpenVPN\\config\\hall9000.tcsc.local.key" # Este archivo debe mantenerse en secreto
dh "C:\\Archivos de programa (x86)\\OpenVPN\\config\\dh1024.pem"
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
push "dhcp-option WINS 192.168.0.12"
push "dhcp-option DNS 192.168.0.12"
push "dhcp-option DOMAIN tcsc.local"
keepalive 10 120
comp-lzo
max-clients 4
persist-key
persist-tun
status openvpn-status.log
verb 3
LAN 1 ROUTE PRINT:
Rutas activas:
Destino de red Máscara de red Puerta de acceso Interfaz Métrica
0.0.0.0 0.0.0.0 192.168.0.1 192.168.0.12 20
10.8.0.0 255.255.255.252 10.8.0.1 10.8.0.1 30
10.8.0.0 255.255.255.0 10.8.0.2 10.8.0.1 1
10.8.0.1 255.255.255.255 127.0.0.1 127.0.0.1 30
10.255.255.255 255.255.255.255 10.8.0.1 10.8.0.1 30
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
192.168.0.0 255.255.255.0 192.168.0.12 192.168.0.12 20
192.168.0.12 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.0.255 255.255.255.255 192.168.0.12 192.168.0.12 20
224.0.0.0 240.0.0.0 10.8.0.1 10.8.0.1 30
224.0.0.0 240.0.0.0 192.168.0.12 192.168.0.12 20
255.255.255.255 255.255.255.255 10.8.0.1 10.8.0.1 1
255.255.255.255 255.255.255.255 192.168.0.12 192.168.0.12 1
Puerta de enlace predeterminada: 192.168.0.1
===========================================================================
Rutas persistentes:
Ninguno
LAN2: 192.168.1.0
OPENVPN CLIENT 192.168.1.34
WINDOWS XP SP3 with OpenVPN Server GUI installed and client.ovpn with the next configuration:
client
proto udp
dev tun
remote 77.XXX.XXX.XXX 1194 #Dirección IP Pública del servidor OpenVPN
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Archivos de programa\\OpenVPN\\config\\ca.crt"
cert "C:\\Archivos de programa\\OpenVPN\\config\\rpc806020.crt"
key "C:\\Archivos de programa\\OpenVPN\\config\\rpc806020.key"
comp-lzo
verb 3
LAN2 ROUTE PRINT:
Rutas activas:
Destino de red Máscara de red Puerta de acceso Interfaz Métrica
0.0.0.0 0.0.0.0 192.168.1.1 192.168.1.34 20
127.0.0.0 255.0.0.0 127.0.0.1 127.0.0.1 1
169.254.0.0 255.255.0.0 192.168.1.34 192.168.1.34 20
192.168.1.0 255.255.255.0 192.168.1.34 192.168.1.34 20
192.168.1.34 255.255.255.255 127.0.0.1 127.0.0.1 20
192.168.1.255 255.255.255.255 192.168.1.34 192.168.1.34 20
224.0.0.0 240.0.0.0 192.168.1.34 192.168.1.34 20
255.255.255.255 255.255.255.255 192.168.1.34 2 1
255.255.255.255 255.255.255.255 192.168.1.34 192.168.1.34 1
255.255.255.255 255.255.255.255 192.168.1.34 4 1
Puerta de enlace predeterminada: 192.168.1.1
===========================================================================
Rutas persistentes:
ninguno
Both PC's connect ok, and the result of the pings are:
PING SERVER (LAN1) ------> PC (LAN2-10.8.0.6) : OK
PING PC(LAN2) ------> SERVER (LAN1- 10.8.0.1): OK
PING PC(LAN2) ------> SERVER (LAN1-192.168.0.12):OK
PING SERVER(LAN1) ------> PC (LAN2 - 192.168.1.34): NOT OK
PING PC(LAN2) ------> ANY PC INSIDE LAN1 (192.168.0.XX): NOT OK
PING SERVER(LAN1) ------> ANY PC INSIDE LAN2 (192.168.1.XX): NOT OK
THE WINDOWS FIREWALL IN BOTH MACHINES ARE OFF
I need help with NOT OK cases!
Why can't do ping from any machine to inside the other lan???
Thanks for any response.