Networking Forums

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

Reply
Thread Tools Display Modes

VPN client routing problem

 
 
Marcin
Guest
Posts: n/a

 
      10-16-2005, 10:31 PM
I have vpn server (Windows 2003 with RRAS) with 2 NICs.
First NIC is connected to LAN and second to internet.
I have also 2 internet connections with 2 routers.
First connection is only for vpn access (connected to public NIC on my VPN
server).
Second connection is used for internet access (http, ftp,...) and it is
connected to my LAN.
Whan I connect to VPN server I have no acces to internet. I don't want to
disable 'use default gateway....' on my vpn client. I don't want also to use
my internet connection on VPN server for internet access.
I would like to set routing for vpn client so they use second router to
access internet.
I know that I can set routing on RRAS, but how to set default gateway only
for vpn clients?

regards,
Marcin
 
Reply With Quote
 
 
 
 
Robert L [MS-MVP]
Guest
Posts: n/a

 
      10-17-2005, 12:47 AM
it seems to me that you need 3rd NIC or manually setup routing table as the following case,

routing
One router goes to the corporation email server and another one goes to the ...
Then, you add another router for the Internet access and want to use the ....
www.chicagotech.net/routing.htm

Bob Lin, MS-MVP, MCSE & CNE
Networking, Internet, Routing, VPN Troubleshooting on http://www.ChicagoTech.net
How to Setup Windows, Network, VPN & Remote Access on http://www.HowToNetworking.com
"Marcin" <(E-Mail Removed)> wrote in message news:4EA2E740-4E8C-46B6-AA7F-(E-Mail Removed)...
I have vpn server (Windows 2003 with RRAS) with 2 NICs.
First NIC is connected to LAN and second to internet.
I have also 2 internet connections with 2 routers.
First connection is only for vpn access (connected to public NIC on my VPN
server).
Second connection is used for internet access (http, ftp,...) and it is
connected to my LAN.
Whan I connect to VPN server I have no acces to internet. I don't want to
disable 'use default gateway....' on my vpn client. I don't want also to use
my internet connection on VPN server for internet access.
I would like to set routing for vpn client so they use second router to
access internet.
I know that I can set routing on RRAS, but how to set default gateway only
for vpn clients?

regards,
Marcin
 
Reply With Quote
 
Bill Grant
Guest
Posts: n/a

 
      10-17-2005, 12:58 AM
I am surprised that your setup works at all. Two internet connections
usually cause all sorts of odd routing problems.

I can't think of any way to get your VPN client to use the LAN router.
For VPN to work, the VPN server's default route must point out to the
internet through the public NIC. For internet access through the other
router to work, its default route would need to be pointing to the LAN
router via the LAN NIC. There is no way to satisfy both of these
requirements at the same time.

Marcin wrote:
> I have vpn server (Windows 2003 with RRAS) with 2 NICs.
> First NIC is connected to LAN and second to internet.
> I have also 2 internet connections with 2 routers.
> First connection is only for vpn access (connected to public NIC on
> my VPN server).
> Second connection is used for internet access (http, ftp,...) and it
> is connected to my LAN.
> Whan I connect to VPN server I have no acces to internet. I don't
> want to disable 'use default gateway....' on my vpn client. I don't
> want also to use my internet connection on VPN server for internet
> access.
> I would like to set routing for vpn client so they use second router
> to access internet.
> I know that I can set routing on RRAS, but how to set default gateway
> only for vpn clients?
>
> regards,
> Marcin



 
Reply With Quote
 
Marcin
Guest
Posts: n/a

 
      10-17-2005, 09:11 PM
that's right, but maybe exists some kind of software to setup routing based
on source address (vpn clients have ip addresses from private ip pool) ?

"Bill Grant" wrote:

> I am surprised that your setup works at all. Two internet connections
> usually cause all sorts of odd routing problems.
>
> I can't think of any way to get your VPN client to use the LAN router.
> For VPN to work, the VPN server's default route must point out to the
> internet through the public NIC. For internet access through the other
> router to work, its default route would need to be pointing to the LAN
> router via the LAN NIC. There is no way to satisfy both of these
> requirements at the same time.
>
> Marcin wrote:
> > I have vpn server (Windows 2003 with RRAS) with 2 NICs.
> > First NIC is connected to LAN and second to internet.
> > I have also 2 internet connections with 2 routers.
> > First connection is only for vpn access (connected to public NIC on
> > my VPN server).
> > Second connection is used for internet access (http, ftp,...) and it
> > is connected to my LAN.
> > Whan I connect to VPN server I have no acces to internet. I don't
> > want to disable 'use default gateway....' on my vpn client. I don't
> > want also to use my internet connection on VPN server for internet
> > access.
> > I would like to set routing for vpn client so they use second router
> > to access internet.
> > I know that I can set routing on RRAS, but how to set default gateway
> > only for vpn clients?
> >
> > regards,
> > Marcin

>
>
>

 
Reply With Quote
 
Bill Grant
Guest
Posts: n/a

 
      10-18-2005, 12:51 AM
What source address could you use? How can you know what public IP
address your remote client will connect from? The private address is of no
use. The VPN data is encrypted and encapsulated inside a packet with a
public IP in the header.

Marcin wrote:
> that's right, but maybe exists some kind of software to setup routing
> based on source address (vpn clients have ip addresses from private
> ip pool) ?
>
> "Bill Grant" wrote:
>
>> I am surprised that your setup works at all. Two internet
>> connections usually cause all sorts of odd routing problems.
>>
>> I can't think of any way to get your VPN client to use the LAN
>> router. For VPN to work, the VPN server's default route must point
>> out to the internet through the public NIC. For internet access
>> through the other router to work, its default route would need to
>> be pointing to the LAN router via the LAN NIC. There is no way to
>> satisfy both of these requirements at the same time.
>>
>> Marcin wrote:
>>> I have vpn server (Windows 2003 with RRAS) with 2 NICs.
>>> First NIC is connected to LAN and second to internet.
>>> I have also 2 internet connections with 2 routers.
>>> First connection is only for vpn access (connected to public NIC on
>>> my VPN server).
>>> Second connection is used for internet access (http, ftp,...) and it
>>> is connected to my LAN.
>>> Whan I connect to VPN server I have no acces to internet. I don't
>>> want to disable 'use default gateway....' on my vpn client. I don't
>>> want also to use my internet connection on VPN server for internet
>>> access.
>>> I would like to set routing for vpn client so they use second router
>>> to access internet.
>>> I know that I can set routing on RRAS, but how to set default
>>> gateway only for vpn clients?
>>>
>>> regards,
>>> Marcin



 
Reply With Quote
 
Marcin
Guest
Posts: n/a

 
      10-18-2005, 09:32 PM
Hi Bill

I know what IP address is assigned to vpn client by vpn server, I don't
need to know what public IP they have. Based on this information I can say
"route packets from IP pool assigned by vpn server to LAN gateway" (this
should be configured on vpn server). Public IP addresses are still routed by
gateway assigned to NIC connected to internet.
It should work, but I haven't tools on Windows to do it.
(Cisco has 'Police based routing' - with this feature you can set routing
based on source address).

Marcin

"Bill Grant" wrote:

> What source address could you use? How can you know what public IP
> address your remote client will connect from? The private address is of no
> use. The VPN data is encrypted and encapsulated inside a packet with a
> public IP in the header.
>
> Marcin wrote:
> > that's right, but maybe exists some kind of software to setup routing
> > based on source address (vpn clients have ip addresses from private
> > ip pool) ?
> >
> > "Bill Grant" wrote:
> >
> >> I am surprised that your setup works at all. Two internet
> >> connections usually cause all sorts of odd routing problems.
> >>
> >> I can't think of any way to get your VPN client to use the LAN
> >> router. For VPN to work, the VPN server's default route must point
> >> out to the internet through the public NIC. For internet access
> >> through the other router to work, its default route would need to
> >> be pointing to the LAN router via the LAN NIC. There is no way to
> >> satisfy both of these requirements at the same time.
> >>
> >> Marcin wrote:
> >>> I have vpn server (Windows 2003 with RRAS) with 2 NICs.
> >>> First NIC is connected to LAN and second to internet.
> >>> I have also 2 internet connections with 2 routers.
> >>> First connection is only for vpn access (connected to public NIC on
> >>> my VPN server).
> >>> Second connection is used for internet access (http, ftp,...) and it
> >>> is connected to my LAN.
> >>> Whan I connect to VPN server I have no acces to internet. I don't
> >>> want to disable 'use default gateway....' on my vpn client. I don't
> >>> want also to use my internet connection on VPN server for internet
> >>> access.
> >>> I would like to set routing for vpn client so they use second router
> >>> to access internet.
> >>> I know that I can set routing on RRAS, but how to set default
> >>> gateway only for vpn clients?
> >>>
> >>> regards,
> >>> Marcin

>
>
>

 
Reply With Quote
 
Bill Grant
Guest
Posts: n/a

 
      10-18-2005, 11:44 PM
Then buy a Cisco!

Marcin wrote:
> Hi Bill
>
> I know what IP address is assigned to vpn client by vpn server, I
> don't need to know what public IP they have. Based on this
> information I can say "route packets from IP pool assigned by vpn
> server to LAN gateway" (this should be configured on vpn server).
> Public IP addresses are still routed by gateway assigned to NIC
> connected to internet.
> It should work, but I haven't tools on Windows to do it.
> (Cisco has 'Police based routing' - with this feature you can set
> routing based on source address).
>
> Marcin
>
> "Bill Grant" wrote:
>
>> What source address could you use? How can you know what public
>> IP address your remote client will connect from? The private address
>> is of no use. The VPN data is encrypted and encapsulated inside a
>> packet with a public IP in the header.
>>
>> Marcin wrote:
>>> that's right, but maybe exists some kind of software to setup
>>> routing based on source address (vpn clients have ip addresses from
>>> private ip pool) ?
>>>
>>> "Bill Grant" wrote:
>>>
>>>> I am surprised that your setup works at all. Two internet
>>>> connections usually cause all sorts of odd routing problems.
>>>>
>>>> I can't think of any way to get your VPN client to use the LAN
>>>> router. For VPN to work, the VPN server's default route must point
>>>> out to the internet through the public NIC. For internet access
>>>> through the other router to work, its default route would need to
>>>> be pointing to the LAN router via the LAN NIC. There is no way to
>>>> satisfy both of these requirements at the same time.
>>>>
>>>> Marcin wrote:
>>>>> I have vpn server (Windows 2003 with RRAS) with 2 NICs.
>>>>> First NIC is connected to LAN and second to internet.
>>>>> I have also 2 internet connections with 2 routers.
>>>>> First connection is only for vpn access (connected to public NIC
>>>>> on my VPN server).
>>>>> Second connection is used for internet access (http, ftp,...) and
>>>>> it is connected to my LAN.
>>>>> Whan I connect to VPN server I have no acces to internet. I don't
>>>>> want to disable 'use default gateway....' on my vpn client. I
>>>>> don't want also to use my internet connection on VPN server for
>>>>> internet access.
>>>>> I would like to set routing for vpn client so they use second
>>>>> router to access internet.
>>>>> I know that I can set routing on RRAS, but how to set default
>>>>> gateway only for vpn clients?
>>>>>
>>>>> regards,
>>>>> Marcin



 
Reply With Quote
 
circle
Guest
Posts: n/a

 
      11-25-2005, 03:23 AM
Hi! I am not an expert on this issue but I would like to give a try on it.
Please don't hesitate to point out if I made an mistake.

Are you using the IPSec VPN client? If yes, the packet will be encrypted and
encapsulated in a packet with destination IP address being the one of the VPN
server. In theory the OS will only know about the packet is sending to the
VPN server (not other internet ip address used in the VPN). Therefore you can
just add a route to the ip address of the VPN server via your preferred
gateway, leaving the default gateway be the one you use to access the
internet.

--
circle


"Marcin" wrote:

> I have vpn server (Windows 2003 with RRAS) with 2 NICs.
> First NIC is connected to LAN and second to internet.
> I have also 2 internet connections with 2 routers.
> First connection is only for vpn access (connected to public NIC on my VPN
> server).
> Second connection is used for internet access (http, ftp,...) and it is
> connected to my LAN.
> Whan I connect to VPN server I have no acces to internet. I don't want to
> disable 'use default gateway....' on my vpn client. I don't want also to use
> my internet connection on VPN server for internet access.
> I would like to set routing for vpn client so they use second router to
> access internet.
> I know that I can set routing on RRAS, but how to set default gateway only
> for vpn clients?
>
> regards,
> Marcin

 
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
RAS VPN client routing problem davis@hartwick.edu Windows Networking 3 11-11-2005 11:50 PM
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