Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

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

Tech or Treat!

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

In this article, I am going to show you how to simulate a multi-site Lab environment on a single Hyper-V host. I use this method successfully in my own lab to simulate three fully routed global AD Sites on a Windows 10 Hyper-V host.
Most of the applications these days are on Cloud. Cloud is ubiquitous with many service providers in the market. Since it has many benefits such as cost reduction, software updates, remote access, disaster recovery and much more.
After creating this article (http://www.experts-exchange.com/articles/23699/Setup-Mikrotik-routers-with-OSPF.html), I decided to make a video (no audio) to show you how to configure the routers and run some trace routes and pings between the 7 sites…
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…

604 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