Thread View: news.software.nntp
16 messages
16 total messages
Started by Jerome Kaidor
Tue, 18 Sep 2001 22:59
Local connect to INN in server mode?
Author: Jerome Kaidor
Date: Tue, 18 Sep 2001 22:59
Date: Tue, 18 Sep 2001 22:59
21 lines
1675 bytes
1675 bytes
Hello,
I just got INN working on my local machine. Without a source of
external articles, it's not much use, though. So I got a couple of
packages that promise to get articles out of my local ISP. "Suck", and
"Gulp".
It seems that both of these packages require an NNTP connection that
can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd
only does "reader mode".
Is there a way to tell INN to listen on a second port "itself", without
using nnrpd? I tried adding a peer to innfeed.conf, but that didn't do
anything. I'm imagining that if INN listened on a port itself, it would
do server mode, right?
Thanks,
- Jerry Kaidor ( jerry@tr2.com )
Re: Local connect to INN in server mode?
Author: Franz Georg Kรถhler
Date: Tue, 18 Sep 2001 23:31
Date: Tue, 18 Sep 2001 23:31
16 lines
1638 bytes
1638 bytes
* quoting [Jerome Kaidor <jerryk@best.com>] > > It seems that both of these packages require an NNTP connection that > can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd > only does "reader mode". > > Is there a way to tell INN to listen on a second port "itself", without > using nnrpd? I tried adding a peer to innfeed.conf, but that didn't do > anything. I'm imagining that if INN listened on a port itself, it would > do server mode, right? You're looking for incoming.conf .
Re: Local connect to INN in server mode?
Author: Jerome Kaidor
Date: Wed, 19 Sep 2001 00:37
Date: Wed, 19 Sep 2001 00:37
26 lines
1914 bytes
1914 bytes
In article <9o8lfu$aos$1@orion.bofh.hanau.net>,
Franz Georg =?ISO-8859-1?Q?K=F6hler?= <fgkoehler@openunix.de> wrote:
>* quoting [Jerome Kaidor <jerryk@best.com>]
>>
>> It seems that both of these packages require an NNTP connection that
>> can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd
>> only does "reader mode".
>>
>> Is there a way to tell INN to listen on a second port "itself", without
>> using nnrpd? I tried adding a peer to innfeed.conf, but that didn't do
>> anything. I'm imagining that if INN listened on a port itself, it would
>> do server mode, right?
>
>You're looking for incoming.conf .
>
*** It didn't do it. I added :
peer suckin {
hostname: "localhost, 127.0.0.1"
port: 7575
}
...to incoming.conf, and it made no difference.
- Jerry Kaidor ( jerry@tr2.com )
Re: Local connect to INN in server mode?
Author: Russ Allbery
Date: Wed, 19 Sep 2001 01:40
Date: Wed, 19 Sep 2001 01:40
21 lines
1688 bytes
1688 bytes
Jerome Kaidor <jerryk@best.com> writes:
> It seems that both of these packages require an NNTP connection that can
> do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd
> only does "reader mode".
That's not a normal configuration of INN.
> Is there a way to tell INN to listen on a second port "itself", without
> using nnrpd?
Yes, following the standard INN installation procedure will cause innd to
listen on port 119 and hand reading connections off to nnrpd while
handling feed connections internally.
--
Russ Allbery (rra@stanford.edu) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Re: Local connect to INN in server mode?
Author: Jerome Kaidor
Date: Wed, 19 Sep 2001 03:33
Date: Wed, 19 Sep 2001 03:33
45 lines
2797 bytes
2797 bytes
In article <yl4rq0neke.fsf@windlord.stanford.edu>,
Russ Allbery <rra@stanford.edu> wrote:
>Jerome Kaidor <jerryk@best.com> writes:
>
>> It seems that both of these packages require an NNTP connection that can
>> do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd
>> only does "reader mode".
>
>That's not a normal configuration of INN.
>
>> Is there a way to tell INN to listen on a second port "itself", without
>> using nnrpd?
>
>Yes, following the standard INN installation procedure will cause innd to
>listen on port 119 and hand reading connections off to nnrpd while
>handling feed connections internally.
>
*** How does it know the difference between a reader and a feed? Seems to
me that one tcp connect ( from localhost on port 119 ) looks much like
another, until the connecting process ( or person ) starts sending text.
( use the source, Luke.... )
In rc.c, I find :
------- snip ----------------------------
/* See if it's one of our servers. */
for (name = NULL, rp = RCpeerlist, i = RCnpeerlist; --i >= 0; rp++)
if (rp->Address.s_addr == remote.sin_addr.s_addr) {
name = rp->Name;
break;
}
/* If not a server, and not allowing anyone, hand him off unless
not spawning nnrpd in which case we return an error. */
----------- endsnip ---------------------
...sounds pretty much like the behavior I described. How can it know the
difference? Although I think I can see how to make my thing work - just
add a test for the socket # to the loop where it's looking for a peer. But
that would be a hack.... I'm sure it works as you say, I just don't
understand how.
- Jerry Kaidor
Re: Local connect to INN in server mode?
Author: Jeffrey M. Vinocur
Date: Wed, 19 Sep 2001 03:42
Date: Wed, 19 Sep 2001 03:42
21 lines
1831 bytes
1831 bytes
In article <tmUp7.24195$Up.467469@sea-read.news.verio.net>, Jerome Kaidor <jerryk@best.com> wrote: >In article <yl4rq0neke.fsf@windlord.stanford.edu>, >Russ Allbery <rra@stanford.edu> wrote: >> >>Yes, following the standard INN installation procedure will cause innd to >>listen on port 119 and hand reading connections off to nnrpd while >>handling feed connections internally. > >*** How does it know the difference between a reader and a feed? Seems to >me that one tcp connect ( from localhost on port 119 ) looks much like >another, until the connecting process ( or person ) starts sending text. Umm, it looks for the IP in incoming.conf, in which you've specified all incoming feeds. -- Jeffrey M. Vinocur jeff@litech.org
Re: Local connect to INN in server mode?
Author: Jerome Kaidor
Date: Wed, 19 Sep 2001 04:34
Date: Wed, 19 Sep 2001 04:34
26 lines
2199 bytes
2199 bytes
In article <9o947j$fgi$8@marduk.litech.org>,
Jeffrey M. Vinocur <jeff@litech.org> wrote:
>In article <tmUp7.24195$Up.467469@sea-read.news.verio.net>,
>Jerome Kaidor <jerryk@best.com> wrote:
>>In article <yl4rq0neke.fsf@windlord.stanford.edu>,
>>Russ Allbery <rra@stanford.edu> wrote:
>>>
>>>Yes, following the standard INN installation procedure will cause innd to
>>>listen on port 119 and hand reading connections off to nnrpd while
>>>handling feed connections internally.
>>
>>*** How does it know the difference between a reader and a feed? Seems to
>>me that one tcp connect ( from localhost on port 119 ) looks much like
>>another, until the connecting process ( or person ) starts sending text.
>
>Umm, it looks for the IP in incoming.conf, in which you've
>specified all incoming feeds.
>
*** But in this case, I want to hook a newsreader is at the same IP address
as the streamer ( innxmit )!
Well, I suppose I could make it work by just not reading News on this
particular machine.
- Jerry Kaidor
Re: Local connect to INN in server mode?
Author: Jeffrey M. Vinocur
Date: Wed, 19 Sep 2001 05:34
Date: Wed, 19 Sep 2001 05:34
26 lines
1883 bytes
1883 bytes
In article <ifVp7.24201$Up.467529@sea-read.news.verio.net>, Jerome Kaidor <jerryk@best.com> wrote: >In article <9o947j$fgi$8@marduk.litech.org>, >Jeffrey M. Vinocur <jeff@litech.org> wrote: >>In article <tmUp7.24195$Up.467469@sea-read.news.verio.net>, >>Jerome Kaidor <jerryk@best.com> wrote: >> >>>*** How does it know the difference between a reader and a feed? >> >>Umm, it looks for the IP in incoming.conf, in which you've >>specified all incoming feeds. >> >*** But in this case, I want to hook a newsreader is at the same IP address >as the streamer ( innxmit )! Then the reader will connect, get the INN welcome, send the "mode reader" command, and get the nnrpd welcome. Try it. -- Jeffrey M. Vinocur jeff@litech.org
Re: Local connect to INN in server mode?
Author: Frank Slootweg
Date: Wed, 19 Sep 2001 09:45
Date: Wed, 19 Sep 2001 09:45
20 lines
1697 bytes
1697 bytes
Jerome Kaidor <jerryk@best.com> wrote: > > Hello, > > I just got INN working on my local machine. Without a source of > external articles, it's not much use, though. So I got a couple of > packages that promise to get articles out of my local ISP. "Suck", and > "Gulp". > > It seems that both of these packages require an NNTP connection that > can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd > only does "reader mode". [deleted] I don't know about gulp, but suck does *not* require "server mode". It was designed to do exactly what you want. See the sample scripts in suck's "sample" directory. In my version, 3.9.2, it is called "get.news.innxmit". I think that in newer versions it is called slightly differently, but still with "inn" in the name.
Re: Local connect to INN in server mode?
Author: Jerome Kaidor
Date: Wed, 19 Sep 2001 14:02
Date: Wed, 19 Sep 2001 14:02
35 lines
2461 bytes
2461 bytes
In article <9o9pg7$a09$2@support.neth.hp.com>,
Frank Slootweg <franks@support.neth.hp.com> wrote:
>Jerome Kaidor <jerryk@best.com> wrote:
>>
>> Hello,
>>
>> I just got INN working on my local machine. Without a source of
>> external articles, it's not much use, though. So I got a couple of
>> packages that promise to get articles out of my local ISP. "Suck", and
>> "Gulp".
>>
>> It seems that both of these packages require an NNTP connection that
>> can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd
>> only does "reader mode".
>[deleted]
>
> I don't know about gulp, but suck does *not* require "server mode". It
>was designed to do exactly what you want. See the sample scripts in
>suck's "sample" directory. In my version, 3.9.2, it is called
>"get.news.innxmit". I think that in newer versions it is called slightly
>differently, but still with "inn" in the name.
*** Suck 4.2.5 likes to batch up everything it receives in
a bunch of disk files. One file per article, plus a batch file. Then you
call innxmit with the batch file that suck created. With the
older method, you would pipe suck's output to another program called
"lpost".
Now lpost is not compiled or installed by default,and is included "only
for legacy purposes", and even its man page says not to use it, because it's
not very efficient.
- Jerry Kaidor ( jerry@tr2.com )
Re: Local connect to INN in server mode?
Author: Jerome Kaidor
Date: Wed, 19 Sep 2001 14:04
Date: Wed, 19 Sep 2001 14:04
31 lines
2071 bytes
2071 bytes
In article <9o9aon$fgi$12@marduk.litech.org>,
Jeffrey M. Vinocur <jeff@litech.org> wrote:
>In article <ifVp7.24201$Up.467529@sea-read.news.verio.net>,
>Jerome Kaidor <jerryk@best.com> wrote:
>>In article <9o947j$fgi$8@marduk.litech.org>,
>>Jeffrey M. Vinocur <jeff@litech.org> wrote:
>>>In article <tmUp7.24195$Up.467469@sea-read.news.verio.net>,
>>>Jerome Kaidor <jerryk@best.com> wrote:
>>>
>>>>*** How does it know the difference between a reader and a feed?
>>>
>>>Umm, it looks for the IP in incoming.conf, in which you've
>>>specified all incoming feeds.
>>>
>>*** But in this case, I want to hook a newsreader is at the same IP address
>>as the streamer ( innxmit )!
>
>Then the reader will connect, get the INN welcome, send the
>"mode reader" command, and get the nnrpd welcome.
>
>Try it.
>
>
*** So what sort of misconfiguration might result in getting ONLY the nnrpd
welcome?
- Jerry Kaidor ( jerry@tr2.com )
Re: Local connect to INN in server mode?
Author: Andrew Gierth
Date: Wed, 19 Sep 2001 16:22
Date: Wed, 19 Sep 2001 16:22
19 lines
1786 bytes
1786 bytes
>>>>> "Jerome" == Jerome Kaidor <jerryk@best.com> writes: >> Then the reader will connect, get the INN welcome, send the >> "mode reader" command, and get the nnrpd welcome. >> >> Try it. Jerome> *** So what sort of misconfiguration might result in getting Jerome> ONLY the nnrpd welcome? Failing to list localhost in the incoming.conf, or failing to reload incoming.conf after adding it. This is assuming you're running the standard configuration of innd on port 119, and not using daemon-mode nnrpd or similar. -- Andrew.
Re: Local connect to INN in server mode?
Author: tyro01
Date: Wed, 19 Sep 2001 19:44
Date: Wed, 19 Sep 2001 19:44
24 lines
1971 bytes
1971 bytes
In news.software.nntp, <jerryk@best.com> (Jerome Kaidor) wrote:
> I just got INN working on my local machine. Without a source of
> external articles, it's not much use, though. So I got a couple of
> packages that promise to get articles out of my local ISP. "Suck", and
> "Gulp".
> It seems that both of these packages require an NNTP connection that
> can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd
> only does "reader mode".
> Is there a way to tell INN to listen on a second port "itself", without
> using nnrpd? I tried adding a peer to innfeed.conf, but that didn't do
> anything. I'm imagining that if INN listened on a port itself, it would
> do server mode, right?
at rc.news.
-WHAT=${INNDSTART}
+WHAT="${INNDSTART} -P433"
and you need to modify suck_config.h as following.
-#define LOCAL_PORT 119 /* port to talk to on local host */
+#define LOCAL_PORT 433 /* port to talk to on local host */
Re: Local connect to INN in server mode?
Author: Frank Slootweg
Date: Thu, 20 Sep 2001 07:32
Date: Thu, 20 Sep 2001 07:32
45 lines
3065 bytes
3065 bytes
Jerome Kaidor <jerryk@best.com> wrote: > In article <9o9pg7$a09$2@support.neth.hp.com>, > Frank Slootweg <franks@support.neth.hp.com> wrote: >>Jerome Kaidor <jerryk@best.com> wrote: >>> >>> Hello, >>> >>> I just got INN working on my local machine. Without a source of >>> external articles, it's not much use, though. So I got a couple of >>> packages that promise to get articles out of my local ISP. "Suck", and >>> "Gulp". >>> >>> It seems that both of these packages require an NNTP connection that >>> can do "server mode". INN uses nnrpd to monitor TCP port 119, and nnrpd >>> only does "reader mode". >>[deleted] >> >> I don't know about gulp, but suck does *not* require "server mode". It >>was designed to do exactly what you want. See the sample scripts in >>suck's "sample" directory. In my version, 3.9.2, it is called >>"get.news.innxmit". I think that in newer versions it is called slightly >>differently, but still with "inn" in the name. > > *** Suck 4.2.5 likes to batch up everything it receives in > a bunch of disk files. One file per article, plus a batch file. Then you > call innxmit with the batch file that suck created. With the > older method, you would pipe suck's output to another program called > "lpost". > > Now lpost is not compiled or installed by default,and is included "only > for legacy purposes", and even its man page says not to use it, because it's > not very efficient. Sigh! Have you *checked* the scripts I referred to? I don't think so. Suck *can* do that (use innxmit) but the supplied scripts do *not* do that (because, as you found, in most cases it is the wrong thing to do). They let *suck* do the posting to the local server (using "mode reader"). For *that* reason lpost is obsolete (like you say). So please RTFS. If needed, I can post the (3.9.2) script. AFAIK, that can not handle the *remote* posting when the local server uses non-tradspool, but at least it shows you how to do the sucking and local posting.
Re: Local connect to INN in server mode?
Author: Jerry Kaidor
Date: Thu, 20 Sep 2001 17:11
Date: Thu, 20 Sep 2001 17:11
75 lines
3740 bytes
3740 bytes
"Frank Slootweg" <franks@neth.hp.com> wrote in message
news:9oc61i$ir3$3@support.neth.hp.com...
> Jerome Kaidor <jerryk@best.com> wrote:
> > In article <9o9pg7$a09$2@support.neth.hp.com>,
> > Frank Slootweg <franks@support.neth.hp.com> wrote:
> >>Jerome Kaidor <jerryk@best.com> wrote:
> >>>
> >>> Hello,
> >>>
> >>> I just got INN working on my local machine. Without a source of
> >>> external articles, it's not much use, though. So I got a couple of
> >>> packages that promise to get articles out of my local ISP. "Suck",
and
> >>> "Gulp".
> >>>
> >>> It seems that both of these packages require an NNTP connection
that
> >>> can do "server mode". INN uses nnrpd to monitor TCP port 119, and
nnrpd
> >>> only does "reader mode".
> >>[deleted]
> >>
> >> I don't know about gulp, but suck does *not* require "server mode". It
> >>was designed to do exactly what you want. See the sample scripts in
> >>suck's "sample" directory. In my version, 3.9.2, it is called
> >>"get.news.innxmit". I think that in newer versions it is called slightly
> >>differently, but still with "inn" in the name.
> >
> > *** Suck 4.2.5 likes to batch up everything it receives in
> > a bunch of disk files. One file per article, plus a batch file. Then
you
> > call innxmit with the batch file that suck created. With the
> > older method, you would pipe suck's output to another program called
> > "lpost".
> >
> > Now lpost is not compiled or installed by default,and is included
"only
> > for legacy purposes", and even its man page says not to use it, because
it's
> > not very efficient.
>
> Sigh! Have you *checked* the scripts I referred to? I don't think so.
>
*** Could be, Frank. There are a _LOT_ of scripts in the world. A _LOT_ of
FAQ's.
A LOT of source. a LOT of packages, a LOT of software interacting with
other
software in a LOT of ways. Any rumours of my own infallibility are vastly
exaggerated.
But there is no need to get snippy. I especially didn't appreciate the "F"
in RTFS.
That being said, I got it working! I started with a script that I
found in the google
USENET archive. It's a few years old, so it uses INNXMIT. It turns out
that my main
problem was an old Inews that was installed in /usr/bin, which apparently
was not issuing
the "mode reader" command.
- Jerry Kaidor (
jerry@tr2.com )
Re: Local connect to INN in server mode?
Author: Frank Slootweg
Date: Fri, 21 Sep 2001 09:13
Date: Fri, 21 Sep 2001 09:13
77 lines
4765 bytes
4765 bytes
Jerry Kaidor <jerry@tr2.com> wrote: > "Frank Slootweg" <franks@neth.hp.com> wrote in message > news:9oc61i$ir3$3@support.neth.hp.com... >> Jerome Kaidor <jerryk@best.com> wrote: >> > In article <9o9pg7$a09$2@support.neth.hp.com>, >> > Frank Slootweg <franks@support.neth.hp.com> wrote: >> >>Jerome Kaidor <jerryk@best.com> wrote: >> >>> >> >>> Hello, >> >>> >> >>> I just got INN working on my local machine. Without a source of >> >>> external articles, it's not much use, though. So I got a couple of >> >>> packages that promise to get articles out of my local ISP. "Suck", > and >> >>> "Gulp". >> >>> >> >>> It seems that both of these packages require an NNTP connection > that >> >>> can do "server mode". INN uses nnrpd to monitor TCP port 119, and > nnrpd >> >>> only does "reader mode". >> >>[deleted] >> >> >> >> I don't know about gulp, but suck does *not* require "server mode". It >> >>was designed to do exactly what you want. See the sample scripts in >> >>suck's "sample" directory. In my version, 3.9.2, it is called >> >>"get.news.innxmit". I think that in newer versions it is called slightly >> >>differently, but still with "inn" in the name. >> > >> > *** Suck 4.2.5 likes to batch up everything it receives in >> > a bunch of disk files. One file per article, plus a batch file. Then > you >> > call innxmit with the batch file that suck created. With the >> > older method, you would pipe suck's output to another program called >> > "lpost". >> > >> > Now lpost is not compiled or installed by default,and is included > "only >> > for legacy purposes", and even its man page says not to use it, because > it's >> > not very efficient. >> >> Sigh! Have you *checked* the scripts I referred to? I don't think so. >> > *** Could be, Frank. There are a _LOT_ of scripts in the world. A > _LOT_ of FAQ's. > A LOT of source. a LOT of packages, a LOT of software interacting > with other software in a LOT of ways. Any rumours of my own > infallibility are vastly exaggerated. > But there is no need to get snippy. I especially didn't appreciate > the "F" in RTFS. Jerry, the script I mentioned is *supplied with* suck. It is in suck's "sample" directory, and I *said so*. So there just is no question of "a LOT of <whatever>", but just one script, 'in front of you'. I can understand that you think I was snippy and that the "F" is unjustified, but I hope that you also realize that you needlessly wasted my time. > That being said, I got it working! I started with a script that I > found in the google USENET archive. It's a few years old, so it uses > INNXMIT. It turns out that my main problem was an old Inews that was > installed in /usr/bin, which apparently was not issuing the "mode > reader" command. I am glad for you that your problem is solved. I still advise you to have another look at the mentioned script. If you use that, then you will have a 'standard' (i.e. provided by the author and used by many) setup and it will be easier for people to help you with any problems which you might have. If you have more questions/problems, then please be very specific about which operation and between which components I.e. for example if you have problem posting, then specify posting how and from where to where. IMO, your original posting was not very clear in this respect (for example: "require an NNTP connection that can do "server mode"", i.e. which operation (sucking or posting) and from where to where?).
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