Article View: news.software.readers
Article #245358Re: [newspost] and stunnel
From: Bill
Date: Sun, 24 Apr 2011 17:39
Date: Sun, 24 Apr 2011 17:39
42 lines
2413 bytes
2413 bytes
"John F. Morse" <john@example.invalid> wrote:
[...]
>Perhaps the first Google hit is exactly what you seek?:
>
>http://forum.soft32.com/linux2/stunnel-NNTP-ftopict30184.html
He stated he was able to connect through stunnel to his
news server using Pan, so my guess is that he has stunnel
configured properly. He is also able to connect to his
news server with newspost, but can't connect to stunnel.
I'm assuming he's using http://newspost.unixcab.org/ and
the error is coming from this section in socket.c
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Try to convert host name as dotted decimal */
#if (defined(sun) || defined(__sun)) && (defined(__svr4) || \
defined(__SVR4) || defined(__svr4__))
tinaddr = inet_addr(address);
if ( tinaddr != -1 )
#else
if ( inet_aton(address, &inaddr) != 0 )
#endif
{
memcpy(&serv_addr.sin_addr, &inaddr, sizeof(inaddr));
}
else /* If that failed, then look up the host name */
{
if (NULL == (hp = gethostbyname(address)))
return FAILED_TO_RESOLVE_HOST;
memcpy(&serv_addr.sin_addr, hp->h_addr, hp->h_length);
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In his case, he's either not passing the numeric IP
in a recognizable format, inet_aton won't allow 127.0.01
or gethostbyname is failing.
I suggested the HOSTS file trick to bypass inet_aton
My only other suggestion is to use telnet (or even ping)
to connect to verify the HOSTS trick is working.
Technical Details
Message-ID:
<4kucp3.cat.17.1@news.alt.net>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feeder1.hal-mli.net!news.alt.netReferences:
<EqmdnWeIGtNGey_QnZ2dnUVZ8nWdnZ2d@giganews.com> <4ksd9t.8te.19.1@news.alt.net> <a92dndkKg8oDiCnQnZ2dnUVZ8tqdnZ2d@giganews.com> <ip1htm$1it$1@n102.xanadu-bbs.net>Show Full Headers
Complete Article Headers
Message-ID: <4kucp3.cat.17.1@news.alt.net> Subject: Re: [newspost] and stunnel Date: Sun, 24 Apr 2011 17:39:13 +0000 From: "Bill" References: <EqmdnWeIGtNGey_QnZ2dnUVZ8nWdnZ2d@giganews.com> <4ksd9t.8te.19.1@news.alt.net> <a92dndkKg8oDiCnQnZ2dnUVZ8tqdnZ2d@giganews.com> <ip1htm$1it$1@n102.xanadu-bbs.net> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!num2.nntp.dca.giganews.com!num1.nntp.dca.giganews.com!number.nntp.dca.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!feeder1.hal-mli.net!news.alt.net Newsgroups: news.software.readers Organization: Altopia Corp. - Usenet Access - www.altopia.com Lines: 42 X-No-Archive: yes