Networking Forums

Networking Forums > Computer Networking > Windows Networking > RAS VPN client routing problem

Reply
Thread Tools Display Modes

RAS VPN client routing problem

 
 
davis@hartwick.edu
Guest
Posts: n/a

 
      11-10-2005, 03:45 PM
I have a Windows 2003 RAS server configured for VPN. The server has one
NIC with address 172.16.85.164 mask 255.255.128.0. RAS is configured to
get client IP addresses from a DHCP serve. The DHCP server issues
addresses in the range 172.16.100.1-172.16.100.254 with a mask of
255.255.255.128. This has all been working fine for months.

Recently I moved an application server into a subnet and now VPN
clients cannot reach it. The app server has IP address 172.16.201.170
mask 255.255.255.0.

When a Win XP VPN client first connects to the RAS server, the 'route
print' command shows an entry like this

Net Dest Netmask Gateway Interface Metric
172.16.0.0 255.255.0.0 172.16.100.13 172.16.100.13 1

where 172.16.100.13 is the IP address of the PPP adapter. Connections
to the app server at 172.16.201.170 are correctly routed out through
the PPP adapter to the RAS server, sent through the RAS server's
default gateway to the app server.

After a few seconds, the routing entry changes its Netmask to look like
this

Net Dest Netmask Gateway Interface
Metric
172.16.0.0 255.255.128.0 172.16.100.13 172.16.100.13 1

Now packets from the VPN client to the app server are excluded from
this route, get sent to the XP machine's default router which is
outside the internal network and so fail to reach the app server.

I have found two solutions but both are less than satisfactory.

Solution 1. Check the "Use default gateway on remote network" box in
the client VPN properties. This works, but now *all* traffic, including
AIM messages, HTTP requests , etc. is routed through the RAS server
when it doesn't need to be. This slows everything down

Solution 2. Manually add a routing entry to the Win XP client like this
route add 172.16.201.0 mask 255.255.255.0 172.16.100.13 metric 1
which forces packets to the app server to use the PPP interface. This
works, but is very inconvenient for the user and not simple to script
since the PPP adapter address is different each time.

What I want is for all and only traffic destined for 172.16.0.0 mask
255.255.0.0 to use the PPP adapter but don't know how to achieve that.
I thought of having the RAS server use its own static address pool of
client addresses (rather than using DHCP) but don't see how to set the
network mask for that pool.

Ideas?

Thanks for your help.
--
Davis

 
Reply With Quote
 
 
 
 
Neteng
Guest
Posts: n/a

 
      11-10-2005, 04:33 PM
The best thing to do is fix your subnetting and IP addressing scheme.

<(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ps.com...
> I have a Windows 2003 RAS server configured for VPN. The server has one
> NIC with address 172.16.85.164 mask 255.255.128.0. RAS is configured to
> get client IP addresses from a DHCP serve. The DHCP server issues
> addresses in the range 172.16.100.1-172.16.100.254 with a mask of
> 255.255.255.128. This has all been working fine for months.
>
> Recently I moved an application server into a subnet and now VPN
> clients cannot reach it. The app server has IP address 172.16.201.170
> mask 255.255.255.0.
>
> When a Win XP VPN client first connects to the RAS server, the 'route
> print' command shows an entry like this
>
> Net Dest Netmask Gateway Interface Metric
> 172.16.0.0 255.255.0.0 172.16.100.13 172.16.100.13 1
>
> where 172.16.100.13 is the IP address of the PPP adapter. Connections
> to the app server at 172.16.201.170 are correctly routed out through
> the PPP adapter to the RAS server, sent through the RAS server's
> default gateway to the app server.
>
> After a few seconds, the routing entry changes its Netmask to look like
> this
>
> Net Dest Netmask Gateway Interface
> Metric
> 172.16.0.0 255.255.128.0 172.16.100.13 172.16.100.13 1
>
> Now packets from the VPN client to the app server are excluded from
> this route, get sent to the XP machine's default router which is
> outside the internal network and so fail to reach the app server.
>
> I have found two solutions but both are less than satisfactory.
>
> Solution 1. Check the "Use default gateway on remote network" box in
> the client VPN properties. This works, but now *all* traffic, including
> AIM messages, HTTP requests , etc. is routed through the RAS server
> when it doesn't need to be. This slows everything down
>
> Solution 2. Manually add a routing entry to the Win XP client like this
> route add 172.16.201.0 mask 255.255.255.0 172.16.100.13 metric 1
> which forces packets to the app server to use the PPP interface. This
> works, but is very inconvenient for the user and not simple to script
> since the PPP adapter address is different each time.
>
> What I want is for all and only traffic destined for 172.16.0.0 mask
> 255.255.0.0 to use the PPP adapter but don't know how to achieve that.
> I thought of having the RAS server use its own static address pool of
> client addresses (rather than using DHCP) but don't see how to set the
> network mask for that pool.
>
> Ideas?
>
> Thanks for your help.
> --
> Davis
>



 
Reply With Quote
 
davis@hartwick.edu
Guest
Posts: n/a

 
      11-11-2005, 07:11 PM
Neteng,

I can't change the subnetting; I have hundreds of computers set up
using this scheme.

Is there any way to force the RAS server to obtain IP addresses from a
particular scope, maybe on a second NIC?

Davis.


Neteng wrote:
> The best thing to do is fix your subnetting and IP addressing scheme.
>
> <(E-Mail Removed)> wrote in message
> news:(E-Mail Removed) ps.com...
> > I have a Windows 2003 RAS server configured for VPN. The server has one
> > NIC with address 172.16.85.164 mask 255.255.128.0. RAS is configured to
> > get client IP addresses from a DHCP serve. The DHCP server issues
> > addresses in the range 172.16.100.1-172.16.100.254 with a mask of
> > 255.255.255.128. This has all been working fine for months.
> >
> > Recently I moved an application server into a subnet and now VPN
> > clients cannot reach it. The app server has IP address 172.16.201.170
> > mask 255.255.255.0.
> >
> > When a Win XP VPN client first connects to the RAS server, the 'route
> > print' command shows an entry like this
> >
> > Net Dest Netmask Gateway Interface Metric
> > 172.16.0.0 255.255.0.0 172.16.100.13 172.16.100.13 1
> >
> > where 172.16.100.13 is the IP address of the PPP adapter. Connections
> > to the app server at 172.16.201.170 are correctly routed out through
> > the PPP adapter to the RAS server, sent through the RAS server's
> > default gateway to the app server.
> >
> > After a few seconds, the routing entry changes its Netmask to look like
> > this
> >
> > Net Dest Netmask Gateway Interface
> > Metric
> > 172.16.0.0 255.255.128.0 172.16.100.13 172.16.100.13 1
> >
> > Now packets from the VPN client to the app server are excluded from
> > this route, get sent to the XP machine's default router which is
> > outside the internal network and so fail to reach the app server.
> >
> > I have found two solutions but both are less than satisfactory.
> >
> > Solution 1. Check the "Use default gateway on remote network" box in
> > the client VPN properties. This works, but now *all* traffic, including
> > AIM messages, HTTP requests , etc. is routed through the RAS server
> > when it doesn't need to be. This slows everything down
> >
> > Solution 2. Manually add a routing entry to the Win XP client like this
> > route add 172.16.201.0 mask 255.255.255.0 172.16.100.13 metric 1
> > which forces packets to the app server to use the PPP interface. This
> > works, but is very inconvenient for the user and not simple to script
> > since the PPP adapter address is different each time.
> >
> > What I want is for all and only traffic destined for 172.16.0.0 mask
> > 255.255.0.0 to use the PPP adapter but don't know how to achieve that.
> > I thought of having the RAS server use its own static address pool of
> > client addresses (rather than using DHCP) but don't see how to set the
> > network mask for that pool.
> >
> > Ideas?
> >
> > Thanks for your help.
> > --
> > Davis
> >


 
Reply With Quote
 
Bill Grant
Guest
Posts: n/a

 
      11-11-2005, 11:50 PM
I am not sure how to fix it, but I think I know why this happens.

When the remote user connects, it sets up the correct route. It sets up
a subnet route based on the received IP. So you have a route to 172.16.0.0
255.255.0.0 . This route is set up by the client itself (see KB254231). At
this stage the client can't see the DHCP server and it gets its IP address
from the RRAS server as part of the PPP transaction. (The RRAS server leases
IPs from DHCP for this purpose).

After the connection is up, the remote client can get further info from
DHCP by sending a dhcpdiscover message. This is probably when it gets the
more restrictive route. The other possibility is that it comes from a
routing protocol like RIP.

(E-Mail Removed) wrote:
> Neteng,
>
> I can't change the subnetting; I have hundreds of computers set up
> using this scheme.
>
> Is there any way to force the RAS server to obtain IP addresses from a
> particular scope, maybe on a second NIC?
>
> Davis.
>
>
> Neteng wrote:
>> The best thing to do is fix your subnetting and IP addressing scheme.
>>
>> <(E-Mail Removed)> wrote in message
>> news:(E-Mail Removed) ps.com...
>>> I have a Windows 2003 RAS server configured for VPN. The server has
>>> one NIC with address 172.16.85.164 mask 255.255.128.0. RAS is
>>> configured to get client IP addresses from a DHCP serve. The DHCP
>>> server issues addresses in the range 172.16.100.1-172.16.100.254
>>> with a mask of 255.255.255.128. This has all been working fine for
>>> months.
>>>
>>> Recently I moved an application server into a subnet and now VPN
>>> clients cannot reach it. The app server has IP address
>>> 172.16.201.170 mask 255.255.255.0.
>>>
>>> When a Win XP VPN client first connects to the RAS server, the
>>> 'route print' command shows an entry like this
>>>
>>> Net Dest Netmask Gateway Interface
>>> Metric 172.16.0.0 255.255.0.0 172.16.100.13 172.16.100.13 1
>>>
>>> where 172.16.100.13 is the IP address of the PPP adapter.
>>> Connections to the app server at 172.16.201.170 are correctly
>>> routed out through the PPP adapter to the RAS server, sent through
>>> the RAS server's default gateway to the app server.
>>>
>>> After a few seconds, the routing entry changes its Netmask to look
>>> like this
>>>
>>> Net Dest Netmask Gateway Interface
>>> Metric
>>> 172.16.0.0 255.255.128.0 172.16.100.13 172.16.100.13 1
>>>
>>> Now packets from the VPN client to the app server are excluded from
>>> this route, get sent to the XP machine's default router which is
>>> outside the internal network and so fail to reach the app server.
>>>
>>> I have found two solutions but both are less than satisfactory.
>>>
>>> Solution 1. Check the "Use default gateway on remote network" box in
>>> the client VPN properties. This works, but now *all* traffic,
>>> including AIM messages, HTTP requests , etc. is routed through the
>>> RAS server when it doesn't need to be. This slows everything down
>>>
>>> Solution 2. Manually add a routing entry to the Win XP client like
>>> this route add 172.16.201.0 mask 255.255.255.0 172.16.100.13 metric
>>> 1
>>> which forces packets to the app server to use the PPP interface.
>>> This works, but is very inconvenient for the user and not simple to
>>> script since the PPP adapter address is different each time.
>>>
>>> What I want is for all and only traffic destined for 172.16.0.0 mask
>>> 255.255.0.0 to use the PPP adapter but don't know how to achieve
>>> that. I thought of having the RAS server use its own static address
>>> pool of client addresses (rather than using DHCP) but don't see how
>>> to set the network mask for that pool.
>>>
>>> Ideas?
>>>
>>> Thanks for your help.
>>> --
>>> Davis



 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
routing problem sip client to register on server Tamer Higazi Linux Networking 2 12-03-2009 09:05 PM
Client VPN routing cdurrhau@zedat.fu-berlin.de Windows Networking 1 02-14-2007 08:27 PM
VPN client routing problem Marcin Windows Networking 7 11-25-2005 03:23 AM
pptp client and routing hundal Linux Networking 1 02-02-2004 01:40 PM
PPTP Client Routing Issue Ken Morris Linux Networking 0 12-01-2003 03:43 PM



1 2 3 4 5 6 7 8 9 10 11