|
Prev: Ubuntu linux www.ubuntu.com and www.kubuntu.com are the best and open source google earth
Next: Which distro?
From: Trevor Hemsley on 15 Jun 2008 17:51 On Sun, 15 Jun 2008 20:20:04 UTC in comp.os.linux.questions, Ant <ANTant(a)zimage.com> wrote: > It looks like I have BOTH v3 and v4. I tried the same command as earlier > with stunnel4 (e.g., stunnel4 -D 7 -c -d 119 -r localhost:119 ; tin -g > localhost -p 119), but still get the same errors. :( V4 takes none of those parameters - it pretty much just wants the location of its config file. All the other stuff you've given it there is either ignored or is causing an error (ignored mst likely). > # ls -all /usr/bin/stunnel* What would be far more interesting is the output from ls -la /var/lib/stunnel4 -- Trevor Hemsley, Brighton, UK Trevor dot Hemsley at ntlworld dot com
From: Ant on 15 Jun 2008 18:14 On 6/15/2008 2:51 PM PT, Trevor Hemsley typed: > On Sun, 15 Jun 2008 20:20:04 UTC in comp.os.linux.questions, Ant > <ANTant(a)zimage.com> wrote: > >> It looks like I have BOTH v3 and v4. I tried the same command as earlier >> with stunnel4 (e.g., stunnel4 -D 7 -c -d 119 -r localhost:119 ; tin -g >> localhost -p 119), but still get the same errors. :( > > V4 takes none of those parameters - it pretty much just wants the location of > its config file. All the other stuff you've given it there is either ignored or > is causing an error (ignored mst likely). Ah. And you say my config file should work. Hmm. >> # ls -all /usr/bin/stunnel* > > What would be far more interesting is the output from ls -la /var/lib/stunnel4 $ ls -la /var/lib/stunnel4 total 8 drwxr-xr-x 2 stunnel4 stunnel4 4096 2008-06-15 09:49 . drwxr-xr-x 63 root root 4096 2008-06-15 09:49 .. Doesn't seem to help (empty)? -- "To conquer the world, we must be as meticulus and calculating as a colony of ants on the march." --Julius Caesar /\___/\ / /\ /\ \ Phil/Ant @ http://antfarm.home.dhs.org (Personal Web Site) | |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net \ _ / Remove ANT from e-mail address: philpi(a)earthlink.netANT ( ) or ANTant(a)zimage.com Ant is currently not listening to any songs on his home computer. Go Los Angeles/L.A. Lakers!
From: Ant on 15 Jun 2008 18:20 On 6/15/2008 2:36 PM PT, Allen Kistler typed: >>>> Here is the version in Debian (I apt-get update and upgrade daily): >>> >>> Sorry, I can't help, v3 is too old and I have forgotten all about it. >>> The difference between v3 and v4 is mainly the addition of >>> stunnel.conf and the dropping of all the command line parameters. I >>> have no idea why Debian should continue to ship something that hasn't >>> been updated in about 7 years but all other distros that I've used >>> switched to v4 a long time ago. >>> I do know that stunnel is very fussy about permissions on all its >>> directories though so it's possible that just creating the directory >>> is not enough, you might have to chown/chmod it too. It's also >>> possible that stunnel is running from a chroot jail in which case you >>> might need to be creating /<chroot-jail>/var/run/stunnel >> >> Someone else suggested: >> >> $ stunnel -f -c -d 1119 -r news.giganews.com:563 >> 2008.06.15 09:45:06 LOG5[2756:3082602160]: Using 'news.giganews.com.563' >> as tcpwrapper service name >> 2008.06.15 09:45:06 LOG5[2756:3082602160]: stunnel 3.26 on >> i486-pc-linux-gnu PTHREAD+LIBWRAP with OpenSSL 0.9.8g 19 Oct 2007 >> 2008.06.15 09:45:06 LOG3[2756:3082602160]: Argument to -P >> (/var/run/stunnel/) is not valid a directory name >> >> Then, I tried uninstalling and reinstalling stunnel and stunnel4 >> packages via apt-get command. I retried and got different results: >> >> $ stunnel -f -c -d 1119 -r news.giganews.com:563 >> 2008.06.15 10:02:12 LOG5[3325:3082749616]: stunnel 4.22 on >> i486-pc-linux-gnu with OpenSSL 0.9.8g 19 Oct 2007 >> 2008.06.15 10:02:12 LOG5[3325:3082749616]: Threading:PTHREAD >> SSL:ENGINE Sockets:POLL,IPv6 Auth:LIBWRAP >> 2008.06.15 10:02:12 LOG5[3325:3082749616]: 500 clients allowed >> 2008.06.15 10:02:12 LOG3[3325:3082749616]: Cannot create pid file >> /var/run/stunnel4.pid >> 2008.06.15 10:02:12 LOG3[3325:3082749616]: create: Permission denied (13) >> >> [snip] >> >> It seems like it is mentioning the same permission problems you are >> referring to. Do I chown and chmod to my user/accountname or what? I >> don't know what this chroot jail thing is about. > > Only root can create pid files in /var/run. > > I choose not to run stunnel as root (actually I run it "nobody" using > options in stunnel.conf), so I create a subdir (/var/run/stunnel) owned > by "nobody" and change the pidfile directory using one of the options in > stunnel.conf. The man page describes the options. I also do not run it as root especially for newgroup reading and postings! Maybe I am not seeing it, but I don't see anything about "nobody" in man for both stunnel3 and stunnel4 commands. I see these two in my /var/run/: drwxrwxrwt 2 root root 4096 2008-06-15 11:27 stunnel drwxr-xr-x 2 stunnel4 stunnel4 4096 2008-06-15 10:00 stunnel4 Sorry if I found like a newbie. I am with this stunnel and not that knowledgeable with Linux. This stuff is pretty confusing! :( -- "I don't understand them anymore, these people that travel the commuter-trains to their dormitory towns. These people call themselves human, but, by a pressure they do not feel, are forced to do their work like ants. With what do they fill their time when they are free of work on their silly little Sundays?" --Antoine de saint-Exup�ry, 'Wind, Sand, and Stars,' 1939 /\___/\ / /\ /\ \ Phil/Ant @ http://antfarm.home.dhs.org (Personal Web Site) | |o o| | Ant's Quality Foraged Links (AQFL): http://aqfl.net \ _ / Remove ANT from e-mail address: philpi(a)earthlink.netANT ( ) or ANTant(a)zimage.com Ant is currently not listening to any songs on his home computer. Go Los Angeles/L.A. Lakers!
From: John Hasler on 15 Jun 2008 18:14 From the stunnel4 package description: This package is compatible with stunnel 3.x version (via a wrapper). (I don't use stunnel) -- John Hasler john(a)dhh.gt.org Dancing Horse Hill Elmwood, WI USA
From: Trevor Hemsley on 15 Jun 2008 18:22 On Sun, 15 Jun 2008 22:14:25 UTC in comp.os.linux.questions, Ant <ANTant(a)zimage.com> wrote: > And you say my config file should work. Hmm. There is an 'output =' line in the config file. I would uncomment that and point it to /stunnel.log, start it up then look at /var/lib/stunnel4/stunnel.log for pointers to the error. If it's missing a .pem file then you need to create one and I don't know how you do that on Debian. You could also list all the files in your /var/log directory and see if any of those contain useful info. -- Trevor Hemsley, Brighton, UK Trevor dot Hemsley at ntlworld dot com
First
|
Prev
|
Next
|
Last
Pages: 1 2 3 4 Prev: Ubuntu linux www.ubuntu.com and www.kubuntu.com are the best and open source google earth Next: Which distro? |