Hello, I'm tryimg to set up a VPN Tunnel between two Windows machines; I need a point-to-point tunnel with no further routing (i.e. just for two machines to talk to each other). I have some problem and my main problem is that I cannot identify what's not working in first place - what I need to fix 🙂
So, my setup is as follows:
Server
- WS 2008 R2 x64
- OpenVPN 2.3 alpha (upgraded from 2.2 in hopes it makes any changes; 2.2 seems to work the same way)
Config file:
port 1194
proto tcp
dev tun
ca ca.crt
cert core-server.crt
key core-server.key # This file should be kept secret
tls-server
key-method 2
dh dh2048.pem
server 10.8.100.0 255.255.255.0
ifconfig-pool-persist ipp.txt
keepalive 10 120
comp-lzo
persist-key
persist-tun
log-append openvpn.log
verb 6
reneg-sec 60
script-security 2
client-config-dir ccd
route 10.8.101.0 255.255.255.0
client's ccd contents:
ifconfig-push 10.8.101.6 10.8.101.5
Client
- W7 Pro x86
- OpenVPN 2.2
Config file:
client
dev tun
proto tcp
remote myserver.com 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert admin-test.crt
key admin-test.key
tls-client
key-method 2
ns-cert-type server
comp-lzo
verb 5
log-append connect.log
Client and server do connect; ip address is set and they seem talking, but I cannot ping anything remote.
First of all, when connected, on both sides network is called Unindentified Network; is this a concern?
Server routes are added:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 168.xxx.yyy.1 168.xxx.yyy.160 15
10.8.100.0 255.255.255.0 10.8.100.2 168.xxx.yyy.160 6
10.8.101.0 255.255.255.0 10.8.100.2 168.xxx.yyy.160 6
...
Server adapter is assigned an APIPA address!
Ethernet adapter VPN Tunnel Endpoint:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Windows Adapter V9
Physical Address. . . . . . . . . : 00-FF-71-8A-67-8D
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Autoconfiguration IPv4 Address. . : 169.254.71.187(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.0.0
Default Gateway . . . . . . . . . :
NetBIOS over Tcpip. . . . . . . . : Disabled
Client routes are added too:
IPv4 Route Table
===========================================================================
Active Routes:
Network Destination Netmask Gateway Interface Metric
0.0.0.0 0.0.0.0 192.168.98.15 192.168.98.110 25
10.8.100.1 255.255.255.255 10.8.101.5 10.8.101.6 30
10.8.101.4 255.255.255.252 On-link 10.8.101.6 286
10.8.101.6 255.255.255.255 On-link 10.8.101.6 286
10.8.101.7 255.255.255.255 On-link 10.8.101.6 286
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.98.0 255.255.255.0 On-link 192.168.98.110 281
192.168.98.110 255.255.255.255 On-link 192.168.98.110 281
192.168.98.255 255.255.255.255 On-link 192.168.98.110 281
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 192.168.98.110 281
224.0.0.0 240.0.0.0 On-link 10.8.101.6 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 192.168.98.110 281
255.255.255.255 255.255.255.255 On-link 10.8.101.6 286
===========================================================================
Persistent Routes:
None
Client adapter is assigned proper address:
Ethernet adapter Private VPN:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V9
Physical Address. . . . . . . . . : 00-FF-DC-B6-46-54
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
IPv4 Address. . . . . . . . . . . : 10.8.101.6(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Thursday, September 06, 2012 00:32:39
Lease Expires . . . . . . . . . . : Friday, September 06, 2013 00:32:39
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 10.8.101.5
NetBIOS over Tcpip. . . . . . . . : Disabled
Also, I cannot even ping 10.8.101.5; is this normal?
Client's firewall is all down.
I have some troubles attaching logs here; possibly because of size. I shall figure out a way to add them later.
Please help me figure out what is OK and what is not; I'm a bit confused what is wrong.
TIA.