🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: alt.free.newsservers
23 messages
23 total messages Started by Avatar Mon, 29 Apr 2013 03:40
If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149850
Author: Avatar
Date: Mon, 29 Apr 2013 03:40
78 lines
4353 bytes
I can't find any Linux + Pan + Mixmin setup instructions, so, I'm on my own. 
But, I failed. Miserably. If *your* Linux Mixmin setup works, would you kindly
tail your log file to compare with my (failed) log file? Thanks in advance.
----------------------------------------------------------------------------
Here's the only installation Linux instructions for installing 
Pan + Mixmin (see bottom for failure) on the net that I know of:

Install the Pan newsreader:
$ sudo yum --enablerepo rpmforge install pan -y

Test Pan with AIOE by adding a newsserver (e.g., aioe):
[Pan]Edit->Edit News Servers->Add->(see below)->OK
     Address: aioe.org
     Port: 119

Test Pan with AIOE by adding a user (e.g., foo@bar.com):
[Pan]Edit->Edit Posting Profiles->Add->{see settings below}->OK
     Profile Name: New Profile
     Full Name: Foo Bar
     Email Address: foo@bar.com
     Post Articles Via: aioe.org

Test Pan:AIOE setup by reading & sending a message to alt.test.
[Pan]Post->Post to Newsgroup->alt.test
That should immediately be successful (and always is).

Now attempt to set up Mixmin with Pan on Linux:
[Pan]Edit->Edit News Servers->Add->{see settings below}->OK
     Address: news.mixmin.net
     Port: 563

Then obtain stunnel & set up stunnel:
     $ sudo yum install stunnel -y
     $ sudo cp /usr/share/doc/stunnel-4.29/stunnel.conf-sample /etc/stunnel/stunnel.conf
     $ sudo vi  /etc/stunnel/stunnel.conf
                [nntp]
                accept = localhost:119
                connect = news.mixmin.net:563
     $ sudo reboot (to start the stunnel services)
[Pan]Edit->Edit News Servers->Add->(see below)->OK
     Address: localhost
     Port: 119

Then refresh groups:
[Pan]Groups->Refresh Group List

Then try to post to alt.test using the Mixmin free news server:
[Pan]Post->Post to Newsgroup->alt.test

The error will always be:
  There were problems with this post.
  Warning: The posting profile's server doesn't carry newsgroup alt.test.

At this point, I have no error message.
So, seeking an error message, I look here:

$ sudo tail -f /var/log/stunnel/stunnel.log
: Created pid file /stunnel.pid
: nntp accepted FD=13 from ::1:47349
: nntp started
: FD 13 in non-blocking mode
: TCP_NODELAY option set on local socket
: Waiting for a libwrap process
: Acquired libwrap process #0
: Releasing libwrap process #0
: Released libwrap process #0
: nntp permitted by libwrap from ::1:47349
: nntp accepted connection from ::1:47349
: Error resolving 'news.mixmin.net': 
  Neither nodename nor servname known (EAI_NONAME)
: No host resolved
: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
: nntp finished (0 left)

But, at this point, I am stumped. It would be nice if someone
who knows what they're doing would see if it works for them
and what their stunnel log messages say in turn.
Re: If you're on Linux & if Mixmin is working -> please tail the stunne file
#149868
Author: Anonymous
Date: Mon, 29 Apr 2013 05:36
13 lines
1197 bytes
Avatar wrote:

> Now attempt to set up Mixmin with Pan on Linux:
> [Pan]Edit->Edit News Servers->Add->{see settings below}->OK
> Address: news.mixmin.net
> Port: 563
>



Address: localhost
Port: 119
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149860
Author: John Corliss q34wsk20-at-yahoo.c...
Date: Mon, 29 Apr 2013 05:54
17 lines
2378 bytes
BEAR, CORLISS, POTTER, DON'T FOOKIN ANSWER THIS OR YOU'LL GET ROASTED
FUCKERS!!!!!!!!!!!!!!!!!!!!

LEAVE THIS QUESTION ALONE, ITS POISONOUS FOR
YOU!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

SOMEONE ELSE POST THE
ANSWER!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

NO FUCKING PLA HACKER UNIT DRF FU MANCHU OR DAVE U RANDOM OR
ANONYMOUS!!!!!!!!!!!!!!!!!!!!!
HEAR???????????!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

JAX!!!!!!!!!!!!!!!!!!!!!!!!!!!

FOOKIN STAY AWAY FROM IT!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149866
Author: Jasen Betts
Date: Mon, 29 Apr 2013 06:22
53 lines
2987 bytes
On 2013-04-29, Avatar <Avatar@hbgyisasesaew.com> wrote

>      $ sudo vi  /etc/stunnel/stunnel.conf
>                 [nntp]
>                 accept = localhost:119
>                 connect = news.mixmin.net:563
>      $ sudo reboot (to start the stunnel services)
> [Pan]Edit->Edit News Servers->Add->(see below)->OK
>      Address: localhost
>      Port: 119
>
> Then refresh groups:
> [Pan]Groups->Refresh Group List
>
> Then try to post to alt.test using the Mixmin free news server:
> [Pan]Post->Post to Newsgroup->alt.test

it's not the server.

jasen@fozzie:~$ openssl s_client -connect news.mixmin.net:563
CONNECTED(00000003)
[....]
---
200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622
prerelease) ready (posting ok)
group alt.test
211 20649 309344 330045 alt.test
post
340 Ok, recommended message-ID <kll2jq$hcn$3@news.mixmin.net>
From: mee <sss@reversiblemaps.ath.cx>
Date: Mon, 29 Apr 2013 18:06:00 +1200 (NZST)
Newsgroups: alt.test
Subject: test

werk?
..
240 Article received <kll2jq$hcn$3@news.mixmin.net>
quit
205 Bye!
closed

>   Neither nodename nor servname known (EAI_NONAME)
>: No host resolved
>: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
>: nntp finished (0 left)

That looks like it's saying it couldn't find the server.
perhaps you need "client=yes" in your stunnel.conf

-- 
⚂⚃ 100% natural

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149876
Author: Avatar
Date: Mon, 29 Apr 2013 07:01
54 lines
3302 bytes
Jasen Betts wrote on Mon, 29 Apr 2013 06:22:26 +0000:
> jasen@fozzie:~$ openssl s_client -connect news.mixmin.net:563
> CONNECTED(00000003)
> [....]
> 200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622
> prerelease) ready (posting ok)

I got the same results from my machine:

$ openssl s_client -connect news.mixmin.net:563
CONNECTED(00000003)
depth=1 O = Root CA, OU = http://www.cacert.org, CN = CA Cert Signing Authority, emailAddress = support@cacert.org
verify error:num=19:self signed certificate in certificate chain
verify return:0
---
Certificate chain
 0 s:/CN=news.mixmin.net
   i:/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
 1 s:/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
   i:/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
---
Server certificate
-----BEGIN CERTIFICATE-----
... stuff ... 
-----END CERTIFICATE-----
subject=/CN=news.mixmin.net
issuer=/O=Root CA/OU=http://www.cacert.org/CN=CA Cert Signing Authority/emailAddress=support@cacert.org
---
No client certificate CA names sent
---
SSL handshake has read 3682 bytes and written 310 bytes
---
New, TLSv1/SSLv3, Cipher is DHE-RSA-AES256-SHA
Server public key is 1024 bit
Secure Renegotiation IS supported
Compression: NONE
Expansion: NONE
SSL-Session:
    Protocol  : TLSv1
    Cipher    : DHE-RSA-AES256-SHA
    Session-ID: ... stuff ...
    Session-ID-ctx: 
    Master-Key: ... stuff ...
    Key-Arg   : None
    Krb5 Principal: None
    PSK identity: None
    PSK identity hint: None
    TLS session ticket:
    ... stuff ...
---
200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622 prerelease) ready (posting ok)
closed

Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149877
Author: Avatar
Date: Mon, 29 Apr 2013 07:06
79 lines
3414 bytes
Jasen Betts wrote on Mon, 29 Apr 2013 06:22:26 +0000:

> That looks like it's saying it couldn't find the server.
> perhaps you need "client=yes" in your stunnel.conf

The stunnel.conf does have "client=yes" already set.
Here is my /etc/stunnel/stunnel.conf file:


; Sample stunnel configuration file by Michal Trojnara 2002-2009
; Some options used here may not be adequate for your particular configuration
; Please make sure you understand them (especially the effect of the chroot jail)

; Certificate/key is needed in server mode and optional in client mode
;cert = /etc/stunnel/mail.crt
;key = /etc/stunnel/mail.key

; Protocol version (all, SSLv2, SSLv3, TLSv1)
sslVersion = SSLv3

; Some security enhancements for UNIX systems - comment them out on Win32
chroot = /var/run/stunnel/
setuid = nobody
setgid = nobody
; PID is created inside the chroot jail
pid = /stunnel.pid

; Some performance tunings
socket = l:TCP_NODELAY=1
socket = r:TCP_NODELAY=1
;compression = zlib

; Workaround for Eudora bug
;options = DONT_INSERT_EMPTY_FRAGMENTS

; Authentication stuff
;verify = 2
; Don't forget to c_rehash CApath
; CApath is located inside chroot jail
;CApath = /certs
; It's often easier to use CAfile
;CAfile = /etc/stunnel/certs.pem
;CAfile = /etc/pki/tls/certs/ca-bundle.crt
; Don't forget to c_rehash CRLpath
; CRLpath is located inside chroot jail
;CRLpath = /crls
; Alternatively you can use CRLfile
;CRLfile = /etc/stunnel/crls.pem

; Some debugging stuff useful for troubleshooting
debug = 7
output = /var/log/stunnel/stunnel.log

; Use it for client mode
client = yes

; Service-level configuration

;[pop3s]
;accept  = 995
;connect = 110

;[imaps]
;accept  = 993
;connect = 143

;[ssmtp]
;accept  = 465
;connect = 25

;[https]
;accept  = 443
;connect = 80
;TIMEOUTclose = 0

; vim:ft=dosini
[nntp]
accept = localhost:119
connect = news.mixmin.net:563
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149878
Author: Avatar
Date: Mon, 29 Apr 2013 07:14
24 lines
2102 bytes
Jasen Betts wrote on Mon, 29 Apr 2013 06:22:26 +0000:
> jasen@fozzie:~$ openssl s_client -connect news.mixmin.net:563

Since Mixmin worked from openssl but not from Pan, what does
that tell me about my stunnel/mixmin setup?

$ openssl s_client -connect news.mixmin.net:563
REPORTS: 
   ... stuff ... 
   ---
   200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622 prerelease) ready (posting ok)
post
   340 Ok, recommended message-ID <kll6at$mbf$1@news.mixmin.net>
From: mee <mee@bar.com>
Newsgroups: alt.test
Subject: test

Test?
..
   240 Article received <kll6at$mbf$1@news.mixmin.net>
quit
   205 Bye!
closed
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149892
Author: p-0''0-h the cat (ES)
Date: Mon, 29 Apr 2013 08:40
38 lines
2341 bytes
On Mon, 29 Apr 2013 03:40:45 +0000 (UTC), Avatar
<Avatar@hbgyisasesaew.com> wrote:

>: Error resolving 'news.mixmin.net': 
>  Neither nodename nor servname known (EAI_NONAME)
>: No host resolved

Well that seems to suggest a problem with DNS.

Try changing 

[nntp]
connect = 188.40.76.149:563

-- 
p-0.0-h the cat

Attention new posters. Beware: ACF is under attack by a small number of
trolls who post false and misleading replies to questions here, and run
campaigns of lies against some of the long term regulars in order to get
them killfiled.

These are my recommendations to filter their malicious trollspam

By filtering out messages containing q34wsk20@yahoo.com 
<< q34wsk20-at-yahoo.com>> AND <<noone@nowhere.com>> in the "From:" header 
and messages containing "ccountrynet" in the path statement you will knock
out more than half or even three quarters of the trollspamming in this group.

I also recommend filtering all crossposts, anonymous remailers, and any
posts with these providers in the path:

eternal-september.org
dotsrc.org
ccountrynet < especially this one 
individual.net
easynews.com
anonymous
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149894
Author: not a kook
Date: Mon, 29 Apr 2013 10:48
27 lines
2146 bytes
On Mon, 29 Apr 2013 07:14:28 +0000, Avatar wrote:

> Jasen Betts wrote on Mon, 29 Apr 2013 06:22:26 +0000:
>> jasen@fozzie:~$ openssl s_client -connect news.mixmin.net:563
> 
> Since Mixmin worked from openssl but not from Pan, what does that tell
> me about my stunnel/mixmin setup?
> 
> $ openssl s_client -connect news.mixmin.net:563 REPORTS:
>    ... stuff ...
>    ---
>    200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622
>    prerelease) ready (posting ok)
> post
>    340 Ok, recommended message-ID <kll6at$mbf$1@news.mixmin.net>
> From: mee <mee@bar.com>
> Newsgroups: alt.test Subject: test
> 
> Test?
> .
>    240 Article received <kll6at$mbf$1@news.mixmin.net>
> quit
>    205 Bye!
> closed

use latest pan from git and compile it --with-gnutls, now it has ssl and 
header compression builtin.
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149897
Author: Jasen Betts
Date: Mon, 29 Apr 2013 10:59
31 lines
2372 bytes
On 2013-04-29, Avatar <Avatar@hbgyisasesaew.com> wrote:
> Jasen Betts wrote on Mon, 29 Apr 2013 06:22:26 +0000:
>
>> That looks like it's saying it couldn't find the server.
>> perhaps you need "client=yes" in your stunnel.conf
>
> The stunnel.conf does have "client=yes" already set.
> Here is my /etc/stunnel/stunnel.conf file:

hmm, yeah, something in there doesn't work.

( easiest test is "telnet localhost 119" )

A config containining only this does work:

;--------

client = yes
[nntp]
accept = localhost:119
connect = news.mixmin.net:563

;--------

perhaps start from there and add options 


-- 
⚂⚃ 100% natural

--- news://freenews.netfront.net/ - complaints: news@netfront.net ---
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149902
Author: Whiskers
Date: Mon, 29 Apr 2013 12:19
31 lines
2511 bytes
["Followup-To:" header set to alt.free.newsservers.]
On 2013-04-29, Avatar <Avatar@hbgyisasesaew.com> wrote:
> I can't find any Linux + Pan + Mixmin setup instructions, so, I'm on my own. 
> But, I failed. Miserably. If *your* Linux Mixmin setup works, would you kindly
> tail your log file to compare with my (failed) log file? Thanks in advance.

[...]

I don't use mixmin, but I do use stunnel.

You should have a file called stunnel.conf-sample (mine is in
/etc/stunnel/); it contains examples of useful entries.

I suggest you put these three lines at the start of your stunnel.conf:

setuid = nobody
setgid = nobody
client = yes

I also suggest that you tell stunnel to listen on a different port from the
'normal' nntp port; eg use 1119 or 2119.  Use a port that is not being used
by any other local service, nor likely to be.  Then tell your newsreader to
use localhost on the port you've told stunnel to listen on.

Remove the other news-server settings from your newsreader, to avoid
confusion.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149913
Author: Avatar
Date: Mon, 29 Apr 2013 15:29
17 lines
2081 bytes
not a kook wrote on Mon, 29 Apr 2013 10:48:10 +0000:

> use latest pan from git and compile it --with-gnutls, now it has ssl and 
> header compression builtin.

I am not good at compiling (about 30% of my compiles actually work).

Does the fact I can use openssl but not pan rule out the
stunnel setup? Was that openssl test conclusive?

In other words, given Pan can't connect but openssl can, 
what does that tell me about where the problem lies?

Pan?
Stunnel?
Mixmin?
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149914
Author: Avatar
Date: Mon, 29 Apr 2013 16:39
13 lines
1859 bytes
Jasen Betts wrote on Mon, 29 Apr 2013 10:59:45 +0000:

> ( easiest test is "telnet localhost 119" )

That won't connect:

$ telnet localhost 119
Trying ::1...
Connected to localhost.
Escape character is '^]'.
Connection closed by foreign host.
$
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149921
Author: Avatar
Date: Mon, 29 Apr 2013 19:16
34 lines
2791 bytes
p-0''0-h the cat (ES) wrote on Mon, 29 Apr 2013 09:40:41 +0100:

> Well that seems to suggest a problem with DNS.

With the help given, I finally got Mixmin to work on Centos, 
albeit it's flaky as it didn't work twice in a row.

But, I see that my post made it through to mixmin when
I set up stunnel with the following conf file that you guys 
had suggested:

$ cat /etc/stunnel/stunnel.conf
client = yes
[nntp]
accept = localhost:119
connect = news.mixmin.net:563

Interestingly, this allowed a "localhost" Pan setting to work:
[Pan]Edit->Edit News Servers->Address=localhost [Port=119]

But, an exact subsequent test with a "127.0.0.1" Pan setting failed:
[Pan]Edit->Edit News Servers->Address=127.0.0.1 [Port=119]

The top line of my hosts file is the following:
127.0.0.1 name localhost localhost.localdomain localhost4 localhost4.localdomain4
::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 foo

I'm not sure *why* these lines exist, so maybe they are the problem?
If you know what they're doing in my /etc/hosts, let me know.

Meanwhile, I'll see why Mixmin is working, but still very flaky
(it worked one out of three attempts before sending this via a 
different news server).
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149924
Author: Avatar
Date: Mon, 29 Apr 2013 19:45
23 lines
2043 bytes
Whiskers wrote on Mon, 29 Apr 2013 13:19:18 +0100:

> I suggest you put these three lines at the start of your stunnel.conf:
> 
> setuid = nobody
> setgid = nobody
> client = yes

By eliminating almost all the lines from the stunnel.conf, 
I was able to post to "localhost" (but not to 127.0.0.1) 
using just these four suggested lines in stunnel.conf:

$ cat /etc/stunnel/stunnel.conf
client = yes
[nntp]
accept = localhost:119
connect = news.mixmin.net:563

For security (I guess), I'll add the two set?id lines 
& reboot and report back.

Thanks,
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149925
Author: p-0''0-h the cat (ES)
Date: Mon, 29 Apr 2013 21:02
69 lines
3677 bytes
On Mon, 29 Apr 2013 19:16:57 +0000 (UTC), Avatar
<Avatar@hbgyisasesaew.com> wrote:

>p-0''0-h the cat (ES) wrote on Mon, 29 Apr 2013 09:40:41 +0100:
>
>> Well that seems to suggest a problem with DNS.
>
>With the help given, I finally got Mixmin to work on Centos, 
>albeit it's flaky as it didn't work twice in a row.
>
>But, I see that my post made it through to mixmin when
>I set up stunnel with the following conf file that you guys 
>had suggested:
>
>$ cat /etc/stunnel/stunnel.conf
>client = yes
>[nntp]
>accept = localhost:119
>connect = news.mixmin.net:563
>
>Interestingly, this allowed a "localhost" Pan setting to work:
>[Pan]Edit->Edit News Servers->Address=localhost [Port=119]
>
>But, an exact subsequent test with a "127.0.0.1" Pan setting failed:
>[Pan]Edit->Edit News Servers->Address=127.0.0.1 [Port=119]
>
>The top line of my hosts file is the following:
>127.0.0.1 name localhost localhost.localdomain localhost4 localhost4.localdomain4

That looks fine to me for ipv4. They are just a list of alternative host
and FQDN you can use to point to 127.0.0.1

>::1 localhost localhost.localdomain localhost6 localhost6.localdomain6 foo

and that is for ipv6

>I'm not sure *why* these lines exist, so maybe they are the problem?
>If you know what they're doing in my /etc/hosts, let me know.
>
>Meanwhile, I'll see why Mixmin is working, but still very flaky
>(it worked one out of three attempts before sending this via a 
>different news server).


-- 
p-0.0-h the cat

Attention new posters. Beware: ACF is under attack by a small number of
trolls who post false and misleading replies to questions here, and run
campaigns of lies against some of the long term regulars in order to get
them killfiled.

These are my recommendations to filter their malicious trollspam

By filtering out messages containing q34wsk20@yahoo.com 
<< q34wsk20-at-yahoo.com>> AND <<noone@nowhere.com>> AND <<Duddits@Dreamcatcher.com>>
in the "From:" header and messages containing "ccountrynet" in the path statement
you will knock out more than half or even three quarters of the trollspamming in 
this group.

I also recommend filtering all crossposts, anonymous remailers, and any
posts with these providers in the path:

eternal-september.org
dotsrc.org
ccountrynet < especially this one 
individual.net
easynews.com
anonymous
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149928
Author: p-0''0-h the cat (ES)
Date: Mon, 29 Apr 2013 21:37
67 lines
3097 bytes
On Mon, 29 Apr 2013 19:16:57 +0000 (UTC), Avatar
<Avatar@hbgyisasesaew.com> wrote:

>With the help given, I finally got Mixmin to work on Centos, 
>albeit it's flaky as it didn't work twice in a row.


Well I just posted to ACF using stunnel and telnet on Windows

see Message-ID: <klmop9$41i$3@news.mixmin.net>

stunnel.conf

# connect to mixmin
[news.mixmin.net]
client = yes
accept = 127.0.0.1:563
connect = 188.40.76.149:563

-----------------------------------------------------------------------------

C:\Windows\system32>telnet 127.0.0.1 563

POST
340 Ok, recommended message-ID <klmop9$41i$3@news.mixmin.net>
From:pooh@poohworld.invalid
Newsgroups:alt.comp.freeware
Subject:nntp via stunnel and telnet
Message-ID:<klmop9$41i$3@news.mixmin.net>

This is a test
..
240 Article received <klmop9$41i$3@news.mixmin.net>
quit
205 Bye!


Connection to host lost.


So it doesn't look like it's mixmin

-- 
p-0.0-h the cat

Attention new posters. Beware: ACF is under attack by a small number of
trolls who post false and misleading replies to questions here, and run
campaigns of lies against some of the long term regulars in order to get
them killfiled.

These are my recommendations to filter their malicious trollspam

By filtering out messages containing q34wsk20@yahoo.com 
<< q34wsk20-at-yahoo.com>> AND <<noone@nowhere.com>> AND <<Duddits@Dreamcatcher.com>>
in the "From:" header and messages containing "ccountrynet" in the path statement
you will knock out more than half or even three quarters of the trollspamming in 
this group.

I also recommend filtering all crossposts, anonymous remailers, and any
posts with these providers in the path:

eternal-september.org
dotsrc.org
ccountrynet < especially this one 
individual.net
easynews.com
anonymous
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149930
Author: Whiskers
Date: Mon, 29 Apr 2013 22:13
26 lines
2315 bytes
On 2013-04-29, Avatar <Avatar@hbgyisasesaew.com> wrote:
> not a kook wrote on Mon, 29 Apr 2013 10:48:10 +0000:
>
>> use latest pan from git and compile it --with-gnutls, now it has ssl and 
>> header compression builtin.
>
> I am not good at compiling (about 30% of my compiles actually work).
>
> Does the fact I can use openssl but not pan rule out the
> stunnel setup? Was that openssl test conclusive?
>
> In other words, given Pan can't connect but openssl can, 
> what does that tell me about where the problem lies?
>
> Pan?
> Stunnel?
> Mixmin?

I just remembered that the latest version of stunnel for the distro I use
(Arch Linux, stunnel 4.56) has a fatal bug in it; I'm using the previous
stunnel 4.54 which is fine.

-- 
-- ^^^^^^^^^^
--  Whiskers 
-- ~~~~~~~~~~
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149992
Author: Avatar
Date: Tue, 30 Apr 2013 05:25
11 lines
2041 bytes
Whiskers wrote on Mon, 29 Apr 2013 23:13:34 +0100:

> I just remembered that the latest version of stunnel for the distro I use
> (Arch Linux, stunnel 4.56) has a fatal bug in it; I'm using the previous
> stunnel 4.54 which is fine.

Mine is even older than that. 

$ stunnel -version
stunnel 4.29 on x86_64-redhat-linux-gnu with OpenSSL 1.0.0-fips 29 Mar 2010
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#149993
Author: Avatar
Date: Tue, 30 Apr 2013 05:32
27 lines
2239 bytes
Avatar wrote on Mon, 29 Apr 2013 19:45:32 +0000:

> For security (I guess), I'll add the two set?id lines 
> & reboot and report back.

Well that was a flop!

When I added these two lines, posting to Mixmin via stunnel 
(from Pan) instantly stopped working:
 setuid = nobody 
 setgid = nobody 

When I removed those added lines, posting to Mixmin via stunnel 
(from Pan) immediately worked again!

So now, this is all that I have in my stunnel.conf file:
 client = yes 
 [nntp] 
 accept = localhost:119 
 connect = news.mixmin.net:563 

I think that the "setuid" & "setgid" are what's causing
stunnel to fail; but I don't know enough about Linux to 
troubleshoot why.

Any ideas?
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#150001
Author: Avatar
Date: Tue, 30 Apr 2013 06:02
313 lines
11511 bytes
Avatar wrote on Tue, 30 Apr 2013 05:32:26 +0000:

> I think that the "setuid" & "setgid" are what's causing
> stunnel to fail; but I don't know enough about Linux to 
> troubleshoot why.

Here's a running log, in case others need the help.
I'm sorry it's confusing, but, I was confused during the process.
So, while this worked - I'm not quite sure why it had failed initially.

Here's the installation instructions on Centos for installing Pan + Mixmin 

Install the Pan newsreader:
$ sudo yum --enablerepo rpmforge install pan -y

Test Pan by adding a newsserver (e.g., aioe):
[Pan]Edit->Edit News Servers->Add->(see below)->OK
     Address: aioe.org
     Port: 119

Test Pan by adding a user (e.g., foo@bar.com):
[Pan]Edit->Edit Posting Profiles->Add->
     Profile Name: New Profile
     Full Name: Foo Bar
     Email Address: foo@bar.com
     Post Articles Via: aioe.org
     OK

Test Pan setup by reading & sending a message to alt.test.
[Pan]Post->Post to Newsgroup->alt.test

That should immediately be successful (and always is).
Now attempt to set up the Mixmin newsserver, which requires stunnel:
     $ sudo yum install stunnel -y
     $ sudo cp /usr/share/doc/stunnel-4.29/stunnel.conf-sample \
       /etc/stunnel/stunnel.conf
     $ sudo vi  /etc/stunnel/stunnel.conf
                [nntp]
                accept = localhost:119
                connect = news.mixmin.net:563
       Note: When I used the following two lines, stunnel failed:
                setuid = nobody
                setgid = nobody
     $ sudo mkdir /var/log/stunnel
     $ sudo touch /var/log/stunnel/stunnel.log

Now comes the tricky part about setting up stunnel services

Download this stunnel daemon init script:
     http://bugzilla.redhat.com/attachment.cgi?id=325164 
Which came from this stunnel bug report (stunnel lacks an init script):
     https://bugzilla.redhat.com/show_bug.cgi?id=455815

I'm guessing at these installation instructions as there are none available:
     $ sudo cp /tmp/stunnel /etc/init.d/stunnel
     $ sudo chown root /etc/init.d/stunnel
     $ sudo chmod 755 /etc/init.d/stunnel

     $ sudo view /etc/init.d/stunnel
       I see that the following were called but none of these exist:
       /var/run/stunnel (directory)
       /var/run/stunnel/stunnel.pid (process-id file)
       /var/lock/subsys/stunnel (file)
       /usr/sbin/stunnel (executable)

So, I will manually create the /var/run/stunnel directory after
looking for expected ownership in the stunnel.conf file:
     $ grep set.id /etc/stunnel/stunnel.conf
     ==> setuid = nobody
     ==> setgid = nobody

I then made the stunnel directory and changed ownership to that owner:
     $ sudo mkdir /var/run/stunnel
     $ sudo chown nobody /var/run/stunnel
     $ ls -ld /var/run/stunnel

And I modified that init.d script to point to the stunnel executable
which was installed ing /usr/bin/stunnel by the yum command:
     $ which stunnel
       ==> /usr/bin/stunnel
     $ sudo vi /etc/init.d/stunnel
       Change the location of the stunnel execution:
FROM:
daemon --check $servicename '/usr/sbin/stunnel /etc/stunnel/stunnel.conf
&>/dev/null'
TO:
daemon --check $servicename '/usr/bin/stunnel /etc/stunnel/stunnel.conf
&>/dev/null'

As a doublecheck, the following directories & files are called out in the
(slightly modified) default configuration:
$ grep stunnel /etc/{stunnel/stunnel.conf,init.d/stunnel}
REPORTED the following files and directories are needed:
- chroot = /var/run/stunnel/
- output = /var/log/stunnel/stunnel.log
- servicename=stunnel
- processname=stunnel
- pidfile=/var/run/stunnel/stunnel.pid
- /usr/bin/stunnel
- /etc/stunnel/stunnel.conf

Since all of those exist at this point, I then re-tried the suggested command
but it failed this time:
$ su root
# cd /
# chkconfig -add stunnel
REPORTED:
-add: unknown option

Hmmm... Maybe it's already there?
# chkconfig|grep stunnel
REPORTS:
stunnel 0:off 1:off 2:off 3:on 4:on 5:on 6:off

I'll assume that indicates that this step above is no longer needed.
Moving onward, let's now start the stunnel service:
# service stunnel start
REPORTS:
Starting stunnel services: [ OK ]

$ /sbin/chkconfig --list | awk '{ print $1 }' | sort | grep stunnel
REPORTS (installed services):
stunnel

$ /sbin/chkconfig --list | grep :on | grep stunnel
REPORTS (services configured to run):
stunnel 0:off 1:off 2:off 3:on 4:on 5:on 6:off

$ for S in $(/sbin/chkconfig --list | awk '/:on/ { print $1 }' | sort); do
echo $S; /sbin/service $S status; echo; done | grep stunnel
REPORTS:
stunnel
stunnel (pid 2825) is running...

# service --status-all | grep stunnel
REPORTS:
stunnel (pid 2825) is running...

# netstat -tulpn | grep stunnel
REPORTS:
tcp 0 0 ::1:119 :::* LISTEN 2825/stunnel

# ntsysv
REPORTS: stunnel is automatically started.

$ telnet 127.0.0.1 119
REPORTS: 
Trying 127.0.0.1...
telnet: connect to address 127.0.0.1: Connection refused

Repeat that command as folks have reported the second time works 
(mine didn't work no matter how many times I repeated it):
$ !!
$ !!
$ !!

Looking at my hosts file, I have:
$ head /etc/hosts
127.0.0.1 NAME localhost localhost.localdomain localhost4 localhost4.localdomain4

$ grep -i mixmin /etc/hosts
  REPORTS: nothing

$ netstat -antp | grep 119
REPORTS: 
  netstat -antp | grep 119
  (Not all processes could be identified, non-owned process info
   will not be shown, you would have to be root to see it all.)
  tcp 0 0 ::1:119 :::* LISTEN -                   

$ sudo netstat -antp | grep 119
REPORTS: 
  tcp 0 0 ::1:119 :::* LISTEN 2723/stunnel       

---- skipping over to Pan setup -----

[Pan]Edit->Edit News Servers->Add->(see below)->OK
     Address: news.mixmin.net
     Port: 563

[Pan]Edit->Edit News Servers->Add->(see below)->OK
     Address: localhost
     Port: 119

Then refresh groups:
[Pan]Groups->Refresh Group List

Then try to post to alt.test using the Mixmin news server:
Test Pan setup by reading & sending a message to alt.test.
[Pan]Post->Post to Newsgroup->alt.test

The error will always be:
  There were problems with this post.
  Warning: The posting profile's server doesn't carry newsgroup alt.test.

At this point, I have no error message.
So, seeking an error message, I look at the log file:

$ sudo tail -f /var/log/stunnel/stunnel.log
: Created pid file /stunnel.pid
: nntp accepted FD=13 from ::1:47349
: nntp started
: FD 13 in non-blocking mode
: TCP_NODELAY option set on local socket
: Waiting for a libwrap process
: Acquired libwrap process #0
: Releasing libwrap process #0
: Released libwrap process #0
: nntp permitted by libwrap from ::1:47349
: nntp accepted connection from ::1:47349
: Error resolving 'news.mixmin.net': 
  Neither nodename nor servname known (EAI_NONAME)
: No host resolved
: Connection reset: 0 bytes sent to SSL, 0 bytes sent to socket
: nntp finished (0 left)

The first error says stunnel can't resolve news.mixmin.net.

I test if my DNS server can resolve it, and it can:

$ 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=47 time=175 ms
64 bytes from snorky.mixmin.net (188.40.76.149): icmp_seq=2 ttl=47 time=193 ms
64 bytes from snorky.mixmin.net (188.40.76.149): icmp_seq=3 ttl=47 time=184 ms

$ openssl s_client -connect news.mixmin.net:563
  REPORTS: 
   CONNECTED(00000003)
   ... stuff ... 
   200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622 prerelease)
   ready (posting ok)
post
   340 Ok, recommended message-ID <krr5gb$mbf$1@news.mixmin.net>
From: foo <foo@bar.com>
Newsgroups: alt.test
Subject: test

Test?
..
   240 Article received <krr5gb$mbf$1@news.mixmin.net>
quit
   205 Bye!
closed

At this point I decided to minimize my stunnel.conf file to the following:

$ cat /etc/stunnel/stunnel.conf
REPORTS:
client = yes
[nntp]
accept = localhost:2119
connect = news.mixmin.net:563

To test using Telnet, try this first:
$ telnet news.mixmin.net 119
  Trying 188.40.76.149...
  Connected to news.mixmin.net.
  Escape character is '^]'.
  200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622 prerelease)
  ready (posting ok)
quit
  205 Bye!
  Connection closed by foreign host.

If that works, try this:
$ telnet localhost 2119 <== use whatever port you used in stunnel.conf
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622 prerelease)
  ready (posting ok)
quit
  205 Bye!
  Connection closed by foreign host.

If that worked, then you can create an actual post:
$ telnet localhost 2119 
  Trying ::1...
  telnet: connect to address ::1: Connection refused
  Trying 127.0.0.1...
  Connected to localhost.
  Escape character is '^]'.
  200 news.mixmin.net InterNetNews NNRP server INN 2.6.0 (20120622 prerelease)
  ready (posting ok)
post
  340 Ok, recommended message-ID <knlm4l$e57$1@news.mixmin.net>
From: foo <foo@bar.com>
Newsgroups: alt.test
Subject: This is a test
  
This is a test of stunnel to mixmin.
..
240 Article received <knlm4l$e57$1@news.mixmin.net>
quit
205 Bye!
Connection closed by foreign host.

---- skipping back to Pan setup -----

[Pan]Edit->Edit News Servers->Add->(see below)->OK
     Address: localhost
     Port: 2119

Then refresh groups:
[Pan]Groups->Refresh Group List

Test Pan setup by reading & sending a message to alt.test.
[Pan]Post->Post to Newsgroup->alt.test

This finally worked for me at this point!
Woo hoo!
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#150006
Author: Nadegda
Date: Tue, 30 Apr 2013 06:09
21 lines
2396 bytes
On Tue, 30 Apr 2013 05:32:26 +0000, Avatar wrote:

> Avatar wrote on Mon, 29 Apr 2013 19:45:32 +0000:
> 
>> For security (I guess), I'll add the two set?id lines & reboot and
>> report back.
> 
> Well that was a flop!
> 
> When I added these two lines, posting to Mixmin via stunnel (from Pan)
> instantly stopped working:
>  setuid = nobody
>  setgid = nobody
> 
> When I removed those added lines, posting to Mixmin via stunnel (from
> Pan) immediately worked again!

Could be that the "nobody" account on your machine doesn't have the right 
permissions set to be able to access the network. That would also explain 
the previous DNS failure reported by stunnel when other applications were 
resolving names just fine.
Re: If you're on Linux & if Mixmin is working -> please tail the stunnel log file
#150028
Author: Avatar
Date: Tue, 30 Apr 2013 12:51
15 lines
2184 bytes
Nadegda wrote on Tue, 30 Apr 2013 06:09:56 +0000:

> Could be that the "nobody" account on your machine doesn't have the right 
> permissions set to be able to access the network. That would also explain 
> the previous DNS failure reported by stunnel when other applications were 
> resolving names just fine.

Makes sense. 

Any good installation guide for stunnel should then have a test for whether
nobody can access the network.

Is there a simple test of that? 
What does it mean to "access the network" anyway?
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