Thread View: news.software.nntp
57 messages
57 total messages
Page 1 of 2
Started by Daniel Webster
Fri, 27 Jun 2014 02:27
Page 1 of 2 • 57 total messages
Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 02:27
Date: Fri, 27 Jun 2014 02:27
20 lines
1605 bytes
1605 bytes
I am using Aioe.org and it works just fine, but I can't seem to get mixmin to work as a news server. Here are the settings and errors: http://oi57.tinypic.com/ve7ib9.jpg http://oi62.tinypic.com/2gy9hqg.jpg http://oi61.tinypic.com/2m65nkj.jpg http://oi60.tinypic.com/2z4z8d5.jpg In Pan 0.139, Edit>Edit News Servers, I have set: Address: news.mixmin.net Port: 563 Username: blank Password: blank Connection Limit: 4 Expire Old Articles: After Three Months Server Rank: Fallback But mixmin won't work (all other free news servers work fine). How do I test what is preventing mixmin from working on Linux?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: kensi
Date: Fri, 27 Jun 2014 04:36
Date: Fri, 27 Jun 2014 04:36
18 lines
1838 bytes
1838 bytes
On 26/06/2014 10:27 PM, Daniel Webster wrote: > In Pan 0.139, Edit>Edit News Servers, I have set: > Address: news.mixmin.net > Port: 563 ... > But mixmin won't work (all other free news servers work fine). > How do I test what is preventing mixmin from working on Linux? Is it actually connecting with SSL, or just connecting on port 563 but then attempting a non-encrypted NNTP handshake? You may need to run your news app through stunnel to get it to work with mixmin, as according to the irregularly posted faq here, mixmin requires SSL. -- "To explain the unknown by the known is a logical procedure; to explain the known by the unknown is a form of theological lunacy." ~David Brooks "I get fooled all the time by the constant hosiery parade in here." ~Checkmate
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 07:48
Date: Fri, 27 Jun 2014 07:48
31 lines
2189 bytes
2189 bytes
On Fri, 27 Jun 2014 00:36:31 -0400, kensi wrote: > Is it actually connecting with SSL, or just connecting on port 563 but > then attempting a non-encrypted NNTP handshake? You may need to run your > news app through stunnel to get it to work with mixmin, as according to > the irregularly posted faq here, mixmin requires SSL. I didn't know about stunnel, so now it's installed: $ sudo apt-get install stunnel I took a look at the readme and sample files: $ view /etc/stunnel/README $ view /usr/share/doc/stunnel4/examples/stunnel.conf-sample I changed the default to start automatically upon reboot: $ sudo vi /etc/default/stunnel4 Changed: ENABLED=0 to ENABLED=1 And, I copied over the suggested configuration file: $ sudo cp /usr/share/doc/stunnel4/examples/stunnel.conf-sample /etc/stunnel/stunnel.conf I'm not sure what settings to change, but there's nothing for nntp so I'll try to add the following (found by googling): $ sudo vi /etc/stunnel/stunnel.conf [nntp] accept = localhost:119 connect = news.mixmin.net:563 $ sudo reboot (to start stunnel services)
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 07:55
Date: Fri, 27 Jun 2014 07:55
11 lines
1414 bytes
1414 bytes
On Fri, 27 Jun 2014 07:48:26 +0000, Daniel Webster wrote: > $ sudo vi /etc/stunnel/stunnel.conf > [nntp] > accept = localhost:119 > connect = news.mixmin.net:563 > $ sudo reboot (to start stunnel services) That didn't work when I tried to post using mixmin. I must be missing some stunnel setup somewhere...
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 08:09
Date: Fri, 27 Jun 2014 08:09
10 lines
1438 bytes
1438 bytes
On Fri, 27 Jun 2014 07:55:14 +0000, Daniel Webster wrote: > I must be missing some stunnel setup somewhere... Trying some of these hints... http://blog.trebacz.com/2012/03/installing-stunnel-to-enable-ssl.html [HOWTO]: Use Pan with Stunnel4 Secure Sockets Layer (SSL) http://ubuntuforums.org/showthread.php?t=653246
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Steve Crook
Date: Fri, 27 Jun 2014 08:47
Date: Fri, 27 Jun 2014 08:47
41 lines
2668 bytes
2668 bytes
On Fri, 27 Jun 2014 07:48:26 +0000 (UTC), Daniel Webster wrote in Message-Id: <loj7ka$vgh$1@speranza.aioe.org>: > On Fri, 27 Jun 2014 00:36:31 -0400, kensi wrote: > >> Is it actually connecting with SSL, or just connecting on port 563 but >> then attempting a non-encrypted NNTP handshake? You may need to run your >> news app through stunnel to get it to work with mixmin, as according to >> the irregularly posted faq here, mixmin requires SSL. > > I didn't know about stunnel, so now it's installed: > $ sudo apt-get install stunnel > > I took a look at the readme and sample files: > $ view /etc/stunnel/README > $ view /usr/share/doc/stunnel4/examples/stunnel.conf-sample > > I changed the default to start automatically upon reboot: > $ sudo vi /etc/default/stunnel4 > Changed: ENABLED=0 to ENABLED=1 > > And, I copied over the suggested configuration file: > $ sudo cp /usr/share/doc/stunnel4/examples/stunnel.conf-sample /etc/stunnel/stunnel.conf > > I'm not sure what settings to change, but there's nothing for nntp > so I'll try to add the following (found by googling): > $ sudo vi /etc/stunnel/stunnel.conf > [nntp] > accept = localhost:119 > connect = news.mixmin.net:563 That looks correct. After you did that and started stunnel, did you point your newsreader to 127.0.0.1:119? > $ sudo reboot (to start stunnel services) I'd suggest you start the service instead of rebooting. That way you'll get real-time feedback on whether the service started successfully. /etc/init.d/stunnel start -- And with glasses high we raised a cry for freedom had arrived
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 13:48
Date: Fri, 27 Jun 2014 13:48
11 lines
1520 bytes
1520 bytes
On Fri, 27 Jun 2014 08:47:25 +0000, Steve Crook wrote: > That looks correct. After you did that and started stunnel, did you > point your newsreader to 127.0.0.1:119? No. It's not intuitive what to do to set up stunnel (nor that stunnel is even needed, since Pan 0.139 is "supposed" to have SSL already). None of this makes any logical sense to me, so I need to find good step-by-step instructions...
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: whosbest54
Date: Fri, 27 Jun 2014 15:04
Date: Fri, 27 Jun 2014 15:04
41 lines
2733 bytes
2733 bytes
In article <lojso1$oha$1@speranza.aioe.org>, daniel@webster.com says... >On Fri, 27 Jun 2014 08:47:25 +0000, Steve Crook wrote: > >> That looks correct. After you did that and started stunnel, did you >> point your newsreader to 127.0.0.1:119? > >No. It's not intuitive what to do to set up stunnel (nor that stunnel is >even needed, since Pan 0.139 is "supposed" to have SSL already). > >None of this makes any logical sense to me, so I need to find >good step-by-step instructions... > This may help. You need to edit a .conf file to point to the Mixmin server and connect using port 119 on Pan to your localhost, which is 127.0.0.1. The page is for SMTP, but no reason why you couldn't set it up for NNTP, I have done so in Windows with WinVn. http://www.charlestonsw.com/setting-up-stunnel-on-linux/ This thread says Pan has native support for ssl over port 563, so I don't know why you can't make it work and forget stunnel. http://ubuntuforums.org/showthread.php?t=2134287 I've connected to Mixmin in Thunderbird on linux, which comes with Ubuntu. To me, that's the easiest, because all you have to do is specify SSL on port 563, but YMMV. whosbest54 -- The flamewars are over...if you want it. Unofficial rec.audio.opinion Usenet Group Brief User Guide: http://whosbest54.netau.net/rao.htm Unofficial rec.music.beatles Usenet Group Brief User Guide: http://whosbest54.netau.net/rmb.html If the pages time out, try whosbest54.netau.net in a site unblocker proxy like: http://www.site2unblock.com
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Steve Crook
Date: Fri, 27 Jun 2014 15:10
Date: Fri, 27 Jun 2014 15:10
37 lines
2520 bytes
2520 bytes
On Fri, 27 Jun 2014 13:48:50 +0000 (UTC), Daniel Webster wrote in Message-Id: <lojso1$oha$1@speranza.aioe.org>: > On Fri, 27 Jun 2014 08:47:25 +0000, Steve Crook wrote: > >> That looks correct. After you did that and started stunnel, did you >> point your newsreader to 127.0.0.1:119? > > No. It's not intuitive what to do to set up stunnel (nor that stunnel is > even needed, since Pan 0.139 is "supposed" to have SSL already). Sorry, I've not used Pan so I can't help you with that. Stunnel should work fine though. > None of this makes any logical sense to me, so I need to find > good step-by-step instructions... Stunnel works like a proxy. On the server side (your machine) it listens for incoming connections. This is determined by the "accept" line in your config file:- accept = 127.0.0.1:119 This means you have a service on your local machine listening on port 119. Stunnel has no idea what type of service it is, it just listens. The other side of Stunnel is an SSL client that connects to a (usually) remote service. This is defined by the "connect" line:- connect = news.mixmin.net:563 Put the two together and you have a tunnel from your machine (on port 119) to a remote machine on port 563. As far as your newsreader is concerned, it's talking to a news server located on your local machine. -- And with glasses high we raised a cry for freedom had arrived
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: whosbest54
Date: Fri, 27 Jun 2014 16:15
Date: Fri, 27 Jun 2014 16:15
33 lines
2213 bytes
2213 bytes
In article <lojso1$oha$1@speranza.aioe.org>, daniel@webster.com says... >On Fri, 27 Jun 2014 08:47:25 +0000, Steve Crook wrote: > >> That looks correct. After you did that and started stunnel, did you >> point your newsreader to 127.0.0.1:119? > >No. It's not intuitive what to do to set up stunnel (nor that stunnel is >even needed, since Pan 0.139 is "supposed" to have SSL already). > >None of this makes any logical sense to me, so I need to find >good step-by-step instructions... > I believe you only need to have these lines in the .conf file. [nntps] accept = 127.0.0.1:119 connect = news.mixmin.net:563 And set Pan to connect to 127.0.0.1 (or localhost) on port 119. whosbest54 -- The flamewars are over...if you want it. Unofficial rec.audio.opinion Usenet Group Brief User Guide: http://whosbest54.netau.net/rao.htm Unofficial rec.music.beatles Usenet Group Brief User Guide: http://whosbest54.netau.net/rmb.html If the pages time out, try whosbest54.netau.net in a site unblocker proxy like: http://www.site2unblock.com
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 21:04
Date: Fri, 27 Jun 2014 21:04
114 lines
6902 bytes
6902 bytes
On Fri, 27 Jun 2014 10:04:08 -0500, whosbest54 wrote: > This thread says Pan has native support for ssl over port 563, so I don't > know why you can't make it work and forget stunnel. > > http://ubuntuforums.org/showthread.php?t=2134287 Actually, it's really confusing whether Pan 0.139 has native support for SSL or not on Linux! Pan documentation may *say* it has native support, but, I'm not the first person to belatedly realize the documentation apparently lies. http://lists.gnu.org/archive/html/pan-users/2014-02/msg00048.html Mike Brown posted on Sun, 23 Feb 2014 21:15:11 -0600 as excerpted: > I have 0.133 on my Linux system, as it is an older version of Fedora. I > also have it un my XP laptop, but it is version 0.139. > > On the Linux system I was told that TSL/SSL was supported in 0.133 yet. > It is in the 0.139 that I have on the XP box. I believe you mean that you were told that TLS/SSL was *NOT* supported in 0.133 yet, correct? > But, my friend loaded 0.139, via yum, on his latest version of Fedora, > only to find that the security option doesn't exist in the news server > setup GUI. > > Any particular reason why it would be missing from the Linux GUI? The technical answer is that secure-connection support is a build-time option. Presumably, the packager who built and packaged that version either deliberately turned off the option, or simply left it at the default and didn't have the required deps (gnutls, or more precisely in binary distributions such as fedora that split the runtime libs from the components necessary to build packages depending on them, gnutls-dev(el), of the appropriate version) to activate that option available when he did the build. The political/legal answer (speaking as an interested non-lawyer layman, get qualified legal help if you need it!) likely behind the technical disabling is rather more complicated. Pan is licensed GPLv2 (only), not the recommended GPLv2 "or any later version".[1] The library currently providing the ssl/tls support is gnutls, which was in the past and is now again licensed with the compatible LGPLv2.1 with the recommended "or any later version" language, which is legally compatible. But there's a later version of both licenses, version 3. For a few versions (but no longer) gnutls was trying to switch to LGPLv3 or later and was shipping with that license (actually, the latest release apparently still is, the switch back appears to be only in unreleased code, ATM), updating from the LGPLv2.1. Unfortunately, LGPLv3 is legally incompatible with GPLv2 only, so distributors who cared about being legal had to disable pan's secure-connection support since pan's GPLv2 only license doesn't allow distribution when linked against the incompatible LGPLv3. A number of binary-based distro releases occurred during the period gnutls was licensed LGPLv3+ instead of LGPLv2+, and your friend's latest fedora very likely still ships a gnutls licensed LGPLv3+, so a binary-pan package shipped for that release won't legally be able to link to gnutls, and pan's secure-connection feature build option was likely disabled for that reason. Some later release will presumably ship a newer gnutls, again licensed LGPLv2+, and the binary-package pan shipped with it will again be able to legally enable the secure-connections build-time option. Meanwhile, it's worth noting that this legal restriction applies to "distributors" ((L)GPLv2.1 term) or "conveyors" ((L)GPLv3 term, chosen for broader international effect) of the software binaries, *NOT* to individual end-users and NOT to people distributing the source code only, no binaries. It's thus entirely legal from the GPL perspective for end- users to build their local package linking to whatever they want, including proprietary libraries of they so choose, as long as they don't distribute the resulting non-source binaries. (Of course, the license of whatever you're linking to would apply too, and many servantware distributors do certainly attempt to ban such linking from their side, but that's their side, not the GPLv2's side.) So you're legally free to download the pan code and build it yourself, activating that build-time option as you please, as long as you don't distribute the resulting binaries. Similarly, source-based distributions such as gentoo avoid having to worry about both this problem and most of the patent-related issues, since (with the exception of LiveCDs and the like) all they distribute is a framework and scripts to automate the build process, with the end-user actually doing the build and thus able to choose to enable or not based on where they live (some jurisdictions don't consider software patents valid, so they won't apply there, and if the user isn't distributing the binaries, those restrictions won't apply either). Since I'm a gentoo user and thus build pan myself, it can have gnutls/ secure-connections enabled without issue, as long as I don't distribute it. =:^) Meanwhile, pan's secure-connection feature legal history is actually rather longer and more complex than that (the original implementation was openssl, which is freedomware, but not GPL compatible either, thus the switch to gnutls, and there's also the twist with the GPLv2 licensed polarssl, considered as an option when gnutls first switched to LGPLv3 and the issue became known, before gnutls reverted to LGPLv2), but (speaking as an interested non-lawyer, get qualified legal help if you need it!) the above is a reasonably accurate description of the current situation. --- [1] Technically, pan's GPLv2 only license could be changed, but practically, the effort required to do so isn't worth it.
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 21:35
Date: Fri, 27 Jun 2014 21:35
17 lines
1559 bytes
1559 bytes
On Fri, 27 Jun 2014 11:15:04 -0500, whosbest54 wrote: > I believe you only need to have these lines in the .conf file. > [nntps] > accept = 127.0.0.1:119 > connect = news.mixmin.net:563 > And set Pan to connect to 127.0.0.1 (or localhost) on port 119. On the web, instructions say to add nntp to a file called "host.allow". Why would this be necessary? What does it do? $ sudo vi /etc/hosts.allow nntp: 127.0.0.1
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: whosbest54
Date: Fri, 27 Jun 2014 21:37
Date: Fri, 27 Jun 2014 21:37
34 lines
2279 bytes
2279 bytes
In article <lojso1$oha$1@speranza.aioe.org>, daniel@webster.com says... >On Fri, 27 Jun 2014 08:47:25 +0000, Steve Crook wrote: > >> That looks correct. After you did that and started stunnel, did you >> point your newsreader to 127.0.0.1:119? > >No. It's not intuitive what to do to set up stunnel (nor that stunnel is >even needed, since Pan 0.139 is "supposed" to have SSL already). > >None of this makes any logical sense to me, so I need to find >good step-by-step instructions... > I just found out, and I think you figured out that the Ubuntu repository build doesn't support SSL/TSL. https://launchpad.net/ubuntu/+source/pan/0.139-2 "updated NEWS to warn about SSL/TLS drop" You'll have to use stunnel to make it work with Mixmin. whosbest54 -- The flamewars are over...if you want it. Unofficial rec.audio.opinion Usenet Group Brief User Guide: http://whosbest54.netau.net/rao.htm Unofficial rec.music.beatles Usenet Group Brief User Guide: http://whosbest54.netau.net/rmb.html If the pages time out, try whosbest54.netau.net in a site unblocker proxy like: http://www.site2unblock.com
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 21:47
Date: Fri, 27 Jun 2014 21:47
27 lines
1930 bytes
1930 bytes
On Fri, 27 Jun 2014 16:37:09 -0500, whosbest54 wrote: > I just found out, and I think you figured out that the Ubuntu repository > build doesn't support SSL/TSL. > > https://launchpad.net/ubuntu/+source/pan/0.139-2 > > "updated NEWS to warn about SSL/TLS drop" > > You'll have to use stunnel to make it work with Mixmin. Thanks for confirming that! It confused the hell out of me that Pan documentation implied that Pan 0.139 supported SSL, but that mixmin didn't work. There were also some dire implications on the web, but, who knew if that information was correct. Now you've confirmed what seems, only in frustrating hindsight, painfully obvious. The Ubuntu build of Pan 0.139 does *not* support SSL (without stunnel). Thanks for confirming that, as it was bothering me why it wouldn't work!
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Silent Knight
Date: Fri, 27 Jun 2014 21:50
Date: Fri, 27 Jun 2014 21:50
6 lines
1639 bytes
1639 bytes
Daniel Webster wrote, on Fri, 27 Jun 2014 21:47:49 +0000: > The Ubuntu build of Pan 0.139 does *not* support SSL So does that mean that ubuntu will never work with mixmin?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 22:10
Date: Fri, 27 Jun 2014 22:10
31 lines
2350 bytes
2350 bytes
On Fri, 27 Jun 2014 21:50:00 +0000, Silent Knight wrote: > So does that mean that ubuntu will never work with mixmin? You would think a modern OS such as Ubuntu would handle this natively, but it apparently doesn't. At least not without a lot of setup. It's not enough to just install & set up pan. It's not enough to install & set up stunnel. It's not enough to research & create a stunnel.conf file. It's not enough to add to the hosts.allow file (why it's required, I don't know). You have to also create a private and public key. I have *never* in my life created a public and private key, so, I have to figure out *why* stunnel requires this when nothing else requires it (e.g., not Tor, not https, not Truecrypt, etc.). Apparently these commands have to be modified for Ubuntu 13.10 to work: $ openssl genrsa -out priv.pem $ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 How to modify them, I don't know. I don't even have an idea *why* these commands are needed, nor, why stunnel doesn't just supply whatever keys it needs, nor even how to answer the prompts from that last "openssl" command above. So, it's still not working yet ... but, with your help, I'm getting closer.
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 27 Jun 2014 22:23
Date: Fri, 27 Jun 2014 22:23
27 lines
1978 bytes
1978 bytes
On Fri, 27 Jun 2014 00:36:31 -0400, kensi wrote: > You may need to run your news app through stunnel to get it to work > with mixmin, as according to the irregularly posted faq here, mixmin > requires SSL. It's worse than that. Much worse than that. I've belatedly learned that Pan 0.139 is "supposed" to have SSL built in, but the Ubuntu version of Pan 0.139 does not have SSL built in. Then, I've come to realize that a whole bunch of things that nobody tells you has to be done to get stunnel to work with nntp. For example, you have a to add lines to hosts.allow even though you've never touched that file in your entire life. And, you have to create keys, and, worse yet, you have to combine those keys into a single file with a certain syntax unknown to you, in order to make stunnel work. None of this stuff is obvious - so - I'm still working on it as we speak. You'd think this would be easier - but I'm working it with your advice.
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Michael Baeuerle
Date: Sat, 28 Jun 2014 10:24
Date: Sat, 28 Jun 2014 10:24
66 lines
3787 bytes
3787 bytes
Daniel Webster wrote: > Silent Knight wrote: > > > > So does that mean that ubuntu will never work with mixmin? > > You would think a modern OS such as Ubuntu would handle > this natively, but it apparently doesn't. > > At least not without a lot of setup. > > It's not enough to just install & set up pan. > It's not enough to install & set up stunnel. > It's not enough to research & create a stunnel.conf file. > It's not enough to add to the hosts.allow file (why it's required, I don't know). There surely was a good reason to disable the internal TLS support of Pan. Maybe it was broken or contained security vulnerabilities. > You have to also create a private and public key. > > I have *never* in my life created a public and private key, so, > I have to figure out *why* stunnel requires this when nothing else > requires it (e.g., not Tor, not https, not Truecrypt, etc.). And this should not be required for most client application including NNTP newsreaders. > Apparently these commands have to be modified for Ubuntu 13.10 to work: > $ openssl genrsa -out priv.pem > $ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 What you are doing here is creating your own X509 certificate. This is likely no good idea and may not work if the result will be a self-signed certificate (nobody will trust it). > How to modify them, I don't know. > > I don't even have an idea *why* these commands are needed, nor, why stunnel > doesn't just supply whatever keys it needs, nor even how to answer the > prompts from that last "openssl" command above. X509 certificates can be used for TLS connnections by both peers for authentication. But in nearly all cases, only the server use them to authenticate itself to the client (by using a certificate that is signed by an official CA the client has to trust). The client to server authentication for NNTPS connections is normally done simply with username and password (AUTHINFO USER extension). > So, it's still not working yet ... Maybe you should first check the TLS connection with the "openssl s_client" tool. Look at the openssl_s_client(1) man page. There are also many examples available via Internet. If OpenSSL can establish an encrypted connection to your server, you can try to let stunnel do that for you and to let Pan do the client to server authentication the same way as without TLS. [Xpost reduced to news.software.nntp] Micha -- http://micha.freeshell.org/
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: whosbest54
Date: Sat, 28 Jun 2014 11:57
Date: Sat, 28 Jun 2014 11:57
56 lines
3347 bytes
3347 bytes
In article <lokq4r$8md$1@speranza.aioe.org>, daniel@webster.com says... >On Fri, 27 Jun 2014 21:50:00 +0000, Silent Knight wrote: > >> So does that mean that ubuntu will never work with mixmin? > >You would think a modern OS such as Ubuntu would handle >this natively, but it apparently doesn't. > >At least not without a lot of setup. > >It's not enough to just install & set up pan. >It's not enough to install & set up stunnel. >It's not enough to research & create a stunnel.conf file. >It's not enough to add to the hosts.allow file (why it's required, I don't know). > >You have to also create a private and public key. > >I have *never* in my life created a public and private key, so, >I have to figure out *why* stunnel requires this when nothing else >requires it (e.g., not Tor, not https, not Truecrypt, etc.). > >Apparently these commands have to be modified for Ubuntu 13.10 to work: >$ openssl genrsa -out priv.pem >$ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 > >How to modify them, I don't know. > >I don't even have an idea *why* these commands are needed, nor, why stunnel >doesn't just supply whatever keys it needs, nor even how to answer the >prompts from that last "openssl" command above. > >So, it's still not working yet ... but, with your help, I'm getting closer. > Yeah, this is more complicated then I thought in Ubuntu. In Windows it's a snap. This page seems to cover all the complicated steps as you found: http://blog.trebacz.com/2012/03/installing-stunnel-to-enable-ssl.html Seems more trouble than it's worth. Why not just use Thunderbird for Mixmin? Anyway, if you get it to work, let us know. whosbest54 -- The flamewars are over...if you want it. Unofficial rec.audio.opinion Usenet Group Brief User Guide: http://whosbest54.netau.net/rao.htm Unofficial rec.music.beatles Usenet Group Brief User Guide: http://whosbest54.netau.net/rmb.html If the pages time out, try whosbest54.netau.net in a site unblocker proxy like: http://www.site2unblock.com
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Sat, 28 Jun 2014 14:40
Date: Sat, 28 Jun 2014 14:40
160 lines
7006 bytes
7006 bytes
On Sat, 28 Jun 2014 06:57:51 -0500, whosbest54 wrote:
> Anyway, if you get it to work, let us know.
Thanks for all your help and advice!
I finally got mixmin to work with Pan 0.139 on Ubuntu.
See details below - and please explain what is incomprehensible to
me, since I was mostly just shooting around blindly trying to get
it to work.
The trick was that multiple files had to be changed in multiple ways,
few of which were intuitive - and - if we can believe Pan documentation
(which we can't), none of which should have been necessary in the first
place.
But, Pan with SSL pointing to mixmin seems to be working now on Ubuntu.
So that others may follow in my footsteps in a straighter line, here
is the sequence that I followed (with all the dead ends and u-turns
removed).
EnablePan 0.139 to work with mixmin & stunnel 4.53 on Ubuntu 13.10:
$ sudo apt-get install pan
Note that the Pan for Ubuntu is (oddly) missing SSL, so add SSL:
$ sudo apt-get install stunnel
Take look at the readme and sample files:
$ view /etc/stunnel/README
$ view /usr/share/doc/stunnel4/examples/stunnel.conf-sample
Change the default to start stunnel4 automatically upon reboot:
$ sudo vi /etc/default/stunnel4
Changed: ENABLED=0 to ENABLED=1
You must copy the suggested configuration file for stunnel to work:
$ sudo cp /usr/share/doc/stunnel4/examples/stunnel.conf-sample /etc/stunnel/stunnel.conf
I was not sure what settings to change, but there's nothing for nntp
by default, so I added the following (arbitrarily found by googling):
$ sudo vi /etc/stunnel/stunnel.conf
options = NO_SSLv2 <=== I have no idea if this is necessary
sslVersion = SSLv3 <=== I have no idea what this does
cert = /etc/ssl/certs/stunnel.pem <=== this doesn't even exist yet
chroot = /var/lib/stunnel4/ <=== who knows what this does?
setuid = stunnel4
setgid = stunnel4
pid = /stunnel4.pid
socket = l:TCP_NODELAY=1 <=== I don't know why this is here
socket = r:TCP_NODELAY=1 <=== Likewise, but it was suggested
compression = zlib <=== I don't even know if this does anything useful
[nntp] <=== this section is mandatory
client = yes <=== I'm not sure why, but this is apparently required
accept = localhost:119 <=== this is the key unintuitive redirect
connect = news.mixmin.net:563 <=== this is the only line that makes sense
Most tutorials wholly omitted this step, so I'm not sure if it's necessary:
$ sudo vi /etc/hosts.allow
nntp: 127.0.0.1
Interestingly, you have to make your own keys, so let's generate one:
$ mkdir /tmp/stunnel
$ cd /tmp/stunnel
$ openssl genrsa -out priv.pem
=> Generating RSA private key, 1024 bit long modulus
-> THIS creates ./priv.pem
I have no idea the implication of these keys, but, I'm just following steps:
$ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095
=> Country Name (2 letter code) [AU]:
=> State or Province Name (full name) [Some-State]:.
=> Locality Name (eg, city) []:
=> Organization Name (eg, company) [Internet Widgits Pty Ltd]:
=> Organizational Unit Name (eg, section) []:
=> Common Name (e.g. server FQDN or YOUR name) []:
=> Email Address []:
-> THIS creates ./stunnel.pem
Who knows why, but, you need to combine the two keys generated:
$ vi stunnel.pem
-> CHANGE FROM:
-----BEGIN CERTIFICATE-----
[encoded certificate scrambled eggs]
-----END CERTIFICATE-----
->CHANGE TO:
-----BEGIN RSA PRIVATE KEY-----
[encoded key scrambled eggs]
-----END RSA PRIVATE KEY-----
[empty line]
-----BEGIN CERTIFICATE-----
[encoded certificate scrambled eggs]
-----END CERTIFICATE-----
[empty line]
Now that you made keys, put them where stunnel is expecting them:
$ sudo mv stunnel.pem /etc/ssl/certs/stunnel.pem
$ chmod 600 /etc/ssl/certs/stunnel.pem
$ ls -l /etc/ssl/certs/stunnel.pem
-rw------- 1 x x 1886 Jun 27 07:06 /etc/ssl/certs/stunnel.pem
Finally, it's time to start Stunnel4:
$ stunnel4 -version
$ sudo /etc/init.d/stunnel4 start
=> Starting SSL tunnels: [Started: /etc/stunnel/stunnel.conf] stunnel.
And, now you can start pan 0.139:
$ pan --version
$ /usr/bin/pan &
Set up the Pan News Server:
Pan: Edit>Edit News Servers>Location>Address=localhost
Pan: Edit>Edit News Servers>Location>Port=119
Pan: Edit>Edit News Servers>Login>Username=blank
Pan: Edit>Edit News Servers>Login>Password=blank
Pan: Edit>Edit News Servers>Settings>Connection Limit=4
Pan: Edit>Edit News Servers>Settings>Expire Old Articles=After Three Months
Pan: Edit>Edit News Servers>Settings>Server Rank=Fallback
Set up the Pan Posting Profile:
Pan: Edit>Edit Posting Profiles>Profile Name=mixmin profile
Pan: Edit>Edit Posting Profiles>Full Name=Mix Min
Pan: Edit>Edit Posting Profiles>Email Address=mixmin@example.com
Pan: Edit>Edit Posting Profiles>Post Articles via:localhost
Doublecheck your work:
$ cat ~/.pan2/servers.xml
<?xml version="1.0" encoding="utf-8" ?>
<server-properties>
<server id="1">
<host>localhost</host>
<port>119</port>
<username></username>
<password></password>
<expire-articles-n-days-old>93</expire-articles-n-days-old>
<connection-limit>4</connection-limit>
<newsrc>newsrc-1</newsrc>
<rank>1</rank>
<use-ssl>0</use-ssl>
<trust>0</trust>
<cert></cert>
</server>
</server-properties>
$ cat ~/.pan2/posting.xml
<?xml version="1.0" encoding="utf-8" ?>
<posting>
<profiles>
<profile name="mixmin profile">
<username>Mix Min</username>
<address>mixmin@example.com</address>
<server>1</server>
<xface></xface>
<attribution>On %d, %n wrote:</attribution>
</profile>
</profiles>
</posting>
Once you've done those steps above, most of which I have no idea
what the impnlications are of, then, and only then, can you finally
post to a newsgroup using Mixmin with Pan 0.139 on Ubuntu 13.10.
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Mr.E
Date: Mon, 30 Jun 2014 12:00
Date: Mon, 30 Jun 2014 12:00
39 lines
2924 bytes
2924 bytes
On Fri, 27 Jun 2014 22:23:09 +0000 (UTC), Daniel Webster <daniel@webster.com> wrote: >On Fri, 27 Jun 2014 00:36:31 -0400, kensi wrote: > >> You may need to run your news app through stunnel to get it to work >> with mixmin, as according to the irregularly posted faq here, mixmin >> requires SSL. > >It's worse than that. > >Much worse than that. > >I've belatedly learned that Pan 0.139 is "supposed" to have SSL built >in, but the Ubuntu version of Pan 0.139 does not have SSL built in. > >Then, I've come to realize that a whole bunch of things that nobody >tells you has to be done to get stunnel to work with nntp. > >For example, you have a to add lines to hosts.allow even though you've >never touched that file in your entire life. > >And, you have to create keys, and, worse yet, you have to combine those >keys into a single file with a certain syntax unknown to you, in order >to make stunnel work. > >None of this stuff is obvious - so - I'm still working on it as we >speak. You'd think this would be easier - but I'm working it with >your advice. Try the following page: https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ssl-tunnel-using-stunnel-on-ubuntu I am using this on Agent 5 under wine on Xubuntu 14.04 without problems. Be sure to point your news program to the localhost on the port you set up in stunnel.conf. -- Mr.E
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Tue, 01 Jul 2014 13:19
Date: Tue, 01 Jul 2014 13:19
13 lines
1727 bytes
1727 bytes
On Sat, 28 Jun 2014 10:24:36 +0000, Michael Baeuerle wrote: >> $ openssl genrsa -out priv.pem >> $ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 > > What you are doing here is creating your own X509 certificate. This is > likely no good idea and may not work if the result will be a self-signed > certificate (nobody will trust it). I admit I was just blindly following instructions, but why did needing Pan to work with Mixmin *require* me to add to Ubuntu what you referred to as a "self-signed certificate", when this certificate could only be trusted by me (and certainly not Mixmin)?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Tue, 01 Jul 2014 13:26
Date: Tue, 01 Jul 2014 13:26
100 lines
4340 bytes
4340 bytes
On Sat, 28 Jun 2014 10:24:36 +0000, Michael Baeuerle wrote: > Maybe you should first check the TLS connection with the > "openssl s_client" tool. Look at the openssl_s_client(1) man page. > There are also many examples available via Internet. What finally worked was this sequence (which I don't fully understand what I did nor the Ubuntu security implications because creating open certificates was apparently required to get Pan to work with Mixmin only on Ubuntu (but not on other Linux distributions). Why Ubuntu is less secure than the other Linux distributions is an enigma to me, but, for others to follow, here's what finally worked! --- $ sudo apt-get install pan $ sudo apt-get install stunnel --- $ sudo vi /etc/default/stunnel4 Changed: ENABLED=0 to ENABLED=1 --- $ sudo cp /usr/share/doc/stunnel4/examples/stunnel.conf-sample /etc/stunnel/stunnel.conf $ sudo vi /etc/stunnel/stunnel.conf options = NO_SSLv2 sslVersion = SSLv3 cert = /etc/ssl/certs/stunnel.pem chroot = /var/lib/stunnel4/ setuid = stunnel4 setgid = stunnel4 pid = /stunnel4.pid socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 compression = zlib [nntp] client = yes accept = localhost:119 connect = news.mixmin.net:563 --- $ sudo vi /etc/hosts.allow nntp: 127.0.0.1 --- $ mkdir /tmp/stunnel $ cd /tmp/stunnel $ openssl genrsa -out priv.pem => Generating RSA private key, 1024 bit long modulus -> THIS creates ./priv.pem $ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 => Country Name (2 letter code) [AU]: => State or Province Name (full name) [Some-State]:. => Locality Name (eg, city) []: => Organization Name (eg, company) [Internet Widgits Pty Ltd]: => Organizational Unit Name (eg, section) []: => Common Name (e.g. server FQDN or YOUR name) []: => Email Address []: -> THIS creates ./stunnel.pem $ vi stunnel.pem -> CHANGE FROM: -----BEGIN CERTIFICATE----- [encoded certificate scrambled eggs] -----END CERTIFICATE----- ->CHANGE TO: -----BEGIN RSA PRIVATE KEY----- [encoded key scrambled eggs] -----END RSA PRIVATE KEY----- [empty line] -----BEGIN CERTIFICATE----- [encoded certificate scrambled eggs] -----END CERTIFICATE----- [empty line] --- $ sudo mv stunnel.pem /etc/ssl/certs/stunnel.pem $ chmod 600 /etc/ssl/certs/stunnel.pem $ ls -l /etc/ssl/certs/stunnel.pem -rw------- 1 x x 1886 Jun 27 07:06 /etc/ssl/certs/stunnel.pem --- $ stunnel4 -version --- $ sudo /etc/init.d/stunnel4 start => Starting SSL tunnels: [Started: /etc/stunnel/stunnel.conf] stunnel. --- Start pan 0.139: $ pan --version $ /usr/bin/pan & --- Pan: Edit>Edit News Servers>Location>Address=localhost Pan: Edit>Edit News Servers>Location>Port=119 Pan: Edit>Edit News Servers>Login>Username=blank Pan: Edit>Edit News Servers>Login>Password=blank Pan: Edit>Edit News Servers>Settings>Connection Limit=4 Pan: Edit>Edit News Servers>Settings>Expire Old Articles=After Three Months Pan: Edit>Edit News Servers>Settings>Server Rank=Fallback --- Pan: Edit>Edit Posting Profiles>Profile Name=mixmin profile Pan: Edit>Edit Posting Profiles>Full Name=Mix Min Pan: Edit>Edit Posting Profiles>Email Address=mixmin@example.com Pan: Edit>Edit Posting Profiles>Post Articles via:localhost ---
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Tue, 01 Jul 2014 13:33
Date: Tue, 01 Jul 2014 13:33
15 lines
1605 bytes
1605 bytes
On Mon, 30 Jun 2014 08:00:54 -0400, Mr.E wrote: > Try the following page: > https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ssl-tunnel-using-stunnel-on-ubuntu Aurgh! I had not known about that page until it was all over! Unfortunatly, that otherwise well-written page has nothing to do with nntp, so, one would still have to guess at the settings, but at least some of the confusion is ameliorated by the descriptions in that helpful stunnel setup page. BTW, how do we pronounce stunnel? stunnel or s-tunnel?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Tue, 01 Jul 2014 13:37
Date: Tue, 01 Jul 2014 13:37
18 lines
1733 bytes
1733 bytes
On Mon, 30 Jun 2014 08:00:54 -0400, Mr.E wrote: > Try the following page: > https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ssl-tunnel-using-stunnel-on-ubuntu If I remember correctly, I put garbage in all the questions when creating the certificate. But, then I see this admonishment on that suggested web page: "Note: When creating the certificate, you will be asked for some information such as country and state, which you can enter whatever you like but when asked for "Common Name" you must enter the correct host name or IP address of your droplet (VPS)." Should I have entered "mixmin" as the Common Name? And, what happens after 1095 days?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: John F. Morse
Date: Tue, 01 Jul 2014 20:10
Date: Tue, 01 Jul 2014 20:10
95 lines
4402 bytes
4402 bytes
Hi Daniel,
Please note these changes:
--- Inappropriate distribution
+++ Proper distribution
-news.software.nntp
-alt-free.newsservers
-alt.os.linux.ubuntu
+news.software.readers
+Followup-To: news.software.readers
On 07/01/2014 08:37 AM, Daniel Webster wrote:
> On Mon, 30 Jun 2014 08:00:54 -0400, Mr.E wrote:
>> Try the following page:
>> https://www.digitalocean.com/community/tutorials/how-to-set-up-an-ssl-tunnel-using-stunnel-on-ubuntu
> If I remember correctly, I put garbage in all the questions
> when creating the certificate.
Maybe that is why you only get trash instead of working software?
Use your real information. It is used to identify you and create the
certificate key.
After all, the purpose of a certificate is to verify you are whom you say you are.
> But, then I see this admonishment on that suggested web page:
> "Note: When creating the certificate, you will be asked for some
> information such as country and state, which you can enter
> whatever you like but when asked for "Common Name" you must
> enter the correct host name or IP address of your droplet (VPS)."
>
> Should I have entered "mixmin" as the Common Name?
No, but anything would work. It is for verifying the identity in the opposite
direction you are attempting to understand.
Mixmin would use "mixmin.net" for the CN so it would match the URL you would
use in your newsreader.
> And, what happens after 1095 days?
Where did that number originate? You must have told openssl req to use three
years (1095 days).
The default is 30 days as mentioned in the req(1ssl) man page. I had always
used 365, but got tired of leading a lot of my users by the hand annually, so
I used 1460 this time (four years).
sudo openssl req -new -x509 -nodes -out /etc/news/cert.pem -days 1460
-keyout /etc/news/key.pem
Anyway, the certificate will expire in "-days" and a new one would need to be
generated.
Mixmin (and other servers) provide the certificate for you to either accept or
reject.
Just accept it if you desire access. It's that simple.
I use Stunnel4 on several computers, and don't remember needing to create
anything (key, certificate, etc.). The only entry for NNTP goes like this
(using mixmin.net for an example):
; Use it for client mode
client = yes
[nntps]
accept = 119
connect = mixmin.net:563
Then configure your newsreader to use the server "localhost" and Port 119. If
you use multiple servers requiring Stunnel, use a different Port number for each.
I also use Pan, and do not remember needing Stunnel to access secure NNTP
sites. But I have several versions of Pan, and dozens of other newsreaders,
plus dozens of NSP accounts, and even still using Stunnel3 on one old Debian
Sarge server, so I can easily get mixed up about who does what to whom.
--
John
When a person has -- whether they knew it or not -- already
rejected the Truth, by what means do they discern a lie?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Michael Baeuerle
Date: Tue, 01 Jul 2014 20:34
Date: Tue, 01 Jul 2014 20:34
36 lines
2626 bytes
2626 bytes
Daniel Webster wrote: > Michael Baeuerle wrote: > > Daniel Webster wrote: > > > > > > $ openssl genrsa -out priv.pem > > > $ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 > > > > What you are doing here is creating your own X509 certificate. This is > > likely no good idea and may not work if the result will be a self-signed > > certificate (nobody will trust it). > > I admit I was just blindly following instructions, but why did needing > Pan to work with Mixmin *require* me to add to Ubuntu what you referred > to as a "self-signed certificate", when this certificate could only be > trusted by me (and certainly not Mixmin)? As John F. Morse wrote, it should not be required at all. In general for authentication the server present a certificate *to* you (that is signed by an official CA you have to trust). If the server want authentication *from* you, in general it will ask you for login and password. Yes, in theory you can use a certificate for this direction too (and yes, OpenSSL supports this for TLS in general). But the server need a trust anchor in this case (you need to pay a CA to check your identity and sign your certificate). If your certificate is only signed by yourself, this would be like if you say to the server: "I'm Daniel Webster, nobody else can confirm this". For the server this is useless, everybody can fake it and the server has no possibility to verify. [Xpost reduced again] Micha -- http://micha.freeshell.org/
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Thu, 03 Jul 2014 23:35
Date: Thu, 03 Jul 2014 23:35
39 lines
3395 bytes
3395 bytes
On Tue, 01 Jul 2014 13:26:54 +0000, Daniel Webster wrote: > What finally worked was this sequence (which I don't fully understand > what I did nor the Ubuntu security implications because creating open > certificates was apparently required to get Pan to work with Mixmin only > on Ubuntu (but not on other Linux distributions). The mixmin working worked for about a dozen posts, but, it didn't survive a reboot, even though it should have. For sure, stunnel is running (at least a half-dozen times!): $ ps auxww|grep stunnel stunnel4 1092 0.0 0.0 40340 1088 ? S 14:48 0:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1093 0.0 0.0 40340 620 ? S 14:48 0:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1094 0.0 0.0 40340 620 ? S 14:48 0:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1095 0.0 0.0 40340 620 ? S 14:48 0:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1096 0.0 0.0 40340 620 ? S 14:48 0:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1097 0.0 0.0 105944 1448 ? Ss 14:48 0:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf Yet, even though Pan *was* working with stunnel, without changing anything, mixmin just stopped working. Pan reports that activities are queued forever. The /var/log/syslog file reports various mixmin related issues: Jul 3 16:21:26 dan stunnel: LOG5[1097:140084656994048]: Service [nntp] accepted connection from 127.0.0.1:56356 Jul 3 16:21:26 dan stunnel: LOG3[1097:140084656994048]: Error resolving 'news.mixmin.net': Neither nodename nor servname known (EAI_NONAME) Jul 3 16:21:26 dan stunnel: LOG3[1097:140084656994048]: No host resolved Jul 3 16:21:26 dan stunnel: LOG5[1097:140084656994048]: Connection reset: 0 byte(s) sent to SSL, 0 byte(s) sent to socket Yet, news.mixmin.net resolves, at least to a ping: $ ping news.mixmin.net PING news.mixmin.net (188.40.76.149) 56(84) bytes of data. 64 bytes from snorky.mixmin.net (188.40.76.149): icmp_seq=1 ttl=52 time=182 ms 64 bytes from snorky.mixmin.net (188.40.76.149): icmp_seq=2 ttl=52 time=185 ms 64 bytes from snorky.mixmin.net (188.40.76.149): icmp_seq=3 ttl=52 time=180 ms etc. Why would mixmin work yesterday, but not today, when nothing should have changed?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Fri, 04 Jul 2014 01:57
Date: Fri, 04 Jul 2014 01:57
47 lines
2469 bytes
2469 bytes
On Fri, 27 Jun 2014 02:27:38 +0000, Daniel Webster wrote: > I am using Aioe.org and it works just fine, but I can't seem to > get mixmin to work as a news server. I give up on stunnel and mixmin. After days of setting it up, it was working fine. For about a day. Then it just suddenly quit working. After spending hours trying to resurrect it, I gave up. I'm running the apt-get to remove stunnel now: $ sudo apt-get remove stunnel4 Guess what? It doesn't remove *anything*! Neither does $ sudo apt-get remove stunnel All the files are left, to be manually removed. Why do they even have an option for apt-get remove? This appears to do absolutely nothing! $ sudo apt-get remove stunnel stunnel4 This is how I had to remove stunnel: $ sudo rm -rf /etc/stunnel/ $ sudo rm /etc/default/stunnel4 $ sudo rm /etc/init.d/stunnel4 $ sudo rm /etc/logrotate.d/stunnel4 $ sudo rm /etc/logrotate.d/stunnel4 $ sudo rm /etc/ppp/ip-down.d/0stunnel4 $ sudo rm /etc/ppp/ip-up.d/0stunnel4 $ sudo rm /etc/rc0.d/K20stunnel4 $ sudo rm /etc/rc1.d/K20stunnel4 $ sudo rm /etc/rc2.d/S20s:tunnel4 $ sudo rm /etc/rc3.d/S20stunnel4 $ sudo rm /etc/rc4.d/S20stunnel4 $ sudo rm /etc/rc5.d/S20stunnel4 $ sudo rm /etc/rc6.d/K20stunnel4 $ sudo rm /etc/ssl/certs/stunnel.pem $ sudo rm -rf /var/lib/stunnel4/ $ sudo rm /var/lib/dpkg/info/stunnel4.list $ sudo rm /var/lib/dpkg/info/stunnel4.postrm $ sudo rm -rf /var/log/stunnel4/ $ sudo rm /etc/hosts.allow
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Angel Rodriguez
Date: Fri, 04 Jul 2014 03:07
Date: Fri, 04 Jul 2014 03:07
12 lines
1407 bytes
1407 bytes
On Fri, 04 Jul 2014 01:57:00 +0000, Daniel Webster wrote: > I give up on stunnel and mixmin. While I admire your tenacity, you're dealing with POS software on a POS operating system with POS repositories and POS support. Probably nobody reading this has /ever/ gotten stunnel to work with Pan on Ubuntu, so what makes /you/ think you can? You can't.
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Wildman
Date: Fri, 04 Jul 2014 03:39
Date: Fri, 04 Jul 2014 03:39
32 lines
2231 bytes
2231 bytes
On Fri, 04 Jul 2014 01:57:00 +0000, Daniel Webster wrote: > On Fri, 27 Jun 2014 02:27:38 +0000, Daniel Webster wrote: > >> I am using Aioe.org and it works just fine, but I can't seem to >> get mixmin to work as a news server. > > I give up on stunnel and mixmin. > After days of setting it up, it was working fine. > For about a day. > Then it just suddenly quit working. > After spending hours trying to resurrect it, I gave up. > > I'm running the apt-get to remove stunnel now: > $ sudo apt-get remove stunnel4 > > Guess what? > It doesn't remove *anything*! > Neither does > $ sudo apt-get remove stunnel > > All the files are left, to be manually removed. > Why do they even have an option for apt-get remove? > > This appears to do absolutely nothing! > $ sudo apt-get remove stunnel stunnel4 You need to use: apt-get purge -- <Wildman> GNU/Linux user #557453 The cow died so I don't need your bull!
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Ralf Döblitz
Date: Fri, 04 Jul 2014 12:55
Date: Fri, 04 Jul 2014 12:55
28 lines
2568 bytes
2568 bytes
Daniel Webster <daniel@webster.com> wrote: > On Fri, 27 Jun 2014 02:27:38 +0000, Daniel Webster wrote: > >> I am using Aioe.org and it works just fine, but I can't seem to >> get mixmin to work as a news server. > > I give up on stunnel and mixmin. > After days of setting it up, it was working fine. > For about a day. > Then it just suddenly quit working. > After spending hours trying to resurrect it, I gave up. > > I'm running the apt-get to remove stunnel now: > $ sudo apt-get remove stunnel4 > > Guess what? > It doesn't remove *anything*! I sincerely doubt that, it will have removed the binary. If you want to remove the configuration files, too, you habe to use "purge", not "remove". Know thy tools! Ralf -- [Abhängen von Kruzifixen in Rechnerräumen] Nicht opportun. Normalerweise haengt an diesen Kruzifixen ja schon jemand. Wurde Jesus gelartet?  – Jens Chr. Bachem in de.alt.sysadmin.recovery
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: kensi
Date: Sun, 06 Jul 2014 10:13
Date: Sun, 06 Jul 2014 10:13
16 lines
1915 bytes
1915 bytes
On 27/06/2014 6:10 PM, Daniel Webster wrote: > You have to also create a private and public key. > > I have *never* in my life created a public and private key, so, > I have to figure out *why* stunnel requires this when nothing else > requires it (e.g., not Tor, not https, not Truecrypt, etc.). It must want that just in case a server requests a client-side certificate, which "almost never" happens. -- "To explain the unknown by the known is a logical procedure; to explain the known by the unknown is a form of theological lunacy." ~David Brooks "I get fooled all the time by the constant hosiery parade in here." ~Checkmate
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Ray Banana
Date: Sun, 06 Jul 2014 11:06
Date: Sun, 06 Jul 2014 11:06
39 lines
3108 bytes
3108 bytes
On 7606 September 1993, Daniel Webster wrote: > It's not enough to just install & set up pan. > It's not enough to install & set up stunnel. > It's not enough to research & create a stunnel.conf file. > It's not enough to add to the hosts.allow file (why it's required, I don't know). > > You have to also create a private and public key. > > I have *never* in my life created a public and private key, so, > I have to figure out *why* stunnel requires this when nothing else > requires it (e.g., not Tor, not https, not Truecrypt, etc.). You are actually trying to set up an SSL enabled *server* (stunnel) and SSL enabled servers always require a server certificate (HTTPS, NNTP over SSL, TOR, IMAPS etc). > Apparently these commands have to be modified for Ubuntu 13.10 to work: > $ openssl genrsa -out priv.pem > $ openssl req -new -x509 -key priv.pem -out stunnel.pem -days 1095 > How to modify them, I don't know. > I don't even have an idea *why* these commands are needed, nor, why stunnel > doesn't just supply whatever keys it needs, nor even how to answer the > prompts from that last "openssl" command above. > So, it's still not working yet ... but, with your help, I'm getting closer. If it's beyond your skills to create an SSL server certificate, please consider using an SSL capable news client like Sylpheed or Claws rather than trying to make Pan work over a local stunnel server. You could also compile an SSL capable Pan client from the sources, but I doubt you will be able to set up all the requisite packages needed to build Pan on your Ubuntu system. -- Time flies like an arrow, fruit flies like a Banana. http://www.eternal-september.org
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Steve Crook
Date: Sun, 06 Jul 2014 13:16
Date: Sun, 06 Jul 2014 13:16
34 lines
2427 bytes
2427 bytes
On Fri, 27 Jun 2014 22:10:35 +0000 (UTC), Daniel Webster wrote in Message-Id: <lokq4r$8md$1@speranza.aioe.org>: > On Fri, 27 Jun 2014 21:50:00 +0000, Silent Knight wrote: > >> So does that mean that ubuntu will never work with mixmin? > > You would think a modern OS such as Ubuntu would handle > this natively, but it apparently doesn't. > > At least not without a lot of setup. > > It's not enough to just install & set up pan. > It's not enough to install & set up stunnel. > It's not enough to research & create a stunnel.conf file. > It's not enough to add to the hosts.allow file (why it's required, I don't know). > > You have to also create a private and public key. > > I have *never* in my life created a public and private key, so, > I have to figure out *why* stunnel requires this when nothing else > requires it (e.g., not Tor, not https, not Truecrypt, etc.). A couple of recent posts prompt me to ask: Have you got 'client = yes' in your stunnel config? Without this, stunnel will try to run as a server and will certainly require a key/cert. -- What shall we use To fill the empty spaces Where we used to talk?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Sun, 06 Jul 2014 13:48
Date: Sun, 06 Jul 2014 13:48
16 lines
1757 bytes
1757 bytes
On Sun, 06 Jul 2014 13:06:47 +0200, Ray Banana wrote: > You are actually trying to set up an SSL enabled *server* (stunnel) and > SSL enabled servers always require a server certificate (HTTPS, NNTP > over SSL, TOR, IMAPS etc). Thank you very much for explaining that. I finally got mixmin to work with Pan on Ubuntu, as you noted, by creating & verifying my own certificate (if I'm using the technical words right). Is there any downside to having my very own SSL server & self-signed certificate (e.g., security loopholes?) that I should be aware of?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Sun, 06 Jul 2014 13:50
Date: Sun, 06 Jul 2014 13:50
12 lines
1623 bytes
1623 bytes
On Sat, 28 Jun 2014 10:24:36 +0000, Michael Baeuerle wrote: > What you are doing here is creating your own X509 certificate. This is > likely no good idea and may not work if the result will be a self-signed > certificate (nobody will trust it). I understood what you said, which was that a self-signed certificate can't be trusted (and I agree with you), but, then, why does Mixmin require it and why does Mixmin trust it? Does it simply act like a login/password would?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Sun, 06 Jul 2014 13:54
Date: Sun, 06 Jul 2014 13:54
31 lines
1921 bytes
1921 bytes
On Sun, 06 Jul 2014 13:16:59 +0000, Steve Crook wrote: > A couple of recent posts prompt me to ask: Have you got > 'client = yes' > in your stunnel config? > > Without this, stunnel will try to run as a server and will certainly > require a key/cert. Good question. Here's my /etc/stunnel/stunnel.conf file (with comments removed): options = NO_SSLv2 sslVersion = SSLv3 cert = /etc/ssl/certs/stunnel.pem chroot = /var/lib/stunnel4/ setuid = stunnel4 setgid = stunnel4 pid = /stunnel4.pid socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 compression = zlib [nntp] client = yes accept = localhost:119 connect = news.mixmin.net:563 Most of these I am not sure what I should use as I was just picking from the examples, but no one tutorial or example workd - so this is a mixmash (relatively arbitrary).
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Steve Crook
Date: Sun, 06 Jul 2014 14:44
Date: Sun, 06 Jul 2014 14:44
67 lines
3118 bytes
3118 bytes
On Sun, 6 Jul 2014 13:54:56 +0000 (UTC), Daniel Webster wrote in Message-Id: <lpbkfg$no5$1@speranza.aioe.org>: > On Sun, 06 Jul 2014 13:16:59 +0000, Steve Crook wrote: > >> A couple of recent posts prompt me to ask: Have you got >> 'client = yes' >> in your stunnel config? >> >> Without this, stunnel will try to run as a server and will certainly >> require a key/cert. > > Good question. > Here's my /etc/stunnel/stunnel.conf file (with comments removed): > > options = NO_SSLv2 > sslVersion = SSLv3 > cert = /etc/ssl/certs/stunnel.pem > chroot = /var/lib/stunnel4/ > setuid = stunnel4 > setgid = stunnel4 > pid = /stunnel4.pid > socket = l:TCP_NODELAY=1 > socket = r:TCP_NODELAY=1 > compression = zlib > [nntp] > client = yes > accept = localhost:119 > connect = news.mixmin.net:563 > > Most of these I am not sure what I should use as I was just > picking from the examples, but no one tutorial or example > workd - so this is a mixmash (relatively arbitrary). I think some of your options are in the wrong places. There are global options that go at the top of the file and service options that are preceded by square brackets (e.g. [nntp]). You have the following in the global section but they're Service Options:- options = NO_SSLv2 sslVersion = SSLv3 cert = /etc/ssl/certs/stunnel.pem Your config is more complex than I've previously seen for stunnel but that's probably because the packaged version of stunnel you're using specifies some defaults, (Such as running in a chroot jail). I'd suggest trying it with this:- chroot = /var/lib/stunnel4/ setuid = stunnel4 setgid = stunnel4 pid = /stunnel4.pid socket = l:TCP_NODELAY=1 socket = r:TCP_NODELAY=1 [nntp] client = yes options = NO_SSLv2 accept = localhost:119 connect = news.mixmin.net:563 If that works, you could try adding back in options like compression. -- And with glasses high we raised a cry for freedom had arrived
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Michael Baeuerle
Date: Sun, 06 Jul 2014 16:40
Date: Sun, 06 Jul 2014 16:40
32 lines
2599 bytes
2599 bytes
Daniel Webster wrote: > Michael Baeuerle wrote: > > > > What you are doing here is creating your own X509 certificate. This is > > likely no good idea and may not work if the result will be a self-signed > > certificate (nobody will trust it). > > I understood what you said, which was that a self-signed certificate can't > be trusted (and I agree with you), but, then, why does Mixmin require it > and why does Mixmin trust it? I don't believe that they will trust your self signed certificate. > Does it simply act like a login/password would? I don't use Mixmin and I don't know what authentication algorithms they accept. Yes, in general it is possible that both ends of a TLS connection present a X509 certificate for authentication to each other. But for a USENET server this is absolutely unusual and therefore I think you don't need to create a certificate for the *client* side. As Ray Banana stated in his article, it is most likely that you have misconfigured stunnel. If it should provide a TLS connection for a server process, it needs to present a certificate (that the remote client can check for authentication). But if it should provide a TLS connection for a client process, in general it is sufficient if it check the certificate received *from* the server (and provide no own certificate *to* the server itself). The authentication in this direction is normally done via login/password. Micha
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: John F. Morse
Date: Mon, 07 Jul 2014 01:36
Date: Mon, 07 Jul 2014 01:36
44 lines
2896 bytes
2896 bytes
On 07/06/2014 08:50 AM, Daniel Webster wrote: > On Sat, 28 Jun 2014 10:24:36 +0000, Michael Baeuerle wrote: > >> What you are doing here is creating your own X509 certificate. This is >> likely no good idea and may not work if the result will be a self-signed >> certificate (nobody will trust it). > I understood what you said, which was that a self-signed certificate can't > be trusted (and I agree with you), but, then, why does Mixmin require it > and why does Mixmin trust it? A self-signed certificate simply means the person issuing it chose to not pay hundreds of dollars for some commercial CA to issue it. It is not that you cannot "trust" a self-signed certificate. You just cannot "trust" that the certificate is issued by someone you can trust. Mixmin trusts it because they create it. If you believe the certificate is indeed from Mixmin, and your connection hasn't been rerouted by some bad guy, then you accept the certificate. Otherwise you need to reevaluate your desire to use the service. > Does it simply act like a login/password would? No. You need to connect first, using some form of TLS/SSL, before you are allowed to submit a password. The TLS/SSL is to protect your credentials (authentication of username and password) from being sniffed en route. Read more here: http://en.wikipedia.org/wiki/Certificate_Authority -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: John F. Morse
Date: Mon, 07 Jul 2014 03:39
Date: Mon, 07 Jul 2014 03:39
89 lines
4377 bytes
4377 bytes
On 07/06/2014 09:44 AM, Steve Crook wrote: > On Sun, 6 Jul 2014 13:54:56 +0000 (UTC), Daniel Webster wrote in > Message-Id: <lpbkfg$no5$1@speranza.aioe.org>: > >> On Sun, 06 Jul 2014 13:16:59 +0000, Steve Crook wrote: >> >>> A couple of recent posts prompt me to ask: Have you got >>> 'client = yes' >>> in your stunnel config? >>> >>> Without this, stunnel will try to run as a server and will certainly >>> require a key/cert. >> Good question. >> Here's my /etc/stunnel/stunnel.conf file (with comments removed): >> >> options = NO_SSLv2 >> sslVersion = SSLv3 >> cert = /etc/ssl/certs/stunnel.pem >> chroot = /var/lib/stunnel4/ >> setuid = stunnel4 >> setgid = stunnel4 >> pid = /stunnel4.pid >> socket = l:TCP_NODELAY=1 >> socket = r:TCP_NODELAY=1 >> compression = zlib >> [nntp] >> client = yes >> accept = localhost:119 >> connect = news.mixmin.net:563 >> >> Most of these I am not sure what I should use as I was just >> picking from the examples, but no one tutorial or example >> workd - so this is a mixmash (relatively arbitrary). > I think some of your options are in the wrong places. There are global > options that go at the top of the file and service options that are > preceded by square brackets (e.g. [nntp]). > > You have the following in the global section but they're Service > Options:- > > options = NO_SSLv2 > sslVersion = SSLv3 > cert = /etc/ssl/certs/stunnel.pem > > Your config is more complex than I've previously seen for stunnel but > that's probably because the packaged version of stunnel you're using > specifies some defaults, (Such as running in a chroot jail). I'd > suggest trying it with this:- > > chroot = /var/lib/stunnel4/ > setuid = stunnel4 > setgid = stunnel4 > pid = /stunnel4.pid > socket = l:TCP_NODELAY=1 > socket = r:TCP_NODELAY=1 > > [nntp] > client = yes > options = NO_SSLv2 > accept = localhost:119 > connect = news.mixmin.net:563 > > If that works, you could try adding back in options like compression. Steve, please let these people know just what CN you used when you created your certificate, so it will match what they are expecting to see coming from you. news.mixmin.net -- or -- mixmin.net You can use gcr-viewer which is part of the gcr package. Reasoning: I use a local BIND9 DNS server on my LAN to resolve the many hostnames on my LAN. If I create a certificate and use the FQDN -- which includes the local hostname -- many of my users will not be able to connect when using any other FQDN (the FQDN the Internet DNS knows). So I cannot include it in the CN. That means for access by me, from a client on my LAN, I have to use port 119 and unencrypted. That is not a problem because port 119 is not routed from the WAN to any LAN client. and nobody will be sniffing my authentication. -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Mon, 07 Jul 2014 18:51
Date: Mon, 07 Jul 2014 18:51
30 lines
2168 bytes
2168 bytes
On Sun, 06 Jul 2014 22:39:01 -0500, John F. Morse wrote: > news.mixmin.net -- or -- mixmin.net Yikes. When I'm creating the certificate to get stunnel to work, am I supposed to put in the Mixmin domain or mine when it asks: $ openssl genrsa -out privatekey.pem => Generating RSA private key, 1024 bit long modulus -> THIS creates ./priv.pem $ openssl req -new -x509 -key privatekey.pem -out certificate.pem -days 1095 => Country Name (2 letter code) [AU]: => State or Province Name (full name) [Some-State]:. => Locality Name (eg, city) []: => Organization Name (eg, company) [Internet Widgits Pty Ltd]: => Organizational Unit Name (eg, section) []: => Common Name (e.g. server FQDN or YOUR name) []: => Email Address []: -> THIS creates ./certificate.pem Combine the two keys: $ cat privatekey.pem certificate.pem >> stunnel.pem Which question above is the one which requires the correct Mixmin fully qualified domain name? Is it the "Common Name" question? (Why am I creating certificates anyway?)
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Wed, 09 Jul 2014 02:32
Date: Wed, 09 Jul 2014 02:32
61 lines
2950 bytes
2950 bytes
On Tue, 08 Jul 2014 08:54:00 +0000, Steve Crook wrote: > I've just installed stunnel on another machine and connected to > news.mixmin.net. Here are the steps:- Hi Steve, Thanks for documenting & testing that installation sequence. Yours is so much simpler than what I went through on Ubuntu. QUESTION1: Can you confirm that you have nothing related in your host.allow? QUESTION2: It looks like you confirmed there is no need for a certificate, correct? QUESTION3: Would you confirm that you didn't need any of those settings in the stunnel.conf file, such as sslVersion, cert, chroot, setuid, setgid, pid, socket, etc? If it was always this simple, then, somehow, I made it complicated when it didn't need to be (but, in my defence, I never saw a stunnel-with-pan tutorial as simple as your setup below). Thanks a lot Steve, as the answer to this question will help a *lot* of other Linux users! I'm going to change my configuration now and see if a test message will work from 64-bit Ubuntu 13.10. > I've just installed stunnel on another machine and connected to > news.mixmin.net. Here are the steps:- > > Install Stunnel:- > apt-get update > apt-get install stunnel > > Create a config file:- > vi /etc/stunnel/nntp.conf > [nntp] > client = yes > accept = 127.0.0.1:119 > connect = news.mixmin.net:563 > > Enable Stunnel:- > vi /etc/default/stunnel > ENABLED=1 > > Start Stunnel:- > /etc/init.d/stunnel start > > Test connectivity:- > $ telnet localhost 119 > Trying ::1... > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20140315 > prerelease) ready (posting ok) > quit > 205 Bye!
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Wed, 09 Jul 2014 02:42
Date: Wed, 09 Jul 2014 02:42
54 lines
2421 bytes
2421 bytes
On Wed, 09 Jul 2014 02:32:44 +0000, Daniel Webster wrote: > I'm going to change my configuration now and see if a test > message will work from 64-bit Ubuntu 13.10. Drat. Here are my results: http://i58.tinypic.com/2m4qb2c.png After changing the setup, & rebooting, I get in Pan the error: Error Reading From Localhost: Connection Reset by Peer. Maybe though, my system is thoroughly hosed, since I have tried so many things to get Mixmin working. $ telnet localhost 119 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. Since mine is failing, would someone on the Ubuntu group who knows what he's doing try these steps below please? Install Stunnel:- apt-get update apt-get install stunnel Create a config file:- vi /etc/stunnel/nntp.conf [nntp] client = yes accept = 127.0.0.1:119 connect = news.mixmin.net:563 Enable Stunnel:- vi /etc/default/stunnel ENABLED=1 Start Stunnel:- /etc/init.d/stunnel start Test connectivity:- $ telnet localhost 119 Trying ::1... Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. 200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20140315 prerelease) ready (posting ok) quit 205 Bye! Set up your news server: server:port localhost:119 login/password <blank>/<blank>
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Steve Crook
Date: Wed, 09 Jul 2014 08:17
Date: Wed, 09 Jul 2014 08:17
73 lines
3539 bytes
3539 bytes
On Wed, 9 Jul 2014 02:32:44 +0000 (UTC), Daniel Webster wrote in Message-Id: <lpi9kc$jmm$1@speranza.aioe.org>: > On Tue, 08 Jul 2014 08:54:00 +0000, Steve Crook wrote: > >> I've just installed stunnel on another machine and connected to >> news.mixmin.net. Here are the steps:- > > Hi Steve, > Thanks for documenting & testing that installation sequence. > Yours is so much simpler than what I went through on Ubuntu. > > QUESTION1: > Can you confirm that you have nothing related in your host.allow? My hosts.allow has nothing in it except comments. > QUESTION2: > It looks like you confirmed there is no need for a certificate, correct? Correct > QUESTION3: > Would you confirm that you didn't need any of those settings in > the stunnel.conf file, such as sslVersion, cert, chroot, setuid, > setgid, pid, socket, etc? Correct. A lot of those relate to running in a chroot jail. If you were running as a server or accepting connections on anything other than localhost, this would be a good security measure. As a localhost client though, I don't think there's much value. > If it was always this simple, then, somehow, I made it complicated > when it didn't need to be (but, in my defence, I never saw a > stunnel-with-pan tutorial as simple as your setup below). > > Thanks a lot Steve, as the answer to this question will help > a *lot* of other Linux users! > > I'm going to change my configuration now and see if a test > message will work from 64-bit Ubuntu 13.10. > >> I've just installed stunnel on another machine and connected to >> news.mixmin.net. Here are the steps:- >> >> Install Stunnel:- >> apt-get update >> apt-get install stunnel >> >> Create a config file:- >> vi /etc/stunnel/nntp.conf >> [nntp] >> client = yes >> accept = 127.0.0.1:119 >> connect = news.mixmin.net:563 >> >> Enable Stunnel:- >> vi /etc/default/stunnel >> ENABLED=1 >> >> Start Stunnel:- >> /etc/init.d/stunnel start >> >> Test connectivity:- >> $ telnet localhost 119 >> Trying ::1... >> Trying 127.0.0.1... >> Connected to localhost. >> Escape character is '^]'. >> 200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20140315 >> prerelease) ready (posting ok) >> quit >> 205 Bye! -- And with glasses high we raised a cry for freedom had arrived
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Steve Crook
Date: Wed, 09 Jul 2014 09:11
Date: Wed, 09 Jul 2014 09:11
32 lines
2192 bytes
2192 bytes
On Wed, 9 Jul 2014 02:42:45 +0000 (UTC), Daniel Webster wrote in Message-Id: <lpia75$klb$1@speranza.aioe.org>: > Drat. Here are my results: http://i58.tinypic.com/2m4qb2c.png > > After changing the setup, & rebooting, I get in Pan the error: > Error Reading From Localhost: Connection Reset by Peer. > > Maybe though, my system is thoroughly hosed, since I have tried > so many things to get Mixmin working. > > $ telnet localhost 119 > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > Connection closed by foreign host. Are you sure you don't already have something listening on port 119? You can check with: netstat -lt Also, check you don't have any stray stunnel processes that might still be active: ps -ef | grep stunnel Another thing to try is starting stunnel manually and seeing if you get any errors. You'll need to do this as root (or using sudo) as users can't bind to ports <1024: stunnel4 /etc/stunnel/nntp.conf -- And with glasses high we raised a cry for freedom had arrived
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Thu, 10 Jul 2014 04:47
Date: Thu, 10 Jul 2014 04:47
9 lines
1524 bytes
1524 bytes
On Wed, 09 Jul 2014 08:17:29 +0000, Steve Crook wrote: > Correct. A lot of those relate to running in a chroot jail. If you > were running as a server or accepting connections on anything other than > localhost, this would be a good security measure. As a localhost client > though, I don't think there's much value. Makes sense. Thanks!
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Thu, 10 Jul 2014 04:54
Date: Thu, 10 Jul 2014 04:54
69 lines
4001 bytes
4001 bytes
On Wed, 09 Jul 2014 09:11:13 +0000, Steve Crook wrote: > Are you sure you don't already have something listening on port 119? > You can check with: > netstat -lt $ netstat -lt Active Internet connections (only servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 localhost:gsigatekeeper *:* LISTEN tcp 0 0 dan:domain *:* LISTEN tcp 0 0 localhost:8118 *:* LISTEN tcp 0 0 localhost:ipp *:* LISTEN tcp6 0 0 ip6-localhost:ipp [::]:* LISTEN I must admit two things, (1) I have no idea how to interpret that output, and (2) nothing seems to be on port 119. > Also, check you don't have any stray stunnel processes that might still > be active: > ps -ef | grep stunnel Oh, I have stunnel processes galore. How many do you have, by the way? I have six stunnel processes running: $ ps -ef | grep stunnel stunnel4 1104 1 0 Jul08 ? 00:00:06 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1105 1 0 Jul08 ? 00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1106 1 0 Jul08 ? 00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1107 1 0 Jul08 ? 00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1108 1 0 Jul08 ? 00:00:00 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf stunnel4 1109 1 0 Jul08 ? 00:00:26 /usr/bin/stunnel4 /etc/stunnel/stunnel.conf > Another thing to try is starting stunnel manually and seeing if you get > any errors. You'll need to do this as root (or using sudo) as users > can't bind to ports <1024: > stunnel4 /etc/stunnel/nntp.conf $ sudo stunnel4 /etc/stunnel/stunnel.conf Clients allowed=500 stunnel 4.53 on x86_64-pc-linux-gnu platform Compiled with OpenSSL 1.0.1c 10 May 2012 Running with OpenSSL 1.0.1e 11 Feb 2013 Update OpenSSL shared libraries or rebuild stunnel Threading:PTHREAD SSL:+ENGINE+OCSP Auth:LIBWRAP Sockets:POLL+IPv6 Reading configuration from file /etc/stunnel/stunnel.conf Compression enabled: 2 algorithm(s) Snagged 64 random bytes from /home/dan/.rnd Wrote 1024 new random bytes to /home/dan/.rnd PRNG seeded successfully Initializing service section [nntp] Certificate: /etc/stunnel/stunnel.pem Certificate loaded Key file: /etc/stunnel/stunnel.pem Private key loaded SSL options set: 0x01000004 Configuration successful Error binding service [nntp] to 127.0.0.1:119 bind: Address already in use (98) Service [nntp] closed (FD=12) str_stats: 14 block(s), 1221 data byte(s), 812 control byte(s) Again, I'm not sure *how* to interpret this. Did it work? BTW, I just realized from that output that an old stunnel.conf might be used so I will have to wipe it out and try again.
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Thu, 10 Jul 2014 05:36
Date: Thu, 10 Jul 2014 05:36
58 lines
2814 bytes
2814 bytes
On Tue, 08 Jul 2014 08:54:00 +0000, Steve Crook wrote: > I've just installed stunnel on another machine and connected to > news.mixmin.net. Here are the steps:- > > Install Stunnel:- > apt-get update > apt-get install stunnel > > Create a config file:- > vi /etc/stunnel/nntp.conf > [nntp] > client = yes > accept = 127.0.0.1:119 > connect = news.mixmin.net:563 > > Enable Stunnel:- > vi /etc/default/stunnel > ENABLED=1 > > Start Stunnel:- > /etc/init.d/stunnel start > > Test connectivity:- > $ telnet localhost 119 > Trying ::1... > Trying 127.0.0.1... > Connected to localhost. > Escape character is '^]'. > 200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20140315 > prerelease) ready (posting ok) > quit > 205 Bye! Hi Steve, I just noticed my stunnel enabling file is not /etc/default/stunnel as yours is, but mine is, instead: /etc/default/stunnel4 I don't even know where that file came from, but I presume it came from the installer, so, it's odd that yours created a file of a different (but very similar) name. I'm not sure what /etc/default/ does, so, I'm not sure if it's a good idea to copy /etc/default/stunnel4 to /etc/default/stunnel, or if I should change the name or what (since I never created it in the first place). Likewise with your tutorial having /etc/init.d/stunnel while mine has /etc/init.d/stunnel4 Ah, I just looked inside that file, and it looks like it looks first for /etc/default/stunnel4, and if it can't find that, then it looks for /etc/default/stunnel (so that's not likely my problem). I wish I understood this Linux stuff better ...
Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
Author: Daniel Webster
Date: Thu, 10 Jul 2014 05:47
Date: Thu, 10 Jul 2014 05:47
25 lines
2119 bytes
2119 bytes
On Fri, 27 Jun 2014 15:10:02 +0000, Steve Crook wrote: > Stunnel works like a proxy. On the server side (your machine) it > listens for incoming connections. This is determined by the "accept" > line in your config file:- > > accept = 127.0.0.1:119 > > This means you have a service on your local machine listening on port > 119. Stunnel has no idea what type of service it is, it just listens. > > The other side of Stunnel is an SSL client that connects to a (usually) > remote service. This is defined by the "connect" line:- > > connect = news.mixmin.net:563 > > Put the two together and you have a tunnel from your machine (on port > 119) to a remote machine on port 563. As far as your newsreader is > concerned, it's talking to a news server located on your local machine. Would it screw things up if *other* newservers were also being used on port 119 at the very same (or similar) time frame? If so, should we recommend a *different* port for stunnel/mixmin tunneling?
Page 1 of 2 • 57 total messages
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads