/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! /* ALSO: Don't quote this header. It makes you look lame :-) */
Since I am currently working with kernel 2.2.x, netfilter is not availble. I have to play with ip_masq. Actually, I am asked to write a module to do this, but don't know if IP-Masquerade under kernel 2.2.x can do this or allow to do this. Any hint or suggestion? rz On Wed, 6 Nov 2002, Fuzzy Fox wrote: > 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.
