MS RDP client routing, WinXP.

Posted on 2004-08-23
Last Modified: 2008-01-09
Picture this!

WinXP client PC with NIC and modem.
Connected via NIC to the local LAN and participating in NT4 based domain.  It has access via MPLS based WAN to terminal servers at a remote site.  Using a current version of MS RDC I want to give the users access to the Terminal Servers (Win2kServers BTW) but via the modem, while they are still connected to the local LAN/WAN; so TCP/IP traffic to a specific number of servers running TS must be routed via the modem (either ISDN or POTS) not via the still connected NIC.

Yes I know it would be easier if I were connecting to a Win2003server and yes I know this can be accomplished with Citrix, but neither are an opption in this senario.

I'll give 500 pts for this one chaps but the answer must be comprehensive.

Let me know if you need any more info.

Thanks EE!
Question by:littlebuddah
  • 3
  • 2
LVL 15

Expert Comment

ID: 11872812
I'm picturing as best as I can, but I'm confused!

You have PCs on a LAN.  These PCs have access to the Terminal Servers over the LAN, but you want them to use a modem dial-in to access them?

It raises the question "why?".

I may be wrong, but when you dial-in the PC will automatically start routing outbound traffic over the dial in connection.

Author Comment

ID: 11902125
Politics is the reason.

Since the WAN team "upgraded" the WAN and re-weighted the routing things have been a little unpredictable.  They admit there are issues and will resolve them in due course, no help to my users who need ad-hoc access to a couple of critical Apps on some TS servers on a different site.  

The problem is compouded by the fact that the WAN dosen't always just die when there is a problem but may just slow to a crawl or mis-route packets so its's hard to develop a system that can figure "oh the WAN's dropped out, I'll reroute the packets via [insert solution here]".  I have no authority to add routing records hence the reason I want a limited number of TS connections to route via a modem always whether it thinks the LAN/WAN is available or not.

With regards to your last comment, i've set up this type of system with Citrix for a previous company who gave customers and suppliers access to applications via a dial in Citrix server with a primary ISDN card, it was a good setup but one which I can't replicate here because of budget/politics, take your pick.

Hope this makes it a little clearer! and thanks for your reply Sampgb!
LVL 15

Accepted Solution

scampgb earned 500 total points
ID: 11905083
OK, making a bit more sense now.
I'm assuming that you've got a modem at the remote site you can dial into?

Unfortunately I don't have the kit to be able to test this out, but if you don't mind a bit of experimentation I've got a theory.

For the sake of demonstation, I'm assuming that you want to route traffic to over the modem, and everything else via the NIC.

On the client PC:
Go to a command prompt, run "ipconfig"
Note down the default gateway.  I'm assuming for this example.

Use the modem to dial-up to the central servers
Run "ipconfig" again.
You should see both the NIC details and the modem interface.  
Note down the default gateway here.  I assume  The modem will probably be the second one, it's important to note down the order.

route delete
route add mask metric 20 if 1             <- route all traffic via first interface, using default LAN gateway
route add mask metric 1 if 2           <- route to 192.168.5.x via second interface

Do some ping tests and see what happens :)

This is all a bit theoretical, and I've not been able to test it so I make no guarantees.


Author Comment

ID: 12005898
Simple and effective!

I configured a RAS Profile and created a batch file along the lines of:

rasdial dialupconn [your pre-configred dial up connection] account password /DOMAIN:yourdomain /PHONE:yourRASnumber
sleep 1
route delete
route add mask [default LAN gateway] if 0x1 [NIC interface]
route add [TS server] mask [ip assigned to modem] if 0x20006 [modem interface]
start c:\default.rdp [call an RDP connection]

With this solution my users were able to use applications in an RDP session while still writing the output of the programs to servers on the local LAN segment while the WAN is down; all in about 20seconds with very little user interaction.

Exactly what I wanted to achieve, no compromise.

Big thanks to ScampGB!!!!  Now to allocate some well deserved points  ;)
LVL 15

Expert Comment

ID: 12035045
Hi Littlebuddah - glad that I could help :-)

Featured Post

Simplifying Server Workload Migrations

This use case outlines the migration challenges that organizations face and how the Acronis AnyData Engine supports physical-to-physical (P2P), physical-to-virtual (P2V), virtual to physical (V2P), and cross-virtual (V2V) migration scenarios to address these challenges.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Toshiba Satellite 5 154
XP won't boot 27 142
How to Force Windows XP to Scan for driver update 14 107
Windows XP on domain not allowing domain admins to RDP in 10 87
Most of the time we are in fix when all of sudden our systems behave weirdly.  Such problems cost time and effort... so it's best to take some preventive actions so that we can avoid such issues or overcome such problems more easily. Preventive M…
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup" or a blinking cursor with black screen. A loop for Auto repair will start but fix nothing.  You will be panic as there are no back…
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.

815 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now