Port Redirection

Warren Raquel warquel at hotmail.com
Thu Mar 21 18:01:12 PST 2002


That did it. I saw that in my search too and didn't even think to try it.
D'oh!

----- Original Message -----
From: "Aaron" <aaron at technolounge.org>
To: <talk at nblug.org>
Sent: Thursday, March 21, 2002 3:04 PM
Subject: RE: Port Redirection


Hope this quick+dirty example helps, modify to fit your needs.

iptables -t nat -A PREROUTING -i eth0 -p tcp --dport 80 -j REDIRECT
--to-port 8000

A A R O N

        aaron at technolounge.org
.:Technolounge:. | www.technolounge.org
KidPhawx [ASR/AEC/SFRP/AudibleEnergy]


-----Original Message-----
From: Warren Raquel [mailto:warquel at hotmail.com]
Sent: Thursday, March 21, 2002 2:52 PM
To: talk at nblug.org
Subject: Port Redirection

Ok, I'm just playing around with this a little. I need to figure out how
to get (for example) port 80 to redirect to port 8000 on the SAME
computer using iptables. I tried a google search but my head is
exploding and all I can find are examples for forwarding to machines
inside your lan. The direction is from the world to the my computer.
It's not a router, it's stand-alone. Any tips?




More information about the talk mailing list