LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Bind application to interface...or some fancy routing? (https://www.linuxquestions.org/questions/linux-networking-3/bind-application-to-interface-or-some-fancy-routing-720178/)

IscreaMan 04-19-2009 06:42 AM

Bind application to interface...or some fancy routing?
 
Hi :)

I have two internet connection @ my linux box.

1. wired ethernet - eth0 (10.0.0.2) connected to ADSL modem (10.0.0.1)
2. wireless USB - wlan0 (192.168.1.* dhcp'ed) connected to wireless AP (192.168.1.100)

Is it possible to "force" one application to use only wlan0 (and it's gateway), while other should use only eth0?

Some kind of source routing? Socks proxy? Socket hijacking? I was googling a lot, but cannot find any solution.

I am virtualizing at the moment with VirtualBox, but this is not an option for me.

Best regards!

asymptote 04-19-2009 07:32 AM

I don't know of a way to tell an application to use one interface and everything else use another, but you can do it with Virtualbox (which is an application). You can follow the directions on this link http://forums.virtualbox.org/viewtopic.php?f=7&t=9165 near the end. This information is also in the virtualbox manual but the guy that provided the answer just put the solution in a nice format for the OP.


All times are GMT -5. The time now is 02:46 AM.