2
I've got two network interfaces on an Ubuntu machine which go out to two different networks but both have internet gateways.
I need to limit it so that any outgoing http requests it makes (ie through wget) only go through eth0
and all other traffic goes through eth1
.
I dare say the solution might have something to do with iptables but I've no experience with it so would appreciate all help.
Would this fit in better on Server Fault? – Aren B – 2010-06-03T00:22:40.880
2Not really, this isn't a server question. – Daisetsu – 2010-06-03T00:39:29.050
@Daisetsu: mhh .. not sure. I have seen questions for bandwith sharing and bandwidth load balancing on serverfault.com already. – akira – 2010-06-03T03:49:04.157
@Oli: can you clarify the difference between what my browser creates in "outgoing" traffic and what wget creates in "outgoing" traffic? – akira – 2010-06-03T03:51:07.457
akira: No difference at all. The only reason I specify wget is because the computer is a headless server. Certain scripts make requests to other servers through wget and I basically need to restrict which interface it uses for certain outbound jobs. – Oli – 2010-06-03T22:04:53.293
So yes, this question could easily apply to a desktop with two networks defined and me wanting to restrict all Firefox traffic to eth0. – Oli – 2010-06-03T22:05:51.437