Stunnel does not show up in processes after running it.
I'm trying to set up a SSL-SOCKS server according to jestrix.net/tuts/sslsocks.html so I can use BitTorrent at my university. Unfortunately, I've run into a snag. When I get up to the point where I actually run stunnel, it says "command not found". Ok, so I do a search for "stunnel", find where the program is actually located, and run "./stunnel". Then it asks me for me passphrase, and then we're up and running, right? According to the KDE system guard, not so. I dont see any process called "stunnel" or ANY processes running under the user "stunnel" (The tutorial is set up so stunnel will run under the user "stunnel" in group "stunnel", yes, I did set those up.). This is the third time I've tried to do this set up (Under FreeBSD, FedoraC2, and now Suse 9.1), and it's done this every time. Can anyone please help me out here?
|
Stunnel tends to silently die if there is any error e.g. with the start-up parameters. Are you sure it is running?
Have you checked it as root from konsole? (ps -ax) Are there any error messages in /var/log/messages? |
Ah ha, found some messages:
Code:
Jul 23 17:56:46 linux stunnel[3504]: stunnel 4.05 on i686-pc-linux-gnu PTHREAD with OpenSSL 0.9.7d 17 Mar 2004 |
Anyway, it should an existing IP address, assigned to an interface on the machine where stunnel and nylon are running.
Ifconfig will show you the interfaces and the IP addresses assigned to them. |
I've got the correct Ip address now, but now it's giving me this:
Code:
Jul 23 22:30:38 linux stunnel[9091]: stunnel 4.05 on i686-pc-linux-gnu PTHREAD with OpenSSL 0.9.7d 17 Mar 2004 |
bump.
|
It is a prmission problem: the user running stunnel cannot create the pid file in the "/" directory.
That is OK, as it is not a good idea to create pid files in the root directory. The usual place for pid files is /var/run/. You can specify the place of the pid file on the command line. Doublecheck that the directory you specify is writeable for the user running stunnel. |
I'm having really bad luck with this. I set the directory to /var/tmp/stunnel/, and now it's giving me this.
Code:
Jul 27 18:16:33 linux stunnel[11160]: stunnel 4.05 on i686-pc-linux-gnu PTHREAD with OpenSSL 0.9.7d 17 Mar 2004 I tried doing this in a directory with chmod 777, and it still gave me this. |
bump
|
Sorry, I was on holiday, and just now I see you are still having trouble with this setup.
This time I had a look at the tutorial and seeing the server config file options I think it uses a tricky setup: it chroots to the /var/tmp/stunnel directory, so any subsequent references to any other directories are relative to that directory. This means that when you had a permission problem with the / directory ("cannot create /stunnel.pid"), you actually had a permission problem with /var/tmp/stunnel. So, you should not specify any new location for the stunnel.pid file, just use the default one used in the tutorial, but check that the user running stunnel has permissions to create files in directory /var/tmp/stunnel |
All times are GMT -5. The time now is 11:11 PM. |