streaming This key determines whether streaming commands are (Web site layout)
streaming This key determines whether streaming commands are allowed from this host. It is a Boolean value that defaults to true. max-connections This key specifies the maximum number of connections allowed from this group or peer. A value of zero means unlimited (which can also be specified using none). password This key allows you to specify the password that must be used by a peer if it is to be allowed to transfer news. The default is to not require a password. patterns This key specifies the newsgroups that we accept from the associated peer. This field is coded according to precisely the same rules as we used in our newsfeeds file. In our example we have only one host that we are expecting to feed us news: our upstream news provider at Groucho Marx University. We’ll have no password, but we will ensure that we don’t accept any articles for our private newsgroup from outside. Our hosts.nntp looks like: # Virtual Brewery incoming.conf file. # Global settings streaming: true max-connections: 5 # Allow NNTP posting from our local host. peer ME { hostname: “localhost, 127.0.0.1″ } # Allow groucho to send us all newsgroup except our local ones. peer groucho { hostname: news.groucho.edu patterns: !rec.crafts.brewing.private } The nnrp.access file We mentioned earlier that newsreaders, and in fact any host not listed in the hosts.nntp, that connect to the INN news server are handled by the nnrpd program. nnrpd uses the /etc/news/nnrp.access file to determine who is allowed to make use of the news server, and what permissions they should have. The nnrp.access file has a similar structure to the other configuration files we’ve looked at. It comprises a set of patterns used to match against the connecting host’s domain name or IP address, and fields that determine what access and permission it should be given. Each entry should appear on a line by itself, and fields are separated by colons. The last entry in this file that matches the connecting host will be the one used, so again, you should put general patterns first and follow them with more specific ones later in the file. The five fields of each entry in the order they should appear are: Hostname or IP address This field conforms to wildmat(3) pattern-matching rules. It is a pattern that describes the connecting host’s name or IP address. Permissions This field determines what permissions the matching host should be granted. There are two permissons you may configure: R gives read permissions, and P gives posting permissions. Username This field is optional and allows you to specify a username that an NNTP client must log into the server before being allowed to post news articles. This field may be left blank. No user authentication is required to read articles.