Европейский Университет в Санкт-Петербурге
Опубликован: 19.10.2005 | Доступ: свободный | Студентов: 1764 / 170 | Оценка: 4.31 / 3.82 | Длительность: 18:28:00
Лекция 4:

Наблюдение за сетевыми соединениями и исправление неполадок

< Лекция 3 || Лекция 4: 1234 || Лекция 5 >

Процесс inetd

Демон inetd выполняет функцию привратника: как только пакет приходит к воротам системы, inetd определяет, какой процесс надо запустить, чтобы пакет смог добраться по назначению - к этому процессу. Программа inetd сверяет номер порта назначения в пакете с номером порта назначения в файле /etc/inetd.conf - там этот номер в мнемоническом виде указан в первой колонке. Для выяснения соответствия между номерами портов и их мнемоническими обозначениями служит файл /etc/services. Ниже приводится сокращенный пример файла /etc/inetd.conf:

time  stream tcp6  nowait root  internal
time  dgram  udp6  wait  root  internal
# 
# Echo, discard, daytime, and chargen are used primarily for testing.
#
echo	stream	tcp6	nowait	root	internal
echo	dgram	udp6	wait	root	internal
discard 	stream 	tcp6 	nowait 	root 	internal
discard 	dgram 	udp6 	wait 	root 	internal
daytime 	stream 	tcp6 	nowait 	root 	internal
daytime 	dgram 	udp6 	wait 	root 	internal
chargen 	stream 	tcp6 	nowait	root 	internal
chargen 	dgram 	udp6	wait 	root 	internal
#
#
# RPC services syntax:
# <rpc_prog>/<vers> <endpoint-type> rpc/<proto> <flags> <user> \
# <pathname> <args>
#
# <endpoint-type> can be either "tli" or "stream" or "dgram".
# For "stream" and "dgram" assume that the endpoint is a 
# socket descriptor. <proto> can be either a nettype or a 
# netid or a "*". The value is first treated as a nettype. If
# it is not a valid nettype then it is treated as a netid. The
# "*" is a short-hand way of saying all the transports 
# supported by this system, ie. it equates to the "visible"
# nettype. The syntax for <proto> is:
#	*|<nettype|netid>|<nettype|netid>{[,<nettype|netid>]}
# For example: 
# dummy/1 tli rpc/circuit_v,udp wait root /tmp/test_svc test_svc
#
# Solstice system and network administration class agent server 
# 100232/10  tli  rpc/udp  wait  root  /usr/sbin/sadmind sadmind
#
# rpc.cmsd is a data base daemon which manages calendar 
# data backed by files in /var/spool/calendar
#
#
# Sun ToolTalk Database Server
#
100083/1 tli rpc/tcp wait root /usr/dt/bin/rpc.ttdbserverd rpc.ttdbse
#
# Sun KCMS Profile Server
#
100221/1 tli rpc/tcp wait root /usr/openwin/bin/kcms_server kcms_server
#
# Sun Font Server
#
fs  stream  tcp  wait  nobody  /usr/openwin/lib/fs.auto   fs
#
# CacheFS Daemon
#
100235/1 tli rpc/ticotsord wait root /usr/lib/fs/cachefs/cachefsd cachefsd
100068/2-5 dgram rpc/udp wait root /usr/dt/bin/rpc.cmsd rpc.cmsd
# METAD - SLVM metadb Daemon
100229/1  tli rpc/tcp wait root /usr/sbin/rpc.metad rpc.metad
# METAMHD - SLVM HA Daemon
100230/1 tli rpc/tcp wait root /usr/sbin/rpc.metamhd rpc.metamhd
# METAMEDD - SLVM Mediator Daemon
100242/1 tli rpc/tcp wait root /usr/sbin/rpc.metamedd rpc.metamedd
# LPD - Print Protocol Adaptor (BSD listener)
printer stream tcp6 nowait root /usr/lib/print/in.lpd in.lpd
# RSHD - rsh daemon (BSD protocols)
shell  stream tcp   nowait root  /usr/sbin/in.rshd    in.rshd
shell  stream tcp6  nowait root  /usr/sbin/in.rshd    in.rshd
# RLOGIND - rlogin daemon (BSD protocols)
login stream tcp6 nowait root /usr/sbin/in.rlogind  in.rlogind
# REXECD - rexec daemon (BSD protocols)
exec  stream tcp   nowait root  /usr/sbin/in.rexecd in.rexecd
exec  stream tcp6  nowait root  /usr/sbin/in.rexecd in.rexecd
# COMSATD - comsat daemon (BSD protocols)
comsat dgram  udp   wait  root  /usr/sbin/in.comsat in.comsat
# TALKD - talk daemon (BSD protocols)
talk  dgram  udp   wait  root  /usr/sbin/in.talkd   in.talkd
# FINGERD - finger daemon
finger stream tcp6 nowait nobody /usr/sbin/in.fingerd in.fingerd
< Лекция 3 || Лекция 4: 1234 || Лекция 5 >