On Jan 24, 2010, at 8:25 PM, Steve McCarthy <[email protected]> wrote: > $ iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 80 -j REDIRECT > --to-port 8080 > $ telnet localhost 80 > Trying ::1... > Trying 127.0.0.1... > telnet: Unable to connect to remote host: Connection refused
That rule says "take traffic to port 80 on interface eth0 and redirect it to port 8080". You're not connecting through eth0, you are connecting via loopback. -- Jarod Wilson [email protected]
