I am trying to forward a remote port from my server to my development machine. I have tried opening the port via iptables, but it is open only for 127.0.0.1.
If I login to the server using ssh and try curl http:127.0.0.1:FORWARDED PORT
, the request is redirected to my local development machine. But the port is inaccessible to outside ip addresses.
Here is the output of netstat -an
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:25 0.0.0.0:* LISTEN
tcp 0 0 **127.0.0.1:8099** 0.0.0.0:* LISTEN
tcp 0 0 127.0.0.1:3306 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN
tcp 0 0 173.45.231.60:22 203.92.35.107:51994 ESTABLISHED
tcp6 0 0 :::22 :::* LISTEN
tcp6 0 0 ::1:8099 :::* LISTEN