Page 1 of 1

OpenVPN Server with Windows 7 Home Premium

Posted: Thu Aug 23, 2012 4:45 pm
by shahbazaslam
Hi there,

I have successfully configured Openvpn Server in my windows 7 home premium and can easily connect client from remote location. After connecting, client can ping VPN server, but can't ping to other PCs on LAN specially windows machine.

my server config;

Code: Select all


local 192.168.0.113
port 1194
proto udp
dev tun

ca C:\\OpenVPN\\easy-rsa\\keys\\ca.crt
cert C:\\OpenVPN\\easy-rsa\\keys\\server.crt
key C:\\OpenVPN\\easy-rsa\\keys\\server.key  # This file should be kept secret
dh C:\\OpenVPN\\easy-rsa\\keys\\dh1024.pem

server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "route 192.168.0.0 255.255.255.0"
keepalive 10 120
comp-lzo
persist-key
persist-tun
status openvpn-status.log
verb 3


Re: OpenVPN Server with Windows 7 Home Premium

Posted: Fri Aug 24, 2012 6:14 am
by maikcat
hi there,

did you enabled ip forwarding on your server?

did you configured firewall (if any) to forward traffic from tap interface to lan?

Michael.

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Fri Aug 24, 2012 4:38 pm
by shahbazaslam
maikcat wrote:hi there,

did you enabled ip forwarding on your server?

did you configured firewall (if any) to forward traffic from tap interface to lan?

Michael.
No!! how can I do that?

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sat Aug 25, 2012 7:14 am
by shahbazaslam
maikcat wrote:hi there,

did you enabled ip forwarding on your server?

did you configured firewall (if any) to forward traffic from tap interface to lan?

Michael.
One thing more, I have modified the changes in registry for IP Forwarding, and also enabled service of Routing and Remote Access.. but still not luck.. also disabled firewall.. same result, able to connect VPN server, able to ping the server but not able to ping or reach other PCs in LAN...

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sat Aug 25, 2012 1:21 pm
by maikcat
hi there,

disable RAS and leave fw off for now..

did you reboot after editing the registry?

Michael.

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sat Aug 25, 2012 3:33 pm
by shahbazaslam
maikcat wrote:hi there,

disable RAS and leave fw off for now..

did you reboot after editing the registry?

Michael.
Yes I did reboot many times. And, again now, after modifying changes like you said... still not luck, infect ping to Openvpn Server is also lost.. but able to connect it.

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sat Aug 25, 2012 5:23 pm
by maikcat
hi there,
After connecting, client can ping VPN server, but can't ping to other PCs on LAN specially windows machine.
infect ping to Openvpn Server is also lost.. but able to connect it.
you confused me...
can you ping the openvpn server from client or not?

is your vpn connection declared as "unindentified network" by win7?

Michael.

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sat Aug 25, 2012 5:37 pm
by shahbazaslam
Hi, Michael
maikcat wrote:hi there,

disable RAS and leave fw off for now..

did you reboot after editing the registry?

Michael.

Apology for that.. I did like you said above..
After this, I am able to connect VPN server and got IP:10.8.0.x. Connection is showing "Unindentified network".
I can ping VPN server tunnel IP: 10.8.0.1 but I can't ping its LAN IP: 192.168.0.x and other PCs behind it.

I hope clear now..

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sun Aug 26, 2012 3:09 am
by shahbazaslam
One thing more, I am using Openvpn Server Version 2.1.4 on windows 7 home premium.

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sun Aug 26, 2012 8:53 am
by maikcat
hi there,

which registry key did you modified for ip forwarding?

also do the following:

after you start openvpn open network and sharing center
click on customize next to unindentified network (openvpn)
on the pop up window select "private" as location type then next button then close.

also for testing disable firewall on 7.. (or any other antivirus software which has firewall).

Michael.

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sun Aug 26, 2012 11:36 am
by shahbazaslam
Hello,
maikcat wrote:hi there,

which registry key did you modified for ip forwarding?

also do the following:

after you start openvpn open network and sharing center
click on customize next to unindentified network (openvpn)
on the pop up window select "private" as location type then next button then close.
also for testing disable firewall on 7.. (or any other antivirus software which has firewall).
Michael.
I modified this value in registry: IPEnableRouter : 1
If you can see the post, I am using windows 7 home premium, in this there is no option like customizing...

Re: OpenVPN Server with Windows 7 Home Premium

Posted: Sun Aug 26, 2012 11:41 am
by shahbazaslam
maikcat wrote: also for testing disable firewall on 7.. (or any other antivirus software which has firewall).
firewall is disabled since when I started setting openvpn server.