How can I direct specific addresses through the VPN?
Hi There,
I have a corporate VPN setup to use a bespoke software from home on Windows 7, which needs to be on the company network for databases etc. The problem is that when you connect the VPN ALL traffic goes through it, meaning it uses much more network resources
than required. But if you disable using the remote default gateway I cannot browse or use corporate internal addresses. Obviously. I want to have one IP range go through the VPN and that's it, 172.22.*.* any input is appreciated.
I am VPN'ing to the company default gateway which is a Draytek 2830n Router.Regards
Sebastian Burrell
MCP, MCTS
May 29th, 2012 6:57am
IMHO Drytek seems to play no role here. It depends how is your VPN configured behind router.
Regards
Milos
Free Windows Admin Tool Kit Click here and download it now
May 30th, 2012 5:23am
Disable using the remote default gateway.
Open an elevated command prompt.
Do an ipconfig /all and note the ip adress you get on the vpn adapter
then
route add 172.22.0.0 mask 255.255.0.0 <ipadress from above>
This should work. You can also script that (task scheduler can run jobs on opening a connection), but I'm usually too lazy for that and do it by hand after connecting.
May 30th, 2012 6:04am
Hi ,
I suggest you can make the following configurations to let you access Internet when connect to VPN.
Step 1: You need to contact your administrator of the VPN Server to configure the Server that is running routing and remote access to use a static IP address pool.
Step 2: Disable Use default gateway on remote network setting in the VPN connection item on the client computer.
1.go to Control Panel (small icons)>network and sharing center>Change adapter settings which is in the left panel.
2.Right-click the VPN connection that you want to change, and then click
Properties.
3.Click the
Networking tab, click Internet Protocol (TCP/IP) in the Components checked are used by this connection list, and then click
Properties.
4.Click
Advanced, and then click to clear the Use default gateway on remote network check box.
5.Click OK, click OK, and then click OK.
Step 3: Connect to the Server That Is Running Routing and Remote Access
Step 4: Add a static route on the client use route print command.
More information about the detailed steps, please see
You Cannot Connect to the Internet After You Connect to a VPN Server
http://support.microsoft.com/kb/317025
Also, there is a topic for the Remote Access VPN Connections for your reference:
http://technet.microsoft.com/en-us/library/cc958048.aspx
Hope this helps.
Vincent Wang
TechNet Community Support
Free Windows Admin Tool Kit Click here and download it now
May 30th, 2012 10:05pm