Quote:
Originally Posted by binary_dreamer
For example i would like to have the internet browsing to go through the wired connection (network 192.168.1.0) and all the other traffic through the wireless connection (network 172.16.1.0).
|
Use iptables.
You can prevent HTTP traffic from using the wireless connection by using
Code:
iptables -A OUTPUT -s 172.16.1.0/24 -p tcp --dport 80 -j DROP
You can prevent all non-HTTP traffic from using the wired connection by using
Code:
iptables -A OUTPUT -s 192.168.1.0/24 -p tcp ! --dport 80 -j DROP
You will also want to add similar rulres for HTTPS (--dport 443).
WARNING: I do not have a way of completely testing this at the moment, but this should put you on the right track.