Reputation: 649
I am using stunnel4 on Ubuntu 14.04 to forward a connection to a remote connection securely. I restarted the stunnel service and it appears to be running with no issues, but I can not open a connection to 127.0.0.1:8888.
$/etc/init.d/stunnel4 restart
Restarting SSL tunnels: [Started: /etc/stunnel/stunnel.conf] stunnel.
Here is my /etc/stunnel/stunnel.conf:
cert = /path/to/my/cert.pem
client = yes
[ssl_tunnel]
protocol = proxy
accept = 127.0.0.1:8888
connect = remotehost:443
My /var/log/stunnel4/stunnel.log is totally empty. Is there an issue with my conf file?
Upvotes: 0
Views: 1296
Reputation: 20232
are you sure the process is up - is it listening on port 8888? Make sure that no other process is already bound on that port before you run stunnel.
Before running stunnel process:
netstat -an | grep 8888
If there is a process running on that port, check which process it is (need to run as sudo).
sudo netstat -tulpn | grep 8888
Once you are sure that no other process is listening on port 8888, run the stunnel process. Check if the process is up.
ps -ef | grep stunnel
&
netstat -an | grep 8888
Also make sure that it is binding on 127.0.0.1 (you can always try 0.0.0.0 as well).
Hope it helps.
Upvotes: 1