Access to the remote computers is through a VPN using an OpenVPN client.
During development I used a local laptop running Windows 7 and everything worked fine using .ovpn and .key files supplied by the customer.
I've now decided to move the software to a dedicated server I have 'in the cloud'. It is running Windows Server 2008 R2.
I access the dedicated server using Remote Desktop. On my dedicated server, I've installed the OpenVPN client and transferred the .ovpn and .key files that worked from my development laptop.
Once I've run the OpenVPN GUI I can connect to the remote VPN and the status window seems happy and the routing table is updated. Here are the last few lines from the status window.
Code: Select all
Tue Apr 12 07:16:02 2011 us=359000 UDPv4 READ [228] from 78.40.152.40:7990: DATA len=228
Tue Apr 12 07:16:02 2011 us=359000 Peer Connection Initiated with 78.40.152.40:7990
Tue Apr 12 07:16:05 2011 us=968000 TEST ROUTES: 1/1 succeeded len=1 ret=1 a=0 u/d=up
Tue Apr 12 07:16:05 2011 us=968000 C:\WINDOWS\system32\route.exe ADD 78.40.152.128 MASK 255.255.255.128 192.168.50.13
OK!
Tue Apr 12 07:16:06 2011 us=46000 Initialization Sequence Completed
I then installed WireShark and found I'm getting UDP packets to 78.40.152.40:7990 sent out of my network card instead of the TAP-Win32 Adapter.
The output from 'route print' is as follows:
Code: Select all
===========================================================================
Interface List
15...00 ff c9 f6 58 09 ......TAP-Win32 Adapter V9
11...00 19 99 5c b0 86 ......Broadcom NetLink (TM) Gigabit Ethernet
1...........................Software Loopback Interface 1
12...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter
13...00 00 00 00 00 00 00 e0 Microsoft 6to4 Adapter
14...00 00 00 00 00 00 00 e0 Teredo Tunneling Pseudo-Interface
16...00 00 00 00 00 00 00 e0 Microsoft ISATAP Adapter #2
===========================================================================
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 10.255.255.1 213.165.74.98 20
10.255.255.1 255.255.255.255 10.255.255.1 213.165.74.98 21
78.40.152.128 255.255.255.128 192.168.50.13 192.168.50.14 31
127.0.0.0 255.0.0.0 On-link 127.0.0.1 306
127.0.0.1 255.255.255.255 On-link 127.0.0.1 306
127.255.255.255 255.255.255.255 On-link 127.0.0.1 306
192.168.50.12 255.255.255.252 On-link 192.168.50.14 286
192.168.50.14 255.255.255.255 On-link 192.168.50.14 286
192.168.50.15 255.255.255.255 On-link 192.168.50.14 286
213.165.74.98 255.255.255.255 On-link 213.165.74.98 276
224.0.0.0 240.0.0.0 On-link 127.0.0.1 306
224.0.0.0 240.0.0.0 On-link 213.165.74.98 276
224.0.0.0 240.0.0.0 On-link 192.168.50.14 286
255.255.255.255 255.255.255.255 On-link 127.0.0.1 306
255.255.255.255 255.255.255.255 On-link 213.165.74.98 276
255.255.255.255 255.255.255.255 On-link 192.168.50.14 286
===========================================================================
Persistent Routes:
Network Address Netmask Gateway Address Metric
10.255.255.1 255.255.255.255 10.255.255.1 1
===========================================================================
I've even tried specifically adding additional routes for specific IP addresses e.g.
Code: Select all
route add 78.40.152.40 mask 255.255.255.255 192.168.50.14
Is there something related to the fact I am doing this through a remote desktop somehow messing things up?
Here is my ipconfig as well ..
Code: Select all
Windows IP Configuration
Ethernet adapter Local Area Connection 2:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : fe80::c999:1438:1c9e:2e2f%15
IPv4 Address. . . . . . . . . . . : 192.168.50.14
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Default Gateway . . . . . . . . . :
Ethernet adapter Local Area Connection:
Connection-specific DNS Suffix . : onlinehome-server.info
Link-local IPv6 Address . . . . . : fe80::4c0a:303d:9f19:b97d%11
IPv4 Address. . . . . . . . . . . : 213.165.74.98
Subnet Mask . . . . . . . . . . . : 255.255.255.255
Default Gateway . . . . . . . . . : 10.255.255.1
Tunnel adapter isatap.onlinehome-server.info:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . : onlinehome-server.info
Tunnel adapter Local Area Connection* 9:
Connection-specific DNS Suffix . : onlinehome-server.info
IPv6 Address. . . . . . . . . . . : 2002:d5a5:4a62::d5a5:4a62
Default Gateway . . . . . . . . . : 2002:c058:6301::c058:6301
Tunnel adapter Local Area Connection* 12:
Connection-specific DNS Suffix . :
IPv6 Address. . . . . . . . . . . : 2001:0:5ef5:73b8:3ca8:28e9:2a5a:b59d
Link-local IPv6 Address . . . . . : fe80::3ca8:28e9:2a5a:b59d%14
Default Gateway . . . . . . . . . :
Tunnel adapter isatap.{C9F65809-CE3C-4C1E-A545-3C028B536608}:
Media State . . . . . . . . . . . : Media disconnected
Connection-specific DNS Suffix . :