Hi,
I've just setup OpenVPN semi-successfully in a routing (not bridging) mode, single server-to-multiple-clients scenario. Both the server and the client instances connect fine, and from my client machine I can PING the private LAN address of the server machine. My problem is that I can't PING any other machine on that private LAN. I've followed every example, scrutinized every snippet I could find on the topic, but nothing is working.
Here's my setup:
My home network: 192.168.60.x
My laptop: Windows 7 Pro, 192.168.60.100
My laptop's TAP adapter's name is "tap-bridge"
My laptop is logged in with Administrator privileges
Remote LAN's network: 192.168.1.x
Remote machine (hosting OpenVPN Server): Windows XP Pro SP3, 192.168.1.22
Remote machine's TAP adapter's name is "tap-bridge" (not using Ethernet Bridging)
Remote machine is logged in with Administrator privileges
Remote machine's firewall: disabled
Remote OpenVPN server's VPN subnet: 10.8.0.0/24
Remote LAN's router: D-Link DIR-651, LAN address: 192.168.1.254
Remote LAN's router static route entry:
- Destination IP: 10.8.0.0
Netmask: 255.255.255.0
Gateway: 192.168.1.22
Metric: 1
Interface: WAN (this is the only option available in the drop-down list)
My server config:
port 1194
proto udp
dev tun
dev-node tap-bridge
ca ca.crt
cert server.crt
key server.key # This file should be kept secret
dh dh1024.pem
server 10.8.0.0 255.255.255.0
push "route 192.168.1.0 255.255.255.0"
keepalive 10 120
status openvpn-status.log
My client configuration:
client
dev tun
dev-node tap-bridge
proto udp
remote <<snip>> 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert client1.crt
key client1.key
status client-status.log
verb 3
pull
One thing I noticed that seemed odd was the status of the TAP adapter (when connected): it doesn't have an IP address of the remote LAN I'm supposed to be connected to. Here are the details of the adapter:
- Description: TAP-Win32 Adapter V9
Physical Address: 00-FF-2A-FB-C2-80
DHCP Enabled: Yes
IPv4 Address: 10.8.0.6
IPv4 Subnet Mask: 255.255.255.252
Lease Obtained: Friday, December 13, 2013 3:31:21 PM
Lease Expires: Saturday, December 13, 2014 3:31:21 PM
IPv4 Default Gateway:
IPv4 DHCP Server: 10.8.0.5
IPv4 DNS Server:
IPv4 WINS Server:
NetBIOS over Tcpip Enabled: Yes
IPv6 Address: 2620:9b::19be:7fb0
Link-local IPv6 Address: fe80::48ac:c6d4:b164:abc8%27
IPv6 Default Gateway: 2620:9b::1900:1
IPv6 DNS Servers: fec0:0:0:ffff::1%1, fec0:0:0:ffff::2%1, fec0:0:0:ffff::3%1
Another thing I noticed was an error in the system log of the remote server with the title "dhcp" and the message: "The IP address lease 10.8.0.1 for the Network Card with network address 00FFF7F1B8F4 has been denied by the DHCP server 10.8.0.2 (The DHCP Server sent a DHCPNACK message)."
(Side note: I realize that if I were to use Ethernet Bridging then I would automatically have access to all remote LAN machines, but this isn't an option in my situation.)
What am I missing?
Thanks for any and all help.