Networking Forums

Networking Forums > Computer Networking > Windows Networking > Default gateway and PPTP Connections

Reply
Thread Tools Display Modes

Default gateway and PPTP Connections

 
 
Scooty
Guest
Posts: n/a

 
      03-06-2007, 01:07 PM
Hi all
I have configured a RRAS server within the DMZ in the office that
works a treat when accessing devices on the LAN over a PPTP
connection, unfortunately all internet traffic tries to pass over this
link also
Once the PPTP connection has authenticated and established the default
gateway becomes the IP of the PPTP connection.
What I see in the route print command (WinXP) is 2 default routes but
the PPTP connection has a lower metric making it more preferable. If I
set the 'Don't Use Default Gateway on Remote Network' option on my
PPTP connection then the default gateway becomes my LAN card and all
internet traffic works
The problem is that I can no longer access any of the subnets on my
LAN thru the PPTP connection because it is now trying to redirect this
traffic out my LAN card
The IP Address assigned from the RRAS server is 192.168.101.x
I have static routes on the RRAS server telling it how to reach my
internal subnets, 192.168.100.0, 192.168.26.0 etc
DNS is being assigned by the RRAS Server so I can access internal
servers by their names and not just their IP

Any suggestions on now I can make my PPTP traffic go thru the tunnel
yet make all other traffic pass via my ISP?

Got me baffled

Cheers

Scott

 
Reply With Quote
 
 
 
 
Bill Grant
Guest
Posts: n/a

 
      03-06-2007, 10:15 PM
There is no easy way to solve that problem. What you are seeing is what
is supposed to happen. By default, all traffic goes through the tunnel. If
you clear the "Use default gateway.." switch you only get a subnet route
through the tunnel. This subnet route depends on the "received" IP address.
With a 192.168.x.y address you get a 192.168.x/24 subnet route. This is
documented in KB 254231.

You can't simply add routes because you don't have an interface address
until the connection is up. You can't use demand-dial interfaces like you
can with RRAS. The only solution I know of is to have a script which can
modify a route after the the connection is made. You would have a route for
192.168.0.0/16 set up. After connection the script would pick up the
interface address and plug it into the route so that all 192.168 traffic
would go through the tunnel but everything else would go out the default
gateway.

"Scooty" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) ups.com...
> Hi all
> I have configured a RRAS server within the DMZ in the office that
> works a treat when accessing devices on the LAN over a PPTP
> connection, unfortunately all internet traffic tries to pass over this
> link also
> Once the PPTP connection has authenticated and established the default
> gateway becomes the IP of the PPTP connection.
> What I see in the route print command (WinXP) is 2 default routes but
> the PPTP connection has a lower metric making it more preferable. If I
> set the 'Don't Use Default Gateway on Remote Network' option on my
> PPTP connection then the default gateway becomes my LAN card and all
> internet traffic works
> The problem is that I can no longer access any of the subnets on my
> LAN thru the PPTP connection because it is now trying to redirect this
> traffic out my LAN card
> The IP Address assigned from the RRAS server is 192.168.101.x
> I have static routes on the RRAS server telling it how to reach my
> internal subnets, 192.168.100.0, 192.168.26.0 etc
> DNS is being assigned by the RRAS Server so I can access internal
> servers by their names and not just their IP
>
> Any suggestions on now I can make my PPTP traffic go thru the tunnel
> yet make all other traffic pass via my ISP?
>
> Got me baffled
>
> Cheers
>
> Scott
>



 
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
PPTP -client- "use default gateway" slows client to remote upload markm75g Windows Networking 1 12-18-2008 02:11 PM
Default Gateway Lino767 Windows Networking 1 06-13-2006 04:21 AM
default gateway Gavin Wireless Networks 2 02-12-2006 07:55 PM
PPTP <-> IPSEC gateway? Dan Stromberg Linux Networking 1 10-18-2004 06:25 PM
Linux: Default gateway fails, must use local IP for default gw instead John Sasso Wireless Internet 2 07-08-2004 08:30 AM



1 2 3 4 5 6 7 8 9 10 11