LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-23-2004, 02:26 PM   #1
Doctor Nick
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Rep: Reputation: 0
Exclamation 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?
 
Old 07-23-2004, 04:24 PM   #2
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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?

Last edited by J_Szucs; 07-23-2004 at 04:25 PM.
 
Old 07-23-2004, 05:05 PM   #3
Doctor Nick
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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
Jul 23 17:56:48 linux stunnel[3504]: Peer certificate location /trusted
Jul 23 17:56:48 linux stunnel[3504]: FD_SETSIZE=1024, file ulimit=1024 -> 500 clients allowed
Jul 23 17:56:48 linux stunnel[3504]: Error binding socks5 to 192.168.1.107:1080
Jul 23 17:56:48 linux stunnel[3504]: bind: Cannot assign requested address (99)
I'm not quite sure what ip address I have to use for stunnel, the tutorial is pretty vague on that. It just says "external" IP. Im not sure if that means "use the one you get from whatismyip.com" or the one assigned to the machine by my router.
 
Old 07-23-2004, 06:08 PM   #4
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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.
 
Old 07-23-2004, 09:35 PM   #5
Doctor Nick
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Original Poster
Rep: Reputation: 0
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
Jul 23 22:30:40 linux stunnel[9091]: Peer certificate location /trusted
Jul 23 22:30:40 linux stunnel[9091]: FD_SETSIZE=1024, file ulimit=1024 -> 500 clients allowed
Jul 23 22:30:40 linux stunnel[9092]: Cannot create pid file /stunnel.pid
Jul 23 22:30:40 linux stunnel[9092]: create: Permission denied (13)
Any idea what to do?
 
Old 07-24-2004, 03:31 PM   #6
Doctor Nick
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Original Poster
Rep: Reputation: 0
bump.
 
Old 07-25-2004, 06:01 AM   #7
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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.
 
Old 07-29-2004, 05:04 PM   #8
Doctor Nick
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Original Poster
Rep: Reputation: 0
Unhappy

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
Jul 27 18:16:35 linux stunnel[11160]: Peer certificate location /var/tmp/stunnel/trusted
Jul 27 18:16:35 linux stunnel[11160]: FD_SETSIZE=1024, file ulimit=1024 -> 500 clients allowed
Jul 27 18:16:35 linux stunnel[11161]: Cannot create pid file /var/tmp/stunnel/stunnel.pid
Jul 27 18:16:35 linux stunnel[11161]: create: No such file or directory (2)
I have chmod set to 700 on that dir.
I tried doing this in a directory with chmod 777, and it still gave me this.
 
Old 07-29-2004, 09:55 PM   #9
Doctor Nick
LQ Newbie
 
Registered: Jul 2004
Posts: 6

Original Poster
Rep: Reputation: 0
bump
 
Old 08-07-2004, 08:53 PM   #10
J_Szucs
Senior Member
 
Registered: Nov 2001
Location: Budapest, Hungary
Distribution: SuSE 6.4-11.3, Dsl linux, FreeBSD 4.3-6.2, Mandrake 8.2, Redhat, UHU, Debian Etch
Posts: 1,126

Rep: Reputation: 58
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
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Show processes, not threads Martin Strand Linux - Newbie 1 06-14-2005 08:46 AM
Running processes, which ones don't I need Garibaldi3489 Slackware 11 02-06-2005 03:46 PM
Strange processes show up when VNC is running PlorkZ Linux - Networking 3 11-03-2004 02:00 PM
processes running true_atlantis Slackware 2 02-27-2004 02:34 AM
seeing running processes albean Linux - Newbie 3 11-11-2002 06:52 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration