Block all but http traffic on a network interface
Posted
by Oli
on Super User
See other posts from Super User
or by Oli
Published on 2010-06-03T00:11:12Z
Indexed on
2010/06/03
0:14 UTC
Read the original article
Hit count: 580
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.
© Super User or respective owner