Stunnel4 as server
Hi.
I tried many ways to configure this program (Stunnel4) but cannot install it correctly. Right now, I got Ubuntu 9.04 normal edition installed. I got aMule and Deluge (2 P2P programs). I was able to install them, to make them run as deamons and run them on startup. In fact, thoses programs can be acess thru http request. I want then to be ussed HTTPS request instead (I know that deluge can do that by internal options but prefer to configure only 1 SSL program for thoses 2 applications, plus another that will control a PHP script. So I installed by Synaptic the only package Stunnel4. I created 2 self-certificate (a .KEY and a .CRT files that I renamed for Stunnel). This is that I got for Stunnel.conf (located at /usr/stunnel): Quote:
Now, when I type: http:\\192.168.1.7:40010 I enter Amule Web page https:\\192.168.1.40009 DOES NOT WORK http:\\192.168.1.7:50010 I enter deluge web page https:\\192.168.1.7:50009 DOES NOT WORK Others informations: 1) When I type stunnel4 in TERMINAL, promp return without error, but still does not work 2) When I type sudo stunnel4 and enter my password, it's the same thing as enter stunnel4, sill does not work. 3)Whnn I type /usr/bin/stunnel4, it's the same thing 4) files /etc/stunnel/server.crt.pem and etc/stunnel/server.key.pem does exist. I need advice: 1) how to run it properly 2) how to put it on startup 3) where to look for more infos (log) Thanks Ricky00 |
Goss evening.
Finally, I was able to make my program work partially but I still have to fix somes small issues. Without knowing where was the program, I went to the stunnel website downloading the latest version of Stunnel (more recent than the one distributed with Ubuntu 9.04) I compile it and installed on the same directory than the old one, but stil I got the same problem. I read on the website how to edit the file stunnel4 in /etc/init.d. So, i tried to match the path if files and able to run it. However, I still not able to run it on startup of my PC This is the file stunnel4 I was talking about: Quote:
If I type this command on console I got this error: Quote:
So, I tried this command instead: Quote:
So I did this: Quote:
This is the permission I got from various files: Quote:
Thanks Ricky00 |
All times are GMT -5. The time now is 10:02 PM. |