When I create a remote port forwarding tunnel with Putty, a remote port opens on interface with ip
127.0.0.1. On the remote host I'm able to
nc localhost RPORT and forwarding works, but I'm unable to connect with
nc RHOST RPORT. The problem is, that
RPORT gets open on wrong interface -- localhost, instead of the public IP interface.
How can I setup remote port forwarding, so that I can connect from the internet, to
netstat -an | grep RPORT returns
tcp 0 0 127.0.0.1:RPORT 0.0.0.0:* LISTEN