/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting!
/* ALSO: Don't quote this header. It makes you look lame :-) */
Ronghua Zhang <[EMAIL PROTECTED]> wrote:
>
> How can I forward the packet targeting port 80 to port 8080 on the
> same host?
It sounds like you want the REDIRECT target. Something like this maybe?
iptables -t nat -A PREROUTING -i $INT_IF -p tcp --dport 80 \
-j REDIRECT --to-port 8080
--
[EMAIL PROTECTED] (Fuzzy Fox) || "Good judgment comes from experience.
sometimes known as David DeSimone || Experience comes from bad judgment."
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/ --
THIS INCLUDES UNSUBSCRIBING!
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.