Article View: news.software.nntp
Article #85945Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu
From: 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 ---
Technical Details
Message-ID:
<loucut$rri$1@speranza.aioe.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!aioe.org!.POSTED!not-for-mailReferences:
<loikqq$lgi$1@speranza.aioe.org> <lojso1$oha$1@speranza.aioe.org > <lokou8$pe4$1@solani.org> <lokq4r$8md$1@speranza.aioe.org> < AABTrpfkb20AAE4U.A1.flnews@WStation4.micha.freeshell.org>Show Full Headers
Complete Article Headers
Message-ID: <loucut$rri$1@speranza.aioe.org> Subject: Re: Can't seem to get mixmin nntp newsserver to work on Ubuntu Date: Tue, 01 Jul 2014 13:26:54 +0000 From: Daniel Webster <daniel@webster.com> References: <loikqq$lgi$1@speranza.aioe.org> <lojso1$oha$1@speranza.aioe.org > <lokou8$pe4$1@solani.org> <lokq4r$8md$1@speranza.aioe.org> < AABTrpfkb20AAE4U.A1.flnews@WStation4.micha.freeshell.org> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!i2pn2.pugleaf.net!archive.newsdeef.eu!mbox2nntp-alt.free.newsservers.20150605.mbox.gz!border1.nntp.dca1.giganews.com!nntp.giganews.com!usenet.blueworldhosting.com!feeder01.blueworldhosting.com!aioe.org!.POSTED!not-for-mail Newsgroups: news.software.nntp,alt.free.newsservers,alt.os.linux.ubuntu Organization: Aioe.org NNTP Server Lines: 100 NNTP-Posting-Host: A2BNq1Kn49Gyo8TapTxMxA.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Complaints-To: abuse@aioe.org X-Notice: Filtered by postfilter v. 0.8.2