Advertisement

07.17.2008 at 05:05PM PDT, ID: 23575375
[x]
Attachment Details

How to add custom static routes automatically for a RRAS VPN client?

Asked by itworksinc in Virtual Private Networking (VPN)

Tags: vpn rras windows.server.2008 static static.route

Here's the situation. I have two networks connected by VPN routers, 192.168.0.x and 192.168.2.x. On the 2.x network I have a Windows 2008 server configured with RRAS for use by VPN clients. The RRAS server assigns addresses in its own subnet for VPN clients, i.e. a VPN client will receive a 192.168.2.x address. What I need is for VPN clients to be able to access the 192.168.0.x network. I have found that by adding a static route on a client machine with the "route add" command I can get it to work. Here's the command I have to use:

route add 192.168.0.0 mask 255.255.255.0 192.168.2.45

192.168.2.45 is the VPN client's assigned IP, which changes every time the client connects. Is there any way to add this static route automatically with the correct gateway, when the client connects? So no matter what IP the client gets, they will always have a static route with the gateway the same as their IP?

I've tried adding static routes in RRAS and in Active Directory Users and Computers (under the user's properties, dial-in tab), but neither of those work, I suspect because I can't specify the gateway.

While messing around, I've discovered that doing a route add with the gateway set to the VPN router's IP and specifying the dial-up interface works as well, i.e.:

route add 192.168.0.0 mask 255.255.255.0 192.168.2.1 if 0x120006

However this is not a solution either, because the interface name changes every time the VPN connection is dialed.

Is there any possible way to do what I need here?Start Free Trial
[+][-]07.20.2008 at 07:29AM PDT, ID: 22045881

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Virtual Private Networking (VPN)
Tags: vpn rras windows.server.2008 static static.route
Sign Up Now!
Solution Provided By: RobWill
Participating Experts: 1
Solution Grade: A
 
 
[+][-]07.22.2008 at 10:51AM PDT, ID: 22061841

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 10:55AM PDT, ID: 22061887

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 11:42AM PDT, ID: 22062295

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 11:50AM PDT, ID: 22062371

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 01:44PM PDT, ID: 22063487

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]07.22.2008 at 02:47PM PDT, ID: 22064013

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628