Originally Posted by salmonix
I am seeking a solution to the following scenario:
PC box - 4 NICs.
eth0 -> DHCP -> connected to the NET directly (via modem)
wlan0 -> static/192.168.5.10 -> routed also to access NET.
rest of the nics are managing LAN
Default gw is eth0.
Now, I would like to force some applications to use wlan0 exclusively and not doing any traffic via eth0.
Or with other words: any application that is listening on wlan0 should reach the net via the gw of 192.168.5.0 network (that is 192.168.5.1), the rest should go via eth0.
Is there any solution at all?
check out the http://lartc.org/
. They way that could be done is to mark certain packets depending on port (application) and then have them routed through the desired out interface. There also is a similar setup inside the latc manual.
Progs involved would be
iptables - to mark package
ip rule - to route package through certain device
Maybe this also can be done through some fancy rewrites with iptables. But I can't come up with one