source: server/other/leafnode/leafnode-config.xml@ 5f5a393

10.0 10.1 11.0 11.1 6.0 6.1 6.2 6.2.0 6.2.0-rc1 6.2.0-rc2 6.3 6.3-rc1 6.3-rc2 6.3-rc3 7.10 7.4 7.5 7.6 7.6-blfs 7.6-systemd 7.7 7.8 7.9 8.0 8.1 8.2 8.3 8.4 9.0 9.1 basic bdubbs/svn elogind gnome kde5-13430 kde5-14269 kde5-14686 krejzi/svn lazarus nosym perl-modules qt5new systemd-11177 systemd-13485 trunk upgradedb v1_0 v5_0 v5_0-pre1 v5_1 v5_1-pre1 xry111/intltool xry111/test-20220226
Last change on this file since 5f5a393 was 5f5a393, checked in by Larry Lawrence <larry@…>, 20 years ago

added leafnode and xinetd

git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@124 af4574ff-66df-0310-9fd7-8a98e5e911e0

  • Property mode set to 100644
File size: 2.0 KB
Line 
1<sect2>
2<title>Configuring leafnode</title>
3
4<sect3><title>Config files</title>
5<para><userinput>/etc/leafnode/config,
6/etc/inetd.conf, /etc/xinetd.conf</userinput></para>
7
8<para>leafnode may be configured to use inetd or xinetd as follows:
9</para>
10
11<para>inetd configuration</para>
12<para>Add a leafnode entry to the <filename>/etc/inetd.conf</filename>
13file with the following command:
14<screen><userinput>
15echo "nntp stream tcp nowait news /usr/sbin/tcpd /usr/sbin/leafnode" \
16&gt;&gt; /etc/inetd.conf &amp;&amp;
17</userinput></screen></para>
18
19<para>xinetd configuration</para>
20<para>Add a leafnode entry to the <filename>/etc/xinetd.conf</filename>
21file with the following command:
22<screen><userinput>
23cat &gt;&gt; /etc/xinetd.conf &lt;&lt; "EOF"
24 service nntp
25 {
26 flags = NAMEINARGS NOLIBWRAP
27 socket_type = stream
28 protocol = tcp
29 wait = no
30 user = news
31 server = /usr/sbin/tcpd
32 server_args = /usr/sbin/leafnode
33 instances = 7
34 per_source = 3
35 }
36EOF
37
38</userinput></screen></para>
39
40<para>The <filename>/etc/news/config</filename> file must be
41edited to reflect the name of the upstream NNTP provider. Copy the
42example configuration file to <filename>/etc/news/config</filename>
43and save the original for reference : </para>
44
45<para><screen><userinput>
46cp /etc/news/config.example /etc/news/config
47</userinput></screen></para>
48<para>Change the</para>
49<para><screen><userinput>server = </userinput></screen></para>
50<para>entry to reflect your news provider. </para>
51
52<para>The NNTPSERVER environment variable must be set to 127.0.0.1 to
53prevent news clients from reading news from the upstream feed, add the
54following to <filename>/etc/profile</filename> or
55<filename>$HOME/.bash_profile</filename> :</para>
56<para><screen><userinput>
57export NNTPSERVER=127.0.0.1
58</userinput></screen></para>
59
60</sect3>
61
62</sect2>
63
Note: See TracBrowser for help on using the repository browser.