Possible routing problem
Posted: Sat Mar 19, 2011 7:59 pm
Hi,
I'm a newbie when it comes to OpenVPN but have a need to install a working service, I followed this guide:
http://www.itsatechworld.com/2006/01/29 ... e-openvpn/
and have installed a server & a single client, both Windoze XP pro machines, on my LAN which is
behind a Netgear nat'ed router with a static public ip address. I am currently testing only on the local LAN but will endeavour to test further from a remote site.
The client connects to the server, both can successfuly ping each other. Windows firewalls have been turned off with no exceptions, the router is port forwarding a udp port to a private ip address
The problem I'm encounterring is that whilst the server machine can still happily gain access to the internet, the client loses internet connectivity once connected. The document I followed verbatim indicates that there may lie within a routing issue but mentions no more. I know so little in the arena of networking that when faced with routing tables my eyes glaze over & I think of my 'happy place'
Whilst looking at the client.logs I notice near the bottom there is an error but I do not know how to remedy the situation. The configurations used are very near to the sample ones given in the 'how-to' tutorial
I have included the server, client configs, the client logs and a dump of the current client routing entry.
SERVER.OPVN
CLIENT.OPVN
The portion of the client log that highlight an error, (this may ultimately be the problem
):
The client routing table:
If anybody could possibly shed some resolving light on this or point me in the right direction that may lead to a resolution I would be very greatfull.
Many thanks in advance for taking the time to read all this. If I have missed pertinent information with reagrds this then please let me know.
Kind regards
I'm a newbie when it comes to OpenVPN but have a need to install a working service, I followed this guide:
http://www.itsatechworld.com/2006/01/29 ... e-openvpn/
and have installed a server & a single client, both Windoze XP pro machines, on my LAN which is
behind a Netgear nat'ed router with a static public ip address. I am currently testing only on the local LAN but will endeavour to test further from a remote site.
The client connects to the server, both can successfuly ping each other. Windows firewalls have been turned off with no exceptions, the router is port forwarding a udp port to a private ip address
The problem I'm encounterring is that whilst the server machine can still happily gain access to the internet, the client loses internet connectivity once connected. The document I followed verbatim indicates that there may lie within a routing issue but mentions no more. I know so little in the arena of networking that when faced with routing tables my eyes glaze over & I think of my 'happy place'

I have included the server, client configs, the client logs and a dump of the current client routing entry.
SERVER.OPVN
Code: Select all
local 10.66.77.100
port 6850
proto udp
mssfix 1400
push "dhcp-option DNS 194.72.9.38"
push "dhcp-option DNS 62.6.40.162"
dev tap
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\server.key"
dh "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\dh1024.pem"
server 192.168.10.0 255.255.255.128
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1"
keepalive 10 120
cipher BF-CBC
comp-lzo
max-clients 2
persist-key
persist-tun
status openvpn-status.log
verb 4
Code: Select all
client
dev tap
#dev-node MyTAP
proto udp
remote xxx.xxx.xxx.xxx 6850
route 10.66.77.1 255.0.0.0 vpn_gateway 3
resolv-retry infinite
nobind
persist-key
persist-tun
ca "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\ca.crt"
cert "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.crt"
key "C:\\Program Files\\OpenVPN\\easy-rsa\\keys\\client1.key"
ns-cert-type server
cipher BF-CBC
comp-lzo
route-method exe
route-delay 2
verb 4

Code: Select all
Sat Mar 19 18:08:41 2011 us=648028 route ADD 128.0.0.0 MASK 128.0.0.0 192.168.10.1
Sat Mar 19 18:08:41 2011 us=762298 route ADD 192.168.10.1 MASK 255.255.255.128 192.168.10.1 METRIC 3
The route addition failed: The specified mask parameter is invalid. (Destination & Mask) != Destination.
Sat Mar 19 18:08:41 2011 us=863576 Initialization Sequence Completed
Sat Mar 19 18:09:31 2011 us=27588 TCP/UDP: Closing socket
Code: Select all
C:\route print
===========================================================================
Interface List
0x1 ........................... MS TCP Loopback interface
0x2 ...00 90 4b cc 66 01 ...... Dell Wireless 1450 Dual Band WLAN Mini-PCI Card
- Packet Scheduler Miniport
0x3 ...00 ff 5d 2a a4 9f ...... TAP-Win32 Adapter V8 - Packet Scheduler Miniport
0x10005 ...00 10 c6 5b 84 26 ...... Bluetooth Device (Personal Area Network) #2
===========================================================================
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.66.77.1 10.66.77.74 25
10.0.0.0 255.0.0.0 10.66.77.74 10.66.77.74 25
10.66.77.74 255.255.255.255 127.0.0.1 127.0.0.1 25
10.255.255.255 255.255.255.255 10.66.77.74 10.66.77.74 25
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 10.66.77.74 10.66.77.74 20
224.0.0.0 240.0.0.0 10.66.77.74 10.66.77.74 25
255.255.255.255 255.255.255.255 10.66.77.74 10005 1
255.255.255.255 255.255.255.255 10.66.77.74 10.66.77.74 1
255.255.255.255 255.255.255.255 10.66.77.74 3 1
Default Gateway: 10.66.77.1
===========================================================================
Persistent Routes:
None
Many thanks in advance for taking the time to read all this. If I have missed pertinent information with reagrds this then please let me know.
Kind regards