Port Redirection

Aaron aaron at technolounge.org
Thu Mar 21 15:04:19 PST 2002


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