Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have two network adapters which are wireless and cable network. I want to use wireless network for Skype, torrent, MSN or something not related with jobs but I want to use cable network for RDP, software development, SQL connection.

İs there any way to redirecting programs to another network connection?

share|improve this question
1  
Using which operating system? (Also, I think this is called "policy routing"; port forwarding is about incoming connections.) –  grawity Nov 22 '11 at 8:57
    
My OS: Windows 7 –  uzay95 Nov 22 '11 at 10:58

2 Answers 2

up vote 3 down vote accepted

It is difficult to organise routing based on applications that make connections, but fairly easy by IP address if you can work out a routing scheme that has a default for non-work items, and then specific routes for work related destinations.

So in the scenario you describe, you want your wireless to do most things, and happens to be the types of activities that you could write specific routes for, so this should be the default route. Accept the IP address and default route from the wifi connection.

The cable is to be used for specific things, such as

  1. rdp
  2. sql connection
  3. software development

Normally these types of activities are to specific and known servers. All you need is their IP addresses, and you can route requests to these servers via the cable connection.

If you have to get an IP by dhcp for the cable connection, you'll need to delete the default route they provide you:

route delete 0.0.0.0 mask 0.0.0.0 <cable next hop>

Then add specific routes for the servers you want to connect to via cable:

route add <rdp server ip> mask 255.255.255.255 <cable next hop>
route add <sql server ip> mask 255.255.255.255 <cable next hop>
route add <dev server ip> mask 255.255.255.255 <cable next hop>
share|improve this answer
    
Thank you for your help. I wrote an entry with your answer: sanirimbuyok.blogspot.com/2011/12/ag-bagdastrcs-secmek.html –  uzay95 Dec 1 '11 at 14:27

Windows haven't at all source policy routing, only target (using route add). Can't recall exact recipe for Tux, but it can do it

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.