The following setup was working on my Windows XP 32bit laptop but NOT on my new Windows 7 64bit laptop. I copied the OpenVPN config files from Windows XP to Windows 7:
The OpenVPN is running on Linksys E2000 with DD-WRT v24-sp2 (04/13/11) with OpenVPN GUI v1.03.
The Linksys E2000 IP is: 192.168.10.1
OpenVPN Server: 10.121.40.1
Server config: (Services->VPN):
Start OpenVPN Server: Enable
Start Type: WAN Up
Config via: Config File
CA Cert: ca.crt
Public Server Key: server.csr
DH PEM: dh1024.pem
Additional Config:
push "route 192.168.10.0 255.255.255.0"
server 10.121.40.0 255.255.255.0
dev tun0
proto udp
keepalive 10 120
dh /tmp/openvpn/dh.pem
ca /tmp/openvpn/ca.crt
cert /tmp/openvpn/cert.pem
key /tmp/openvpn/key.pem
comp-lzo
management localhost 5001
Firewall Setting (Administration -> Commands -> Firewall):
iptables -I INPUT 1 -p udp --dport 1194 -j ACCEPT
iptables -I FORWARD 1 --source 10.121.40.0/24 -j ACCEPT
iptables -I FORWARD -i br0 -o tun0 -j ACCEPT
iptables -I FORWARD -i tun0 -o br0 -j ACCEPT
Client Config file:
client
dev tun0
remote-cert-tls server
float
proto udp
remote xx.xx.xx.xx 1194
resolv-retry infinite
nobind
persist-key
persist-tun
ca ca.crt
cert PC.crt
key PC.key
ns-cert-type server
comp-lzo
verb 3
Windows 7 info after connecting to VPN:
Ethernet adapter Local Area Connection 4:
Connection-specific DNS Suffix . :
Description . . . . . . . . . . . : TAP-Win32 Adapter V9
Physical Address. . . . . . . . . : 00-FF-79-87-4F-FE
DHCP Enabled. . . . . . . . . . . : Yes
Autoconfiguration Enabled . . . . : Yes
Link-local IPv6 Address . . . . . : fe80::c8b2:2546:213e:99d4%29(Preferred)
IPv4 Address. . . . . . . . . . . : 10.121.40.10(Preferred)
Subnet Mask . . . . . . . . . . . : 255.255.255.252
Lease Obtained. . . . . . . . . . : Monday, April 23, 2012 1:49:41 PM
Lease Expires . . . . . . . . . . : Tuesday, April 23, 2013 1:49:40 PM
Default Gateway . . . . . . . . . :
DHCP Server . . . . . . . . . . . : 10.121.40.9
DHCPv6 IAID . . . . . . . . . . . : 486604665
DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-16-CC-E9-95-E8-9D-87-89-38-2E
DNS Servers . . . . . . . . . . . : fec0:0:0:ffff::1%1
fec0:0:0:ffff::2%1
fec0:0:0:ffff::3%1
NetBIOS over Tcpip. . . . . . . . : Enabled
Where does it get "DHCP Server" (10.121.40.9) ? I got the connection; howerver, I can NOT ping the VPN server or router. Please help.
Thx,
Can not ping VPN server or any client after connected
Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech
-
- OpenVpn Newbie
- Posts: 11
- Joined: Wed Jan 11, 2012 5:21 am
- janjust
- Forum Team
- Posts: 2703
- Joined: Fri Aug 20, 2010 2:57 pm
- Location: Amsterdam
- Contact:
Re: Can not ping VPN server or any client after connected
the .9 address is normal; read more about it here:
http://openvpn.net/index.php/open-sourc ... tml#policy
the Openvpn server address is still at .1 - if you cannot ping that after the VPN comes up (without further warnings) then you most likely have a firewalling issue.
if you can ping the VPN server but not the client (from the server) then check if the tap-win32 adapter is public or private - windows vista/7 does not allow ping traffic to public (untrusted) adapters.
http://openvpn.net/index.php/open-sourc ... tml#policy
the Openvpn server address is still at .1 - if you cannot ping that after the VPN comes up (without further warnings) then you most likely have a firewalling issue.
if you can ping the VPN server but not the client (from the server) then check if the tap-win32 adapter is public or private - windows vista/7 does not allow ping traffic to public (untrusted) adapters.