🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: news.software.nntp
7 messages
7 total messages Started by zguoqi Sun, 18 Dec 2005 01:42
INN peering configuration example
#72846
Author: zguoqi
Date: Sun, 18 Dec 2005 01:42
31 lines
1945 bytes
Dear sir,

Finally, we got our news server setup properly and will be launching
our new web interface in the coming week.

I am still using suck new but arranging peering with some other
partners now. I am not very sure how can I do in the configuration
file. I read from inn manual, it says that I need to configure
incoming.conf and newsfeed.conf.

For example, if I want to peer with sitex.com, I will do the following.


newsfeed.conf

test2\
	:nl.*,es.*,uk.*,fr.*,it.*,!junk*,!control*\
	:Tf,Wf:

incoming.conf

peer test2 {
  hostname:         "sitex.com"
 patterns:             *
}

nntpsend.ctl
test2:in.sitex.com:2m

Does above right? Do I missing something here?
Re: INN peering configuration example
#72847
Author: Xavier Roche
Date: Sun, 18 Dec 2005 09:04
83 lines
3843 bytes
zguoqi@gmail.com wrote:
> For example, if I want to peer with sitex.com, I will do the following.
> newsfeed.conf
> test2\
> 	:nl.*,es.*,uk.*,fr.*,it.*,!junk*,!control*\
> 	:Tf,Wf:

First I'm not sure to understand what you want to acheive - do you 
intend to get a "real" feed with a peering partner ?

In this case, why Tf,Wf ? (type of feed: file, and only token from 
storage API sent ?)
This is probably good for suck but not for a real feed.

And I'm not sure !control* is necessary (this is a virtual group)
You can also add @*.bina*,@*.bain*,@unidata.* in the path i you want to 
be sure that no binaries are included (text feed only ?)

Example of entry (taken from my newsfeeds.conf)

foo.example.com/foo.example.com\
	:*,@*.bina*,@*.bain*,@unidata.*,!local.*\
	:Tm:innfeed!

or in your case:
test2/test2\
	:nl.*,es.*,uk.*,fr.*,it.*,@*.bina*,@*.bain*,@unidata.*,!local.*\
	:Tm:innfeed!

(note: if you are taking only text, exchanging all groups does not takes 
too much bandwidth - approx. 5KB/s average)

Ensure that the control channel is handled in newsfeeds:

# The special feed that handles all newsgroup control messages.  Only
# disable this if you want to ignore all newsgroup control messages; INN
# no longer handles any control messages except cancel internally.
controlchan!\
	:!*,control,control.*,!control.cancel\
	:Tc,Wnsm:/usr/lib/news/bin/controlchan

(change the controlchan path if necessary)

and ensure that innfeed is enabled:

# innfeed funnel master.
innfeed!\
	:!*\
	:Tc,Wnm*:/usr/lib/news/bin/startinnfeed

(change the startinnfeed path if necessary)

And you can re-enable this if you disabled it (suck):

# Empty default subscription list, reject all incoming articles with a
# distribution of "local" or "collabra-internal," accept all others.
ME:!*/!local,!collabra-internal::

> incoming.conf
> peer test2 {
>   hostname:         "sitex.com"
>  patterns:             *
> }

patterns: * is not necessary (default)

> nntpsend.ctl
> test2:in.sitex.com:2m
> Does above right? Do I missing something here?

If you intend to make a real feed, forget nntpsend and configure 
innfeed.conf:

peer test2 {
	ip-name:                sitex.com
}

And of course disable all cron jobs that were potentially doing things 
(such as nnptsend/suck jobs)

After restarting the server on both sides, you should have two sockets 
connected (one from your server to the remote :119, the other one from 
the remote server to your :119)
Re: INN peering configuration example
#72855
Author: zguoqi
Date: Tue, 20 Dec 2005 11:10
6 lines
1494 bytes
thanks a lot for your detail reply.

I am testing now...

But do you think Suck and Peer can work together?
Re: INN peering configuration example
#72856
Author: ruud
Date: Tue, 20 Dec 2005 11:16
8 lines
1339 bytes
zguoqi@gmail.com wrote:
 
> But do you think Suck and Peer can work together?

Yes, no problem.
-- 
Gr. Ruud
http://www.nl-netwerken.com
Re: INN peering configuration example
#72858
Author: Xavier Roche
Date: Tue, 20 Dec 2005 11:16
5 lines
1490 bytes
zguoqi@gmail.com wrote:
> But do you think Suck and Peer can work together?

I dunno - but having a real (realtime) peering makes suck totally 
useless, IMHO.
Re: INN peering configuration example
#72857
Author: Andy Peterson
Date: Tue, 20 Dec 2005 11:35
14 lines
1644 bytes
Suck and peering works well together..  I'm using both.  I get
fed two regional hierarchies by peers, and get a few selected 
newsgroups from the big8 with suck from another newshost.  Works
very well together indeed!

/ Andy

zguoqi@gmail.com wrote:
> thanks a lot for your detail reply.
> 
> I am testing now...
> 
> But do you think Suck and Peer can work together?
> 
Re: INN peering configuration example
#72860
Author: Frank Slootweg
Date: Tue, 20 Dec 2005 15:26
23 lines
2383 bytes
Xavier Roche <xroche@free.fr.nospam.invalid> wrote:
> zguoqi@gmail.com wrote:
> > But do you think Suck and Peer can work together?
> 
> I dunno - but having a real (realtime) peering makes suck totally 
> useless, IMHO.

  suck can, for example, be useful if you want to have a dynamic demand
*pull* type of operation. I had such a setup where, in certain
hierachies, I sucked only those groups which were actually read. If
people stopped reading a group for a certain period, I stopped sucking
it and inserted a dummy article in the group saying so. When someone
read such an article, the sucking process was started again.

  I.e. an advantage of suck is that the *receiving* end controls what is
received (i.e. 'pull'), not the sending end (i.e. 'push') [1]. I've
always considered that an illogical/counter-intuitive limitation of how
a 'normal' feed works. It probably made some sense when we still used
UUCP, but, IMO, not since we (mainly) use NNTP.

[1] It's of course fine that the source end does control what *can* be
received, but the target end should be able to determine which part of
the "can" selection *is* received.
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