• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 732
  • Last Modified:

Routing applications to different connections

Is there a way to route different application to different network connections in Windows XP?
For example browser and e-mail app to use  USB Modem connection and all of the other applications to a LAN connection??

Please if an application is needed, preferably open-source free.
0
ahmedsoliman
Asked:
ahmedsoliman
  • 7
  • 3
  • 2
  • +2
3 Solutions
 
MagicFarmerCommented:
Typically Windows will only use one Internet connection at a time, usualy the first one it finds, and ignore the other.  There are some potential hardware solutions:  http://www.computing.net/answers/networking/sharing-intenet-connection-over-lan/37810.html, but they may be more work and expense than you are looking for.
0
 
ahmedsolimanAuthor Commented:
It's not what I'm asking for though, in fact... I don't want share the internet connection!

But instead I need kind of a "router" but on the windows applications level.
0
 
Steve KnightIT ConsultancyCommented:
Are any of these applications talking to specific hosts?  There is nothing stopping you tinkering with the routing table so that, for instance, mail.whatever.com gets routed through one gateway, another specific application gets routed another way and anything else hits the default gateway.

e.g.

nslookup mail.yourprovider.com to get the address (if they have more than one then add each)

route -p add ipaddress mask 255.255.255.255 routerip
etc.

Steve
0
 The Evil-ution of Network Security Threats

What are the hacks that forever changed the security industry? To answer that question, we created an exciting new eBook that takes you on a trip through hacking history. It explores the top hacks from the 80s to 2010s, why they mattered, and how the security industry responded.

 
senadCommented:
The browser and email have all connection properties of their own so you set them within these applications.One example is Outlook 2007 (see the pic).
It's connection properties are set over there.



sys.png
0
 
Steve KnightIT ConsultancyCommented:
Also, for instance if you have situation where you want internet to go over your USB connection and you have multiple subnets connected to your LAN port then you would:

a) Remove default gateway from LAN port - if it is DHCP then change to a fixed address, or do a

route delete 0.0.0.0

before connecting the USB modem

then you can do

route -p add 10.0.0.0 mask 255.0.0.0 10.0.0.1

for instance to add a route so that all 10.x.x.x traffic goes out to the 10.0.0.1 router on the LAN port.

Please elaborate with examples what you are trying to do and can see if this or other methods are workable.

Steve
0
 
senadCommented:
In Internet Explorer you also have connection settings.
(see the pic)
So once you have created a dial up connection (modem) just set these
settings to use the dial-up connection.Simple as that !
Or perhaps you want something else ?
sys.png
0
 
Keith AlabasterCommented:
Not going to happen because you are talking about different functions that operate at different layers within the OSI model. This is basic networking knowledge at its simplest level.

An application - even a simple one - has no interest (or knowledge) about the route required to get from the client to a destination, that is handled but other layers within the protocol stack. The routing is undertaken by the addressing used, not by the type of application; even a proxy can only be used by telling the client the IP address of the proxy server - it doesn't just use the proxy server because you happen to be using web-based traffic.

As already mentioned above, you can direct traffic by setting ip address ranges or scopes so that routing equipment will target traffic to a particular destination using a particular route. What you cannot do is use an application-layer router.

0
 
Steve KnightIT ConsultancyCommented:
If you had two internet connections on different gateways you COULD run a bridged virtual machine which then has a default gateway of "router A" and the main machine has a gateway of "router B" for instance....

This also brings other questions, such as... are you trying here to use, say, a USB 3G modem for internet and mail at the same time as a corporate LAN connection for other hosts, in which case routing changes of IP ranges could work but would be insecure and almost certainly fall foul of any sensible company security policies...

Steve
0
 
Keith AlabasterCommented:
Same applies Steve, it becomes based on target IP addressing rather than by application. The options you gave earlier are correct and would be the only way to move this forward. There is not a way of application routing though within XP.
0
 
Steve KnightIT ConsultancyCommented:
Agreed, was just adding the obvious I missed, i.e. how big a security no-no this would be outside of a home environment...
0
 
ahmedsolimanAuthor Commented:
Thanks a lot guys for your comments, I will need some time to experiment, but anyway the real facts are:
1. It is the company laptop I'm talking about
2. I needed Google Chrome traffic to be routed to the USB Modem and all of the other network traffic to be routed through the LAN (including Outlook)
3. To be more specific: internal company IPs to be routed through LAN (which are not always inside my subnet range), and external IPs through USB Modem

@dragon-it: I just wanted to know what level of insecurity would this be to the company?
0
 
Steve KnightIT ConsultancyCommented:
You are connecting the internet directly to the LAN, one hop away from the internal network.  I presume you don't connect your current ISP internet connection straight to the LAN without a firewall, proxy device etc?

For #3 it is completely POSSIBLE to do this using routes, i.e. set routes for all internal subnets and leave default going the other way but beng ALLOWED or SECURE is another matter.
0
 
Steve KnightIT ConsultancyCommented:
And if you are not a small company / the IT department yourself prepare to be removed from the building if found out etc...
0
 
Keith AlabasterCommented:
LOL -Seen it happen
0
 
Steve KnightIT ConsultancyCommented:
Thanks.  Sorry that there wasn't a "proper" answer for you on this one you can see the issues involved now.

Steve
0

Featured Post

Automating Your MSP Business

The road to profitability.
Delivering superior services is key to ensuring customer satisfaction and the consequent long-term relationships that enable MSPs to lock in predictable, recurring revenue. What's the best way to deliver superior service? One word: automation.

  • 7
  • 3
  • 2
  • +2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now