Redirecting traffic away from loopback

From: Nikola KneÅeviÄ
Date: Thu Dec 04 2008 - 04:48:29 EST


Hi,

is it possible with iptables to redirect all the traffic to go to the network interface, instead of the loopback?

I have two virtual interfaces, eth0:1 (10.0.0.1) and eth0:2 (10.0.0.5). When a process sends a packet from 10.0.0.1 to 10.0.0.5, I would like to ship that packet to the gateway, which will return the packet back to this machine. Is this possible with iptables? Also, can I do the same thing now just for IP, but for ICMP?

Cheers,
Nikola
--
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html