On Wed, 2011-09-21 at 22:23 +0100, Jorge Bastos wrote: > Howdy, > > I'd like some help on how can I redirect the outgoing packets without > using NAT. > > I have a machine, that when requests to IP 5.5.5.5 and port 80 are > made, the request be redirected to 192.168.1.221:80 > I'm trying this but no luck, maybe I'm close to it: > > iptables -I FORWARD -d 5.5.5.5 -p tcp --dport 80 --to 192.168.1.221:80 > > What can I missing or what do I need to add? Assuming that you are referring to packets generated on the local machine (which is what is implied), then you need to use OUTPUT instead of FORWARD. FORWARD is only for packets that arrive from another machine. OUTPUT is for locally generated packets. Andy -- To unsubscribe from this list: send the line "unsubscribe netfilter" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html