Article View: news.software.readers
Article #251573Re: CLI tools that can handle snews:// URLs
From: John F. Morse
Date: Fri, 14 Sep 2012 02:52
Date: Fri, 14 Sep 2012 02:52
87 lines
3820 bytes
3820 bytes
Eli the Bearded wrote: > In news.software.readers, John F. Morse <dont.bother> wrote: > >> Anonymous wrote: >> >>> My next question is how to *post* from the commandline. Lynx can post >>> interactively, but I suspect that the -post_data option is only for >>> http posting. >>> Any usenet tools that are designed to work from the commandline? >>> >> Telnet. >> > > Hahaha. Telnet works fine for an encrypted channel, but will suck at > an SSL link. Normally you'd use 'inews' for this task, but the trn4, > nn, and inn versions of 'inews' I've looked at today do not do SSL. > > You might be able to get openssl to provide the suitable telnet-style > tunnel. > > And... > > I just tried it with my local news server, and it worked just fine. > Lines starting with numbers are exact output from the newsserver > in this cut-and-paste transcript: > > $ openssl s_client -connect news.panix.com:563 > [ lots of openssl output ] > authinfo user USERNAME > 381 PASS required > authinfo pass PASSWORD > 281 Ok > post > 340 Ok, recommended ID <k2thgj$g3g$1@reader1.panix.com> > From: Eli the Bearded <*@eli.users.panix.com> > Newsgroups: panix.test > Subject: openssl s_client -connect news.panix.com:563 > Message-ID: <k2thgj$g3g$1@reader1.panix.com> > > Test post using: > openssl s_client -connect news.panix.com:563 > and typing my post in. > > Elijah > ------ > whee! > . > 240 Article posted <k2thgj$g3g$1@reader1.panix.com> > quit > 205 . > closed > $ > > I then checked the test group and saw my post. First time I've > gotten the panix news server to use "localhost" in NNTP-Posting-Host: > header. > > Elijah > ------ > it also used 127.0.0.1 in X-Trace: > Your telnet session looks normal. Give telnet a try through Stunnel. I use Stunnel to access my INN server when using any non-TLS/SSL newsreaders. It works fine for me. The /etc/stunnel/stunnel.conf stanza would be something like this: [nntps] accept = 119 connect = news.panix.com:563 I don't have trn/trn4 handy, and know nn doesn't support TLS/SSL. However I do use Stunnel for KNode, nn, Pan, slrn, tin, and telnet when I need to get down and dirty. ;-) -- John When a person has -- whether they knew it or not -- already rejected the Truth, by what means do they discern a lie?
Technical Details
Message-ID:
<k2u65t$7sp$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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!pink.octanews.net!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mailReferences:
<6d04a9ecf59311767822dcc625427097@breaka.net> <e02cc929ee86f8e4f13c83d418b3692d@breaka.net> <k2tf83$1t1$1@n102.xanadu-bbs.net> <eli$1209131701@qz.little-neck.ny.us>Show Full Headers
Complete Article Headers
Message-ID: <k2u65t$7sp$1@n102.xanadu-bbs.net> Subject: Re: CLI tools that can handle snews:// URLs Date: Thu, 13 Sep 2012 21:52:45 -0500 From: "John F. Morse" <john@example.invalid> References: <6d04a9ecf59311767822dcc625427097@breaka.net> <e02cc929ee86f8e4f13c83d418b3692d@breaka.net> <k2tf83$1t1$1@n102.xanadu-bbs.net> <eli$1209131701@qz.little-neck.ny.us> 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!border1.nntp.dca3.giganews.com!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!pink.octanews.net!news-out.octanews.net!indigo.octanews.net!news.glorb.com!v102.xanadu-bbs.net!optima2.xanadu-bbs.net!optima11.xanadu-bbs.net!optima5.xanadu-bbs.net!n102.xanadu-bbs.net!xanadu-bbs.net!.POSTED!not-for-mail Newsgroups: news.software.readers Organization: Xanadu BBS Lines: 87 Reply-To: dont.bother NNTP-Posting-Host: 4qHUE4Vte7yJH24F0tJGG5ugKIE Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: newsmaster@xanadu-bbs.net NNTP-Posting-Date: Fri, 14 Sep 2012 02:52:45 +0000 (UTC) User-Agent: Thunderbird 2.0.0.24 (X11/20101027) In-Reply-To: <eli$1209131701@qz.little-neck.ny.us> X-Enigmail-Version: 0.96.0 X-Original-Bytes: 3507