Can't access/ping Windows 7 x64 client's LAN.
Posted: Tue Jul 12, 2011 6:33 am
From the client side (win7 PC) I can access all network behind the openVPN sever, but from the server side (linux PC) I can only reach client's openVPN ip, but cannot ping client's external ip nor the LAN computers behind the client.
My config:
Server's network: 192.168.10.0/24
Clien's network: 192.168.0.0/24
openVPN network: 10.76.0.0/24
For the testing purposes I write routing rules by hand.
On the client's machine i add:
route add 192.168.10.0 mask 255.255.255.0 10.76.0.5(10.76.0.5 - client's gateway)
and after that I can access to he LAN behind openvpn server.
On the server I write the folowing rule:
route -net 192.168.0.0 netmask 255.255.255.0 gw 10.76.0.2(server's gateway)
but it does not help. I could only ping my client's openvpn ip.
What could be a problem?
My server's config is:
# OpenVPN server config
# Routed server
dev tun0
port 1194
proto udp
ca /etc/openvpn/certs/ca.crt
cert /etc/openvpn/certs/server.crt
key /etc/openvpn/private/server.key # This file should be kept secret
dh /etc/openvpn/dh1024.pem
server 10.76.0.0 255.255.255.0
;push "route 192.168.10.0 255.255.255.0"
;client-to-client
keepalive 10 120
user nobody
group nogroup
persist-key
persist-tun
ifconfig-pool-persist /etc/openvpn/ipp.txt
status /var/log/openvpn-status.log
log /var/log/openvpn.log
;log-append /var/log/openvpn.log
verb 3
;mute 20
Client's config:
# Win 7 client's config
client
dev tun
dev-node "tap1"
proto udp
remote openVPNserver 1194
;remote my-server-2 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert aleksei.crt
key aleksei.key
ns-cert-type server
;tls-auth ta.key 1
verb 3
mute 20
float
My config:
Server's network: 192.168.10.0/24
Clien's network: 192.168.0.0/24
openVPN network: 10.76.0.0/24
For the testing purposes I write routing rules by hand.
On the client's machine i add:
route add 192.168.10.0 mask 255.255.255.0 10.76.0.5(10.76.0.5 - client's gateway)
and after that I can access to he LAN behind openvpn server.
On the server I write the folowing rule:
route -net 192.168.0.0 netmask 255.255.255.0 gw 10.76.0.2(server's gateway)
but it does not help. I could only ping my client's openvpn ip.
What could be a problem?
My server's config is:
# OpenVPN server config
# Routed server
dev tun0
port 1194
proto udp
ca /etc/openvpn/certs/ca.crt
cert /etc/openvpn/certs/server.crt
key /etc/openvpn/private/server.key # This file should be kept secret
dh /etc/openvpn/dh1024.pem
server 10.76.0.0 255.255.255.0
;push "route 192.168.10.0 255.255.255.0"
;client-to-client
keepalive 10 120
user nobody
group nogroup
persist-key
persist-tun
ifconfig-pool-persist /etc/openvpn/ipp.txt
status /var/log/openvpn-status.log
log /var/log/openvpn.log
;log-append /var/log/openvpn.log
verb 3
;mute 20
Client's config:
# Win 7 client's config
client
dev tun
dev-node "tap1"
proto udp
remote openVPNserver 1194
;remote my-server-2 1194
resolv-retry infinite
nobind
persist-key
persist-tun
mute-replay-warnings
ca ca.crt
cert aleksei.crt
key aleksei.key
ns-cert-type server
;tls-auth ta.key 1
verb 3
mute 20
float