Hello Team:
I am trying to access a private network. I have openvpn running on a Linux box, and I would like to access the LAN behind that box. I can establish and ping the vpn tunnel, but I cannot ping any of the boxes behind the openvpn. The network behind the vpn is 192.168.1.0. These are my configuration files for the client and for the server:
client configuration file (Linux, Centos 5.0):
client
dev tun
proto udp
remote 1194
ifconfig
route
resolv-retry infinite
nobind
persist-key
persist-tun
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/client1.crt
key /etc/openvpn/keys/client1.key
tls-auth /etc/openvpn/keys/ta.key 1
cipher BF-CBC
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
comp-lzo
verb 4
;mute 20
server configuration file (Linux, Centos 5.0):
local
ifconfig
port 1194
proto udp
dev tun
daemon
ca /etc/openvpn/keys/ca.crt
cert /etc/openvpn/keys/server.crt
key /etc/openvpn/keys/server.key
dh /etc/openvpn/keys/dh1024.pem
server
ifconfig-pool-persist ipp.txt
route add -net netmask gw eth1
keepalive 10 120
tls-auth /etc/openvpn/keys/ta.key 0
cipher BF-CBC
comp-lzo
max-clients 25
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn-status.log
log-append /var/log/openvpn.log
verb 4
mute 20
Now let me do some explaining:
is the network behind the vpn server that I wan to get access to.
is the gateway for the network.
is the public IP of the box that the openvpn server is running on.
and are the virtual IPs of the openvpn tunnel. These I can ping. However, I cannot ping any box on the network.
Now my routing tables:
routing table for the server:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
* UH 0 0 0 tun0
* U 0 0 0 eth0
* U 0 0 0 eth1
UG 0 0 0 tun0
* U 0 0 eth1
default UG 0 0 0 eth0
routing table for client:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
UGH 0 0 0 tun0
* UH 0 0 0 tun0
* U 0 0 0 eth0
* U 0 0 0 eth0
default UG 0 0 0 eth0
Please someone help to figure this routing problem out.
Thanks.
--Willie