Configuring Leafnode
Config files
/etc/leafnode/config,
/etc/inetd.conf and
/etc/xinetd.conf
Leafnode may be configured to use
inetd by adding an entry
to the /etc/inetd.conf file with the following
command:
echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
>> /etc/inetd.conf
Alternatively, Leafnode may be configured to
use xinetd by adding an entry to the
/etc/xinetd.conf file with the following command:
cat >> /etc/xinetd.conf << "EOF"
service nntp
{
flags = NAMEINARGS NOLIBWRAP
socket_type = stream
protocol = tcp
wait = no
user = news
server = /usr/sbin/tcpd
server_args = /usr/sbin/leafnode
instances = 7
per_source = 3
}
EOF
The /etc/news/config file must be
edited to reflect the name of the upstream NNTP
provider. Copy the
example configuration file to /etc/news/config
and save the original for reference:
cp /etc/news/config.example /etc/news/config
Change the
server =
entry to reflect your news provider.
The NNTPSERVER environment variable must be set to
127.0.0.1 to prevent news clients from reading news from the upstream feed,
add the following to /etc/profile or
$HOME/.bash_profile:
export NNTPSERVER=127.0.0.1