I'm running a test service, and the problem is it only binds to localhost:

hendry@deb02 ~$ sudo lsof -i | grep openssl
openssl   18599     root    3r  IPv4  65383      0t0  TCP localhost:http-alt (LISTEN)

So when I try telnet to the machine:

hendry@x201 ~$ telnet tests.wacapps.net 8080
Trying 87.119.204.85...
telnet: Unable to connect to remote host: Connection refused

The firewall port is definitely open. Does anyone how I can get it perhaps redirect TCP *:http-alt (LISTEN) to this service or fix OpenSSL 1.0.0d 8 Feb 2011?

link|improve this question

29% accept rate
1  
It's binding to localhost because it's being set to bind to localhost; it won't accept connections from outside. You need to be a little more clear about what this "test service" is, and how OpenSSL is used by it. – Shane Madden Jul 5 '11 at 22:11
1  
I don't even see how to get openssl's s_server to listen only on the loopback. – Mark Wagner Jul 5 '11 at 22:11
@embobo: openssl s_server -accept 127.0.0.1:443 works. Just drop the "127.0.0.1:" and it'll bind globally, though. – BMDan Jul 6 '11 at 0:46
Bind it to 0.0.0.0 instead. – joechip Jul 6 '11 at 2:59
OpenSSL OCSP server doesn't present an option to bind it to 0.0.0.0. :( – hendry Jul 6 '11 at 8:30
show 2 more comments
feedback

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
or
required, but never shown

Browse other questions tagged or ask your own question.