Community Support Forum
 
  OpenVPN.net  •  Forum Index  •  FAQ  

It is currently Wed May 16, 2012 2:57 pm




Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2
 Windows 7 as OpenVPN server with redirect-gateway 
Author Message
 Post subject: Re: Windows 7 as OpenVPN server with redirect-gateway
PostPosted: Thu Nov 24, 2011 12:54 am 
OpenVPN Expert
User avatar

Joined: Wed Dec 15, 2010 9:24 pm
Posts: 305
aaaa2209 wrote:
I cannot make 1 and 2 work at the same time. The system told me one is currently running and it has to be disable while trying to enable another one. I found when I use 2 and 3 it works perfectly. 1 and 3 don't work for me.


Thanks. I was looking for feedback on this part. I got a chance to go back to my setup soon and test it with just 2 and 3.. then it might be a universal solution for 2003 / Vista / 7.

I'm thinking of a solution for your dilemma. I've not used 'iroute' with Windows server before but its designed to work in a situation like yours I think. So that would involve removing 'push redirect-gateway' from server and removing 'route no-pull' from client, and then add to server config 'iroute 177.0.0.0 255.0.0.0' (and create the appropriate 'ccd' file). To fully get it you would need to have a quick read of the iroute commands in the man page.

Where is the "192.168.1.157" computer? (not on your LAN?).

_________________
The cure for boredom is curiosity


Offline
 Profile  
 
 Post subject: Re: Windows 7 as OpenVPN server with redirect-gateway
PostPosted: Wed Jan 04, 2012 2:00 pm 
OpenVpn Newbie
User avatar

Joined: Wed Jan 04, 2012 1:59 pm
Posts: 1
Location: Toronto
NIce :) usefull......

_________________
Marketing Commission
PLR Products
Solo Ad


Offline
 Profile  
 
 Post subject: Re: Windows 7 as OpenVPN server with redirect-gateway
PostPosted: Sat Jan 07, 2012 9:31 pm 
OpenVpn Newbie

Joined: Sat Jan 07, 2012 9:27 pm
Posts: 4
Hi, thanks for the tips. I found Windows XP and Windows 7 examples but no Linux example.

I searched and found this:

Code:
http://www.howtoforge.com/internet-connection-sharing-masquerading-on-linux


Is there a better way of doing this? Or can you post the example for Linux?

Thanks!


Offline
 Profile  
 
 Post subject: Re: Windows 7 as OpenVPN server with redirect-gateway
PostPosted: Tue Jan 24, 2012 3:50 am 
OpenVpn Newbie

Joined: Sun May 15, 2011 12:25 am
Posts: 2
Bebop wrote:
Windows 7 tweaks for forwarding VPN traffic
Code:
Start -> Right-click My Computer -> Manage
Services
Right-click Routing and Remote Access -> Properties -> Automatic
Right-click Routing and Remote Access -> Start

...

regedit

Key: HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters
Value: IPEnableRouter
Type: REG_DWORD
Data: 0x00000001 (1)


Notes:
  • Further tweaking and streamlining may be possible.
  • Thank you to Krzee for the register-dns tweak


FYI, I just setup a fresh Windows 7 box with OpenVPN server and found that these two steps (enable Routing and Remote Access, and set IPEnableRouter=1) were not necessary. In other words, I setup my box without doing those two steps and OpenVPN server still worked fine.

Thanks.


Offline
 Profile  
 
 Post subject: Re: Windows 7 as OpenVPN server with redirect-gateway
PostPosted: Tue Jan 24, 2012 10:23 pm 
OpenVpn Newbie

Joined: Tue Jan 24, 2012 10:15 pm
Posts: 1
Thank you so much. This works for me too! Keep posting such they are very helpful.


Offline
 Profile  
 
 Post subject: Re: Windows 7 as OpenVPN server with redirect-gateway
PostPosted: Sun Apr 22, 2012 8:35 pm 
OpenVpn Newbie

Joined: Sun Apr 22, 2012 8:33 pm
Posts: 1
Hello,

thank you very much for this tutorial, I have succesfully set up Internet sharing with my Windows 7 PC to another PC on local network. Unfortunately I have some trouble and I need some help with that.

The problem is that my Internet connection randomly fails for few seconds to few minutes period with the client connected to VPN (I have only one client set up). I didn't change anything in config files (except IP addresses and DNS). When the client is not connected, even with server running everything works perfectly. With the client connected, random connection problems occur for me and for the client as well. Any hint?

Thanks.


Offline
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 21 posts ]  Go to page Previous  1, 2


 Who is online 

Users browsing this forum: No registered users and 0 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  


phpBB SEO
[ Time : 0.071s | 11 Queries | GZIP : On ]

 
Index  |  FAQ


Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group