jessreds
hi, this is my fisrt post
i have a openvpn server installed, this server have 2 interfaces
eth0 lan interface 192.168.10.253/24
eth1 internet ip 189.XXX.XXX.XXX/28
and the tun0 interface 192.168.10.37.0/24
the problem that i have is when i connect with openvpn client to openvpn server i can´t "view" the lan
this my configuration openvpn server
port 1194
proto udp
dev tun
#---- Seccion de llaves -----
ca keys/ca.crt
cert keys/server.crt
key keys/server.key
dh keys/dh1024.pem
#----------------------------
server 192.168.37.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status-servidorvpn-udp-1194.log
verb 3
push "dhcp-option DNS 192.168.10.5"
push "dhcp-option DOMAIN sic.local"
push "route 192.68.10.0 255.255.255.0"
this is my client configuration file
client
dev tun
proto udp
remote 189.XXX.XXX.XXX 1194
nobind
persist-key
persist-tun
#route 192.168.10.0 255.255.255.0
#dhcp-option DNS 192.168.10.5
#------ SECCION DE LLAVES --------
ca "C:\\ca\\ca.crt"
cert "C:\\ca\\cliente1.crt"
key "C:\\ca\\cliente1.key"
ns-cert-type server
#---------------------------------
comp-lzo
verb 3
when i connect with open server i have a dhcp ip, 192.168.37.6, and i can connect ssh 192.168.37.1 the openvpn server. But if i send a ping to one lan ip i dont have response
C:\Users\jess>ping 192.168.10.222 -t
Haciendo ping a 192.168.10.222 con 32 bytes de datos:
Tiempo de espera agotado para esta solicitud.
Estadísticas de ping para 192.168.10.222:
Paquetes: enviados = 1, recibidos = 0, perdidos = 1
what can i do to reolve this problem?
i try disable de firewall
i try add this lines
iptables -t nat -A POSTROUTING -s 189.XXX.XXX.0/24 -o eth0 -j MASQUERADE
iptables -t nat -A POSTROUTING -s 192.168.37.0/24 -o eth0 -j MASQUERADE
and nothing
thanks a lot!!
jessreds
some new information
if i send a ping after connect the openvpn client
ping 192.168.37.1 (tun0.....openvpn server) WORKS
ping 189.210.XXX.XXX (eth1....internet interface) WORKS
ping 192.168.10.253 (eth0...lan interface on the openvpn server) WORKS
BUTTTTT if i send a ping to my office pc
ping 192.168.10.222 (my pc on the office) do not works
i don't understad this.
and other sttuf is why the gateway to 192.168.10.X is 192.168.37.5 and if i send a ping to that ip direction dont respond, is that normal?
Destino de red Máscara de red gateway
0.0.0.0 0.0.0.0 192.168.100.1
127.0.0.0 255.0.0.0 En vínculo
127.0.0.1 255.255.255.255 En vínculo
127.255.255.255 255.255.255.255 En vínculo
192.168.10.0 255.255.255.0 192.168.37.5
192.168.37.1 255.255.255.255 192.168.37.5
192.168.37.4 255.255.255.252 En vínculo
THANKS