Accessing from Internet to daemon binded to localhost
Hi all,
I've a daemon listening on 127.0.0.1:4287 (custom tcp port).
Now, I need to access to this daemon from Internet.
I can't bind the daemon to the public ethernet address.
I was thinking of iptables..
# iptables -t nat -A PREROUTING -p tcp --dport 4287 -j DNAT --to-destination 127.0.0.1:4287
but this not work!
I see incoming connection from outside, but the daemon dosen't reply.
Anyone can help me?
Thank you!
|