mirror of
https://github.com/Zeckmathederg/glfs.git
synced 2025-02-03 14:47:17 +08:00
Update to xinetd configuration files from patch by John Gnew
git-svn-id: svn://svn.linuxfromscratch.org/BLFS/trunk/BOOK@3614 af4574ff-66df-0310-9fd7-8a98e5e911e0
This commit is contained in:
parent
d227be5207
commit
1f672c1133
@ -115,12 +115,15 @@ following command:</para>
|
||||
<screen><userinput><command>echo "sgi_fam/1-2 stream rpc/tcp wait root /usr/sbin/famd fam" \
|
||||
>> /etc/inetd.conf</command></userinput></screen>
|
||||
|
||||
<para>If you use <application>xinetd</application>, add an entry to
|
||||
<filename>/etc/xinetd.conf</filename> with the following command (be
|
||||
sure the "nogroup" group exists):</para>
|
||||
<para>If you use <application>xinetd</application>, the following command will create
|
||||
the <application><acronym>FAM</acronym></application> file as
|
||||
<filename>/etc/xinetd.d/sgi_fam</filename>:
|
||||
(be sure the "nogroup" group exists):</para>
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
||||
# description: FAM - file alteration monitor
|
||||
<screen><userinput><command>cat >> /etc/xinetd.d/sgi_fam << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/sgi_fam
|
||||
|
||||
# description: FAM - file alteration monitor
|
||||
service sgi_fam
|
||||
{
|
||||
type = RPC UNLISTED
|
||||
@ -133,6 +136,8 @@ sure the "nogroup" group exists):</para>
|
||||
rpc_version = 2
|
||||
rpc_number = 391002
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/sgi_fam
|
||||
<command>EOF</command></userinput></screen>
|
||||
|
||||
<para>If you do not have an <command>inetd</command> daemon installed and have
|
||||
|
@ -22,6 +22,10 @@ who wrote what.</para>
|
||||
|
||||
<itemizedlist>
|
||||
|
||||
<listitem><para>March 31st, 2005 [bdubbs]: Updated the install instructions
|
||||
for xinetd to use /etc/xinetd.d/ directory structure. Patch by John Gnew.
|
||||
</para></listitem>
|
||||
|
||||
<listitem><para>March 31st, 2005 [randy]: Updated to libxml2-2.6.18 and
|
||||
libxslt-1.1.13.</para></listitem>
|
||||
|
||||
|
@ -100,13 +100,14 @@ killall inetd || inetd</command></userinput></screen>
|
||||
<para>Issue a <command>killall -HUP inetd</command> to reread the changed
|
||||
<filename>inetd.conf</filename> file.</para>
|
||||
|
||||
<para>If you use <command>xinetd</command>, the following command will add the
|
||||
<application>Qpopper</application> entry to
|
||||
<filename>/etc/xinetd.conf</filename>:</para>
|
||||
<para>If you use <command>xinetd</command>, the following command will create the
|
||||
<application>Qpopper</application> file as <filename>/etc/xinetd.d/pop3</filename>:</para>
|
||||
<indexterm zone="qpopper qpopper-config">
|
||||
<primary sortas="e-etc-xinetd.conf">/etc/xinetd.conf</primary></indexterm>
|
||||
<primary sortas="e-etc-xinetd.conf">/etc/xinetd.d/pop3</primary></indexterm>
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.d/pop3 << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/pop3
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
||||
service pop3
|
||||
{
|
||||
port = 110
|
||||
@ -116,6 +117,8 @@ service pop3
|
||||
user = root
|
||||
server = /usr/sbin/popper
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/pop3
|
||||
<command>EOF</command></userinput></screen>
|
||||
|
||||
<para>Issue a <command>killall -HUP xinetd</command> to reread the changed
|
||||
|
@ -88,7 +88,7 @@ echo anonymous: > /srv/cvsroot/CVSROOT/passwd &&
|
||||
echo anonymous > /srv/cvsroot/CVSROOT/readers</command></userinput></screen>
|
||||
|
||||
<para>If you use <command>inetd</command>, the following command will add the
|
||||
pserver entry to <filename>/etc/inetd.conf</filename>:</para>
|
||||
<application><acronym>CVS</acronym></application> entry to <filename>/etc/inetd.conf</filename>:</para>
|
||||
|
||||
<screen><userinput><command>echo "2401 stream tcp nowait root /usr/bin/cvs cvs -f \
|
||||
--allow-root=/srv/cvsroot pserver" >> /etc/inetd.conf</command></userinput></screen>
|
||||
@ -96,10 +96,12 @@ pserver entry to <filename>/etc/inetd.conf</filename>:</para>
|
||||
<para>Issue a <command>killall -HUP inetd</command> to reread the changed
|
||||
<filename>inetd.conf</filename> file.</para>
|
||||
|
||||
<para>If you use <command>xinetd</command>, the following command will add the
|
||||
pserver entry to <filename>/etc/xinetd.conf</filename>:</para>
|
||||
<para>If you use <command>xinetd</command>, the following command will create the
|
||||
<acronym>CVS</acronym> file as <filename>/etc/xinetd.d/cvspserver</filename>:</para>
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.d/cvspserver << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/cvspserver
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
||||
service cvspserver
|
||||
{
|
||||
port = 2401
|
||||
@ -111,6 +113,8 @@ pserver entry to <filename>/etc/xinetd.conf</filename>:</para>
|
||||
server = /usr/bin/cvs
|
||||
server_args = -f --allow-root=/srv/cvsroot pserver
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/cvspserver
|
||||
<command>EOF</command></userinput></screen>
|
||||
<para>Issue a <command>/etc/rc.d/init.d/xinetd reload</command> to reread the changed
|
||||
<filename>xinetd.conf</filename> file.</para>
|
||||
|
@ -159,11 +159,12 @@ command:</para>
|
||||
<para>Issue a <command>killall -HUP inetd</command> to reread the
|
||||
changed <filename>inetd.conf</filename> file.</para>
|
||||
|
||||
<para>Alternatively, <application>Leafnode</application> may be configured to
|
||||
use <command>xinetd</command> by adding an entry to the
|
||||
<filename>/etc/xinetd.conf</filename> file with the following command:</para>
|
||||
<para>If you use <command>xinetd</command>, the following command will create the
|
||||
<application>Leafnode</application> file as <filename>/etc/xinetd.d/nntp</filename>:</para>
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.d/nntp << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/nntp
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
||||
service nntp
|
||||
{
|
||||
flags = NAMEINARGS NOLIBWRAP
|
||||
@ -176,6 +177,8 @@ use <command>xinetd</command> by adding an entry to the
|
||||
instances = 7
|
||||
per_source = 3
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/nntp
|
||||
<command>EOF</command></userinput></screen>
|
||||
|
||||
<para>Issue a <command>killall -HUP xinetd</command> to reread the
|
||||
|
@ -249,12 +249,14 @@ swat_tunnel entry to <filename>/etc/inetd.conf</filename> (as user root):</para>
|
||||
<para>Issue a <command>killall -HUP inetd</command> to reread the
|
||||
changed <filename>inetd.conf</filename> file.</para>
|
||||
|
||||
<para>If <command>xinetd</command> is used, the following command issued as
|
||||
the root user will add the swat_tunnel entry to
|
||||
<filename>/etc/xinetd.conf</filename> (you may need to modify or remove the
|
||||
<para>If you use <command>xinetd</command>, the following command will create the
|
||||
<application>Samba</application> file as <filename>/etc/xinetd.d/swat_tunnel</filename>:
|
||||
(you may need to modify or remove the
|
||||
<quote>only_from</quote> line to include the desired host[s]):</para>
|
||||
|
||||
<screen><userinput role='root'><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
||||
<screen><userinput role='root'><command>cat >> /etc/xinetd.d/swat_tunnel << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/swat_tunnel
|
||||
|
||||
service swat_tunnel
|
||||
{
|
||||
port = 902
|
||||
@ -265,6 +267,8 @@ service swat_tunnel
|
||||
server = /usr/sbin/swat
|
||||
log_on_failure += USERID
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/swat_tunnel
|
||||
<command>EOF</command></userinput></screen>
|
||||
|
||||
<para>Issue a <command>killall -HUP xinetd</command> to reread the
|
||||
|
@ -203,10 +203,12 @@ authentication, you do not need to run
|
||||
svn stream tcp nowait svn /usr/bin/svnserve svnserve -i
|
||||
<command>EOF</command></userinput></screen>
|
||||
|
||||
<para>If you use <command>xinetd</command>, add the following
|
||||
lines to the <filename>/etc/xinetd.conf</filename> file:</para>
|
||||
<para>If you use <command>xinetd</command>, the following command will create the
|
||||
<application>Subversion server</application> file as <filename>/etc/xinetd.d/svn</filename>:</para>
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.d/svn << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/svn
|
||||
|
||||
<screen><userinput><command>cat >> /etc/xinetd.conf << "EOF"</command>
|
||||
service svn
|
||||
{
|
||||
port = 3690
|
||||
@ -217,6 +219,8 @@ service svn
|
||||
server = /usr/bin/svnserve
|
||||
server_args = -i -r /srv/svn/repositories
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/svn
|
||||
<command>EOF</command></userinput></screen>
|
||||
|
||||
<para>Finally, if you wish to simply start the sever at
|
||||
|
@ -79,10 +79,454 @@ make</command></userinput></screen>
|
||||
<para>Ensure the path to all daemons is
|
||||
<filename class="directory">/usr/sbin</filename>, rather than the default path
|
||||
of <filename class="directory">/usr/etc</filename>, and install the
|
||||
<application>xinetd</application> configuration file by running the following
|
||||
command as the root user:</para>
|
||||
<application>xinetd</application> configuration files by running the following
|
||||
commands as the root user:</para>
|
||||
|
||||
<screen><userinput role='root'><command>cat > /etc/xinetd.conf << "EOF"</command>
|
||||
# Begin /etc/xinetd
|
||||
# Configuration file for xinetd
|
||||
#
|
||||
|
||||
defaults
|
||||
{
|
||||
instances = 60
|
||||
log_type = SYSLOG daemon
|
||||
log_on_success = HOST PID USERID
|
||||
log_on_failure = HOST USERID
|
||||
cps = 25 30
|
||||
}
|
||||
|
||||
# All service files are stored in the /etc/xinetd.d directory
|
||||
#
|
||||
includedir /etc/xinetd.d
|
||||
# End /etc/xinetd
|
||||
<command>EOF</command></userinput></screen>
|
||||
<para>All of the following files have the statement, "disable = yes". To activate
|
||||
any of the services, this statement will need to be changed to "disable = no".</para>
|
||||
|
||||
<note><para>The following files are listed to demonstrate classic
|
||||
<application>xinetd</application> applications. In many cases, these
|
||||
applications are not needed. In some cases, the applications are
|
||||
considered security risks. For example, telnet, rlogin, rexec, and rsh
|
||||
transmit unencrypted usernames and passwords over the network and can be easily
|
||||
replaced with a more secure alternative: ssh.</para></note>
|
||||
|
||||
<screen><userinput role='root'><command>install -d -m755 /etc/xinetd.d &&</command>
|
||||
<command>cat > /etc/xinetd.d/login << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/login
|
||||
|
||||
service login
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
protocol = tcp
|
||||
wait = no
|
||||
user = root
|
||||
server = /usr/sbin/in.rlogind
|
||||
log_type = SYSLOG local4 info
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/login
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/shell << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/shell
|
||||
|
||||
service shell
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
instances = UNLIMITED
|
||||
flags = IDONLY
|
||||
log_on_success += USERID
|
||||
server = /usr/sbin/in.rshd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/shell
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/exec << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/exec
|
||||
|
||||
service exec
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
server = /usr/sbin/in.rexecd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/exec
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/comsat << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/comsat
|
||||
|
||||
service comsat
|
||||
{
|
||||
disable = yes
|
||||
socket_type = dgram
|
||||
wait = yes
|
||||
user = nobody
|
||||
group = tty
|
||||
server = /usr/sbin/in.comsat
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/comsat
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/talk << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/talk
|
||||
|
||||
service talk
|
||||
{
|
||||
disable = yes
|
||||
socket_type = dgram
|
||||
wait = yes
|
||||
user = root
|
||||
server = /usr/sbin/in.talkd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/talk
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/ntalk << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/ntalk
|
||||
|
||||
service ntalk
|
||||
{
|
||||
disable = yes
|
||||
socket_type = dgram
|
||||
wait = yes
|
||||
user = root
|
||||
server = /usr/sbin/in.ntalkd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/ntalk
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/telnet << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/telnet
|
||||
|
||||
service telnet
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
server = /usr/sbin/in.telnetd
|
||||
bind = 127.0.0.1
|
||||
log_on_failure += USERID
|
||||
}
|
||||
|
||||
service telnet
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
# server = /usr/sbin/in.telnetd
|
||||
bind = 192.231.139.175
|
||||
redirect = 128.138.202.20 23
|
||||
log_on_failure += USERID
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/telnet
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/ftp << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/ftp
|
||||
|
||||
service ftp
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
server = /usr/sbin/in.ftpd
|
||||
server_args = -l
|
||||
instances = 4
|
||||
log_on_success += DURATION USERID
|
||||
log_on_failure += USERID
|
||||
access_times = 2:00-8:59 12:00-23:59
|
||||
nice = 10
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/ftp
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/tftp << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/tftp
|
||||
|
||||
service tftp
|
||||
{
|
||||
disable = yes
|
||||
socket_type = dgram
|
||||
wait = yes
|
||||
user = root
|
||||
server = /usr/sbin/in.tftpd
|
||||
server_args = -s /tftpboot
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/tftp
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/finger << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/finger
|
||||
|
||||
service finger
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = nobody
|
||||
server = /usr/sbin/in.fingerd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/finger
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/systat << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/systat
|
||||
|
||||
service systat
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = nobody
|
||||
server = /usr/bin/ps
|
||||
server_args = -auwwx
|
||||
only_from = 128.138.209.0
|
||||
log_on_success = HOST
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/systat
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/netstat << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/netstat
|
||||
|
||||
service netstat
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = nobody
|
||||
server = /usr/ucb/netstat
|
||||
server_args = -f inet
|
||||
only_from = 128.138.209.0
|
||||
log_on_success = HOST
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/netstat
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/echo << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/echo
|
||||
|
||||
service echo
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = echo-stream
|
||||
socket_type = stream
|
||||
protocol = tcp
|
||||
user = root
|
||||
wait = no
|
||||
}
|
||||
|
||||
service echo
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = echo-dgram
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
user = root
|
||||
wait = yes
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/echo
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/chargen << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/chargen
|
||||
|
||||
service chargen
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = chargen-stream
|
||||
socket_type = stream
|
||||
protocol = tcp
|
||||
user = root
|
||||
wait = no
|
||||
}
|
||||
|
||||
service chargen
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = chargen-dgram
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
user = root
|
||||
wait = yes
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/chargen
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/daytime << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/daytime
|
||||
|
||||
service daytime
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = daytime-stream
|
||||
socket_type = stream
|
||||
protocol = tcp
|
||||
user = root
|
||||
wait = no
|
||||
}
|
||||
|
||||
service daytime
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = daytime-dgram
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
user = root
|
||||
wait = yes
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/daytime
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/time << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/time
|
||||
|
||||
service time
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = time-stream
|
||||
socket_type = stream
|
||||
protocol = tcp
|
||||
user = root
|
||||
wait = no
|
||||
}
|
||||
|
||||
|
||||
service time
|
||||
{
|
||||
disable = yes
|
||||
type = INTERNAL
|
||||
id = time-dgram
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
user = root
|
||||
wait = yes
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/time
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/rstatd << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/rstatd
|
||||
|
||||
ervice rstatd
|
||||
{
|
||||
disable = yes
|
||||
type = RPC
|
||||
flags = INTERCEPT
|
||||
rpc_version = 2-4
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
server = /usr/sbin/rpc.rstatd
|
||||
wait = yes
|
||||
user = root
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/rstatd
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/rquotad << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/rquotad
|
||||
|
||||
service rquotad
|
||||
{
|
||||
disable = yes
|
||||
type = RPC
|
||||
rpc_version = 1
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
wait = yes
|
||||
user = root
|
||||
server = /usr/sbin/rpc.rstatd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/rquotad
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/rusersd << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/rusersd
|
||||
|
||||
service rusersd
|
||||
{
|
||||
disable = yes
|
||||
type = RPC
|
||||
rpc_version = 1-2
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
wait = yes
|
||||
user = root
|
||||
server = /usr/sbin/rpc.rusersd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/rusersd
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/sprayd << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/sprayd
|
||||
|
||||
service sprayd
|
||||
{
|
||||
disable = yes
|
||||
type = RPC
|
||||
rpc_version = 1
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
wait = yes
|
||||
user = root
|
||||
server = /usr/sbin/rpc.sprayd
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/sprayd
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/walld << "EOF" &&</command>
|
||||
# Begin /etc/xinetd.d/walld
|
||||
|
||||
service walld
|
||||
{
|
||||
disable = yes
|
||||
type = RPC
|
||||
rpc_version = 1
|
||||
socket_type = dgram
|
||||
protocol = udp
|
||||
wait = yes
|
||||
user = nobody
|
||||
group = tty
|
||||
server = /usr/sbin/rpc.rwalld
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/walld
|
||||
<command>EOF
|
||||
cat > /etc/xinetd.d/irc << "EOF"</command>
|
||||
# Begin /etc/xinetd.d/irc
|
||||
|
||||
service irc
|
||||
{
|
||||
disable = yes
|
||||
socket_type = stream
|
||||
wait = no
|
||||
user = root
|
||||
flags = SENSOR
|
||||
type = INTERNAL
|
||||
bind = 192.168.1.30
|
||||
deny_time = 60
|
||||
}
|
||||
|
||||
# End /etc/xinetd.d/irc
|
||||
<command>EOF</command>
|
||||
|
||||
<screen><userinput role='root'><command>sed -e 's/etc/sbin/g' xinetd/sample.conf > /etc/xinetd.conf</command>
|
||||
</userinput></screen>
|
||||
|
||||
<para>The format of the <filename>/etc/xinetd.conf</filename> is
|
||||
|
Loading…
Reference in New Issue
Block a user