[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: how to use lan network for one application and wifi to surf the net



A very simple way of doing this is using iproute2.
First you need to know what ports (tcp or udp) uses each of your applications.
Then, using iptables "mark" the traffic (mangle) for each application,
for example:
Mark with label "A" traffic of emule and bittorrent.
Mark with label "B" the rest of teh traffic.

Linux kernel, permits to you to have multiple (diferrent) routing tables.
Make one routing table (ISP_A) to use the wireless default gw, and the
other table (ISP_B) to use the lan default gw.

Use iptables and ip rules to "associate" routing table ISP_A with
traffic maked with label "A".
Use iptables and ip rules to "associate" routing table ISP_B with
traffic maked with label "B".

See Linux Advanced Routing howto.

Regards



Reply to: