?
Solved

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

Posted on 2004-03-29
2
Medium Priority
?
191 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 800 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

New feature and membership benefit!

New feature! Upgrade and increase expert visibility of your issues with Priority Questions.

Question has a verified solution.

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

Short answer to this question: there is no effective WiFi manager in iOS devices as seen in Windows WiFi or Macbook OSx WiFi management, but this article will try and provide some amicable solutions to better suite your needs.
This program is used to assist in finding and resolving common problems with wireless connections.
Viewers will learn how to connect to a wireless network using the network security key. They will also learn how to access the IP address and DNS server for connections that must be done manually. After setting up a router, find the network security…
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
Suggested Courses

764 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