Solved

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

Posted on 2004-03-29
2
188 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
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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

When it comes to security, there are always trade-offs between security and convenience/ease of administration. This article examines some of the main pros and cons of using key authentication vs password authentication for hosting an SFTP server.
When you try to share a printer , you may receive one of the following error messages. Error message when you use the Add Printer Wizard to share a printer: Windows could not share your printer. Operation could not be completed (Error 0x000006…
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…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

860 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