Why doesn't this iptables forward work?
I used to have this same iptables tunnel on a differentIP address, (64.94.46.199 on eth0), but now I have to
change IP addresses to 64.202.99.246 on eth0:5
because my ISP is reclaiming the old one.
Does anyone know why I'm getting "Connection
refused" below? It should work, because I'm setting up
the tunnel on the new IP address exactly the same
way.
It's supposed to forward all incoming connections on
port 443 to port 6969.
Code:
[root@lina rc.d]# iptables -t nat -L Chain PREROUTING (policy ACCEPT) target prot opt source destination DNAT tcp -- anywhere lina tcp dpt:https to:64.202.99.246:6969 Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination [root@lina rc.d]# telnet lina https Trying 64.202.99.246... telnet: connect to address 64.202.99.246: Connection refused [root@lina rc.d]# telnet 64.202.99.246 6969 Trying 64.202.99.246... Connected to 64.202.99.246.