🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #85973

Re: How to debug reliability with Pan on these 7 free newservers?

#85973
From: Albert Porcan
Date: Fri, 04 Jul 2014 13:44
84 lines
4346 bytes
On Fri, 04 Jul 2014 09:06:24 +0000, Steve Crook wrote:

> It appears there's a problem resolving news.mixmin.net from your
> location.  From here, I see:
> 
> $ host news.mixmin.net
> news.mixmin.net has address 188.40.76.149
> news.mixmin.net has IPv6 address 2a01:4f8:100:5243::4
> 
> Please can you do this test from your machine?  
> Also, what's in your /etc/resolv.conf file?

Hi Steve,
I'm honored that you yourself have replied, and I appreciate
that, especially since you provide a free service to us all.

I'm always troubled by the lack of debugging commands, when 
newsservers kick back an error message, so I appreciate the 
debugging hints. 

Here are the results (although mixmin is currently working
even though I have made no significant changes to the system):

$ host news.mixmin.net
=> $ host news.mixmin.net
=> news.mixmin.net has address 188.40.76.149
=> news.mixmin.net has IPv6 address 2a01:4f8:100:5243::4

$ cat /etc/resolv.conf
=> # Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
=> #     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
=> nameserver 127.0.1.1

To be explicit, I did have a devil of a time setting up 
stunnel on my linux laptop, but, I do believe it must be
correctly set up because mixmin works sometimes, and not
others.

But, for whatever reason, mixmin is working now:

$ telnet localhost 2119
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'.
200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20140420 prerelease) ready (posting ok)
=> post
340 Ok, recommended message-ID <lp6ajb$ov6$1@news.mixmin.net>
=> From: albertporcan@is.invalid
=> Newsgroups: alt.test
=> Subject: This is a test of mixmin and stunnel 
=> 
=> This is a test of stunnel and mixmin on linux.
=> .
240 Article received <lp6ajb$ov6$1@news.mixmin.net>
=> quit
205 Bye!
Connection closed by foreign host.
$

I'm not sure what the problem is/was with mixmin but what
I did was re-create my certificate (based on the suggestion
of the previous poster). Admittedly, I was just shooting 
blind in the dark; but here's how I created the certificate:

$ openssl genrsa -out privatekey.pem
$ openssl req -new -x509 -key privatekey.pem -out certificate.pem -days 1095
$ cat privatekey.pem certificate.pem >> stunnel.pem
$ sudo mv stunnel.pem /etc/stunnel/stunnel.pem
$ chmod 600 /etc/stunnel/stunnel.pem
$ ls -l /etc/stunnel/stunnel.pem
-rw------- 1 1916 Jul  3 23:34 /etc/stunnel/stunnel.pem

Is this how the certificate is being used?

1. My linux box establishes a connection to your server
2. I hand your server my certificate encrypted with my private key
3. You encrypt the communications using that certificate
4. When I receive your encrypted communication, I decrypt it with my private key

Is that how it works?
Is this sequence explained somewhere on the net for mixmin?

Thanks!
Al
Technical Details
Message-ID: <lp6b3f$c0n$3@news.albasani.net>
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!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
References: <lp49i3$iog$1@news.albasani.net> < klrbr9p6fq6l0mvgip0pt8q4ildrqllacc@4ax.com> <lp4t3t$4d9$1@news.albasani.net > <slrnlrcrkg.a1l.steve@snorky.mixmin.net>

Show Full Headers
Complete Article Headers
Message-ID: <lp6b3f$c0n$3@news.albasani.net>
Subject: Re: How to debug reliability with Pan on these 7 free newservers?
Date: Fri, 04 Jul 2014 13:44:16 +0000
From: Albert Porcan <albertporcan@is.invalid>
References: <lp49i3$iog$1@news.albasani.net> < klrbr9p6fq6l0mvgip0pt8q4ildrqllacc@4ax.com> <lp4t3t$4d9$1@news.albasani.net > <slrnlrcrkg.a1l.steve@snorky.mixmin.net>
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!border2.nntp.dca1.giganews.com!nntp.giganews.com!newspeer1.nac.net!feeder.erje.net!eu.feeder.erje.net!news.albasani.net!.POSTED!not-for-mail
Newsgroups: alt.free.newsservers,news.software.nntp,alt.os.linux
Organization: albasani.net
Lines: 84
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: news.albasani.net
 wtf25FlsGN6uX5HacXdtL1d5svEN0xAg8ZEGx8ivaWTi8QvzbVetgmCM/gCBIrho0+HAoltsqWist2mW/zphTAhUwQyitVPZJwfIIx7GWWR3HuR1+u05WNP40AS2nFvU
NNTP-Posting-Date: Fri, 4 Jul 2014 13:44:16 +0000 (UTC)
Injection-Info: news.albasani.net;
 logging-data="Su6SYLbcuro0cl6t3GU4lPqGl/8AwV1zxX4LqkpRQ2HdROhOkWAcTtv5Xg2d+xiLTdaP/EpUGiNHrvrZp7quzuab0Y/NLcoUApKGMzBXm8RH1jDPzk+1BFyZYOf/T40O";
 mail-complaints-to="abuse@albasani.net"
Cancel-Lock: sha1:8UQrwVyoz2qVDNGfp8wu7K9syOw=