On Thursday 2011-09-22 17:58, Jorge Bastos wrote: > Hi Andy, > >>> 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. > > Correct, local generated packets. > Tried: > > iptables -I OUTPUT -d 5.5.5.5 -p tcp --dport 80 --redirect-to 192.168.1.221:80 What makes you think that there is an error in redirect? -- 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