I've created a conf file for a connection to an address and port for stunnel whose location is in /usr/local/etc/stunnel/ and started the stunnel service.
I've binded the address to my local ip address 127.0.0.1:60005
To test the connection, I've tried to connect the address via telnet with:
telnet 127.0.0.1 60005
Turns:
Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host.
I know that connection is not closed by foreign host as I tried telnet with the original ip address, there is no problem.
So, how can I test my stunnel connection except using telnet? Thanks.