Solved

How can I set up routes on a WinXP machine to other networks?

Posted on 2004-03-29
2
190 Views
Last Modified: 2010-04-11
Hey all...

I've recently set up a Linux Firewall/Gateway machine for my network. It is using the current netfilter/iptables firewall software. In addition, it functions as a PPTP VPN server. I have succeeded in setting up the VPN server to allow connections from both an isolated wireless network and from the networks outside of the firewall. Properly authenticating allows the user access to the internal network behind the firewall. The ideal situation for us is to be able to operate from outside the network as if we were actually on the network.

When the "use remote network's default gateway" checkbox is off, I can connect to the VPN and access clients on the network (192.168.2.0/24) and browse the web through my normal internet connection (not the VPN tunnel...I don't want to route all traffic through the tunnel, just "local" network traffic). But I cannot access systems on another network (192.168.0.0/24) without manually adding a route on the windows machine. Unfortunately, this route is lost when the VPN is disconnected.

If the "use remote network's default gateway" checkbox is on, I can connect to any machine just as though I was on the internal network (except browsing the internet is very slow since it goes through the tunnel).

How can I make this easier for those connecting to the VPN (Win Xp clients)? I would rather not make them run the "route ADD..." in windows every time, and it would be too slow to route all traffic through the tunnel by setting the Default Gateway to the remote network. Is there some way to dynamically set routes on the connecting VPN client using PPPD or PPTPD settings on the server side? Here is the command that allows my VPN client to see other remote machines outside the immediate network:
  route ADD 192.168.0.0 MASK 255.255.255.0 192.168.2.1 METRIC 20 IF 0x130004

I can post more information at any time if it would help.

Thanks in advance,
    Jimmy Tango
0
Comment
Question by:jimmytango829
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 6

Accepted Solution

by:
parkerig earned 400 total points
ID: 10710033
You can just use the route add .... with the -p command. This will make it permanent.

 route ADD 192.168.0.0 MASK 255.255.255.0 192.168.2.1 METRIC 20 IF 0x130004 -p

Cheers
Ian
0
 

Author Comment

by:jimmytango829
ID: 10716156
Is there a way to dynamically configure routes (DHCP can apply static routes on the client I believe). Maybe by specifying additional gateways or something? (I'm fairly new at this and am learning as I go...)
0

Featured Post

Schedule a Tour of the ATEN booth at InfoComm 2017

Tour the ATEN booth to see the the Latest Addition to the Modular Matrix Switch Series, New 4K HDMI Over IP Extender and more! Enter ATEN's Ultimate Giveaway Sweepstakes for a chance to win one of several great prizes, including an ATEN US7220 2-Port Thunderbolt 2 Sharing Switch!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Data center, now-a-days, is referred as the home of all the advanced technologies. In-fact, most of the businesses are now establishing their entire organizational structure around the IT capabilities.
PRTG Network Monitor lets you monitor your bandwidth usage, so you know who is using up your bandwidth, and what they're using it for.
Internet Business Fax to Email Made Easy - With  eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, f…
Michael from AdRem Software explains how to view the most utilized and worst performing nodes in your network, by accessing the Top Charts view in NetCrunch network monitor (https://www.adremsoft.com/). Top Charts is a view in which you can set seve…

688 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question