Журнал лабораторных работ

Содержание

Журнал

Вторник (12/13/11)

/dev/pts/0
09:54:16
#ping ya.ru
PING ya.ru (87.250.251.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (87.250.251.3): icmp_req=1 ttl=55 time=28.1 ms
64 bytes from www.yandex.ru (87.250.251.3): icmp_req=2 ttl=55 time=28.8 ms
^C
--- ya.ru ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 28.112/28.497/28.883/0.420 ms
09:54:51
#ping 192.168.30.193
PING 192.168.30.193 (192.168.30.193) 56(84) bytes of data.
64 bytes from 192.168.30.193: icmp_req=1 ttl=64 time=0.183 ms
64 bytes from 192.168.30.193: icmp_req=2 ttl=64 time=0.096 ms
64 bytes from 192.168.30.193: icmp_req=3 ttl=64 time=0.098 ms
^C
--- 192.168.30.193 ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2009ms
rtt min/avg/max/mdev = 0.096/0.125/0.183/0.042 ms
прошло 10 минут
10:05:48
#~
iface lo inet loopback
      eth1 eth2
      address 192.168.16.2
auto  netmask 255.255.255.0
      gateway 192.168.16.254
iface eth0 inet static
iface e address 192.168.30.190
        netmask 255.255.255.192
        gateway 192.168.30.129
iface e address 192.168.30.193
...
~
~
~
~
~
~
~
~
~
"/etc/network/interfaces" 16L, 325C записано
10:06:55
# while read DEV MTPT FSTYPE REST; do
auto lo
iface lo inet loopback
      address 192.168.16.2
auto  netmask 255.255.255.0
      gateway 192.168.16.254
iface eth0 inet static
iface e address 192.168.30.190
        netmask 255.255.255.192
        gateway 192.168.30.129
iface e address 192.168.30.193
        netmask 255.255.255.192
"/etc/network/interfaces" 16L, 325C
10:08:01
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:02
          inet addr:192.168.16.2  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2456 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1408 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:200805 (196.0 KiB)  TX bytes:207570 (202.7 KiB)
          Interrupt:5 Base address:0xe000
eth1      Link encap:Ethernet  HWaddr 00:16:3e:00:01:02
...
          RX bytes:0 (0.0 B)  TX bytes:936 (936.0 B)
          Interrupt:11 Base address:0xa200
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:47 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4112 (4.0 KiB)  TX bytes:4112 (4.0 KiB)
10:10:07
#ifconfig
eth0      Link encap:Ethernet  HWaddr 00:16:3e:00:00:02
          inet addr:192.168.16.2  Bcast:192.168.16.255  Mask:255.255.255.0
          inet6 addr: fe80::216:3eff:fe00:2/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:2586 errors:0 dropped:0 overruns:0 frame:0
          TX packets:1485 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:211785 (206.8 KiB)  TX bytes:222860 (217.6 KiB)
          Interrupt:5 Base address:0xe000
eth1      Link encap:Ethernet  HWaddr 00:16:3e:00:01:02
...
          RX bytes:0 (0.0 B)  TX bytes:1174 (1.1 KiB)
          Interrupt:11 Base address:0xa200
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:47 errors:0 dropped:0 overruns:0 frame:0
          TX packets:47 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:4112 (4.0 KiB)  TX bytes:4112 (4.0 KiB)
10:10:27
#reboot

прошло 11 минут
/dev/pts/0
10:21:38
#ifconfig
eth1      Link encap:Ethernet  HWaddr 00:16:3e:00:01:02
          inet addr:192.168.30.190  Bcast:192.168.30.191  Mask:255.255.255.192
          inet6 addr: fe80::216:3eff:fe00:102/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:65 errors:0 dropped:0 overruns:0 frame:0
          TX packets:58 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:6254 (6.1 KiB)  TX bytes:8351 (8.1 KiB)
          Interrupt:10 Base address:0xc100
eth2      Link encap:Ethernet  HWaddr 00:16:3e:00:02:02
...
          RX bytes:0 (0.0 B)  TX bytes:468 (468.0 B)
          Interrupt:11 Base address:0xa200
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          inet6 addr: ::1/128 Scope:Host
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:8 errors:0 dropped:0 overruns:0 frame:0
          TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:560 (560.0 B)  TX bytes:560 (560.0 B)
10:21:47
#ping ya.ru
PING ya.ru (77.88.21.3) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
2 packets transmitted, 0 received, 100% packet loss, time 1008ms
10:21:58
#ping 192.168.30.126
PING 192.168.30.126 (192.168.30.126) 56(84) bytes of data.
64 bytes from 192.168.30.126: icmp_req=1 ttl=64 time=1.19 ms
64 bytes from 192.168.30.126: icmp_req=2 ttl=64 time=1.32 ms
^C
--- 192.168.30.126 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 1.196/1.260/1.325/0.073 ms
10:22:15
#ping 192.168.30.65
PING 192.168.30.65 (192.168.30.65) 56(84) bytes of data.
64 bytes from 192.168.30.65: icmp_req=1 ttl=63 time=2.53 ms
64 bytes from 192.168.30.65: icmp_req=2 ttl=63 time=2.92 ms
^C
--- 192.168.30.65 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1002ms
rtt min/avg/max/mdev = 2.538/2.732/2.926/0.194 ms
10:22:19
#ping 192.168.30.62
PING 192.168.30.62 (192.168.30.62) 56(84) bytes of data.
64 bytes from 192.168.30.62: icmp_req=1 ttl=63 time=3.76 ms
64 bytes from 192.168.30.62: icmp_req=2 ttl=63 time=4.75 ms
^C
--- 192.168.30.62 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 3.761/4.260/4.759/0.499 ms
10:22:24
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=62 time=9.57 ms
^C
--- 192.168.30.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 9.570/9.570/9.570/0.000 ms
10:22:28
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=62 time=4.29 ms
64 bytes from 192.168.30.1: icmp_req=2 ttl=62 time=4.49 ms
^C
--- 192.168.30.1 ping statistics ---
2 packets transmitted, 2 received, 0% packet loss, time 1001ms
rtt min/avg/max/mdev = 4.290/4.393/4.496/0.103 ms
10:24:48
#ping ya.ru
PING ya.ru (213.180.193.3) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
3 packets transmitted, 0 received, 100% packet loss, time 1999ms
10:24:55
#route -n
Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
192.168.30.192  0.0.0.0         255.255.255.192 U     0      0        0 eth2
192.168.30.128  0.0.0.0         255.255.255.192 U     0      0        0 eth1
0.0.0.0         192.168.30.129  0.0.0.0         UG    0      0        0 eth1
10:27:08
#ping ya.ru
PING ya.ru (87.250.250.203) 56(84) bytes of data.
^C
--- ya.ru ping statistics ---
4 packets transmitted, 0 received, 100% packet loss, time 2999ms
10:29:25
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=62 time=3.46 ms
^C
--- 192.168.30.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.468/3.468/3.468/0.000 ms
10:29:29
#ping 192.168.30.1
PING 192.168.30.1 (192.168.30.1) 56(84) bytes of data.
64 bytes from 192.168.30.1: icmp_req=1 ttl=62 time=3.98 ms
^C
--- 192.168.30.1 ping statistics ---
1 packets transmitted, 1 received, 0% packet loss, time 0ms
rtt min/avg/max/mdev = 3.988/3.988/3.988/0.000 ms
10:30:04
#ping ya.ru
PING ya.ru (213.180.193.3) 56(84) bytes of data.
64 bytes from www.yandex.ru (213.180.193.3): icmp_req=1 ttl=54 time=26.4 ms
64 bytes from www.yandex.ru (213.180.193.3): icmp_req=2 ttl=54 time=27.3 ms
64 bytes from www.yandex.ru (213.180.193.3): icmp_req=3 ttl=54 time=27.0 ms
^C
--- ya.ru ping statistics ---
3 packets transmitted, 3 received, 0% packet loss, time 2002ms
rtt min/avg/max/mdev = 26.474/26.970/27.381/0.420 ms
10:30:08
#traceroute ya.ru
traceroute to ya.ru (93.158.134.203), 30 hops max, 60 byte packets
 1  192.168.30.129 (192.168.30.129)  2.020 ms  1.789 ms  1.637 ms
 2  192.168.30.65 (192.168.30.65)  14.492 ms  13.526 ms  15.019 ms
 3  192.168.30.1 (192.168.30.1)  14.656 ms  14.339 ms  13.984 ms
 4  net.nt (192.168.16.254)  13.644 ms  13.322 ms  11.938 ms
 5  10.0.3.4 (10.0.3.4)  17.970 ms  18.041 ms  25.117 ms
 6  10.0.64.145 (10.0.64.145)  15.967 ms  14.620 ms  15.730 ms
 7  texekspert.lsr01-kiev-vlan3416.top.net.ua (77.88.206.213)  17.588 ms  19.789 ms  20.722 ms
 8  yandex-10g-gw.ix.net.ua (195.35.65.88)  21.101 ms  22.092 ms  23.363 ms
 9  panas-vlan601.yandex.net (87.250.233.69)  40.844 ms  40.649 ms  46.652 ms
10  l3-dante-panas.yandex.net (213.180.213.118)  40.214 ms  40.543 ms  42.403 ms
11  213.180.213.102 (213.180.213.102)  42.985 ms  27.530 ms  28.390 ms
12  www.yandex.ru (93.158.134.203)  30.138 ms  31.001 ms  28.262 ms
прошло 27 минут
/dev/pts/2
10:57:10
#wheris xinetd
bash: wheris: команда не найдена
10:57:37
#wheris inetd
bash: wheris: команда не найдена
11:02:03
#whereis inetd
inetd:
11:02:11
#apt-get install xinetd
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  libfile-copy-recursive-perl update-inetd
НОВЫЕ пакеты, которые будут установлены:
  libfile-copy-recursive-perl update-inetd xinetd
обновлено 0, установлено 3 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 177 kБ архивов.
После данной операции, объём занятого дискового пространства возрастёт на 532 kB.
Хотите продолжить [Д/н]? y
Получено:1 http://ftp.ua.debian.org/debian/ squeeze/main libfile-copy-recursive-perl all 0.38-1 [20,6 kB]
Ош  http://ftp.ua.debian.org/debian/ squeeze/main update-inetd all 4.38+nmu1
  404  Not Found
Получено:2 http://ftp.ua.debian.org/debian/ squeeze/main xinetd i386 1:2.3.14-7 [136 kB]
Получено 156 kБ за 0с (303 kБ/c)
Не удалось получить http://ftp.ua.debian.org/debian/pool/main/u/update-inetd/update-inetd_4.38+nmu1_all.deb  404  Not Found
E: Невозможно получить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом --fix-missing
прошло 10 минут
11:12:58
#apt-get install openbsd-inetd
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  libfile-copy-recursive-perl update-inetd
НОВЫЕ пакеты, которые будут установлены:
  libfile-copy-recursive-perl openbsd-inetd update-inetd
обновлено 0, установлено 3 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 57,4 kB/77,9 kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 360 kB.
Хотите продолжить [Д/н]?
Ош  http://ftp.ua.debian.org/debian/ squeeze/main update-inetd all 4.38+nmu1
  404  Not Found
Получено:1 http://ftp.ua.debian.org/debian/ squeeze/main openbsd-inetd i386 0.20080125-6 [36,8 kB]
Получено 36,8 kБ за 0с (265 kБ/c)
Не удалось получить http://ftp.ua.debian.org/debian/pool/main/u/update-inetd/update-inetd_4.38+nmu1_all.deb  404  Not Found
E: Невозможно получить некоторые архивы, вероятно надо запустить apt-get update или попытаться повторить запуск с ключом --fix-missing
11:13:54
#apt-get install openbsd-inetd --fix-missing
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  libfile-copy-recursive-perl update-inetd
НОВЫЕ пакеты, которые будут установлены:
  libfile-copy-recursive-perl openbsd-inetd update-inetd
обновлено 0, установлено 3 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 20,6 kB/77,9 kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 360 kB.
Хотите продолжить [Д/н]? Y
Ош  http://ftp.ua.debian.org/debian/ squeeze/main update-inetd all 4.38+nmu1
  404  Not Found
Не удалось получить http://ftp.ua.debian.org/debian/pool/main/u/update-inetd/update-inetd_4.38+nmu1_all.deb  404  Not Found
Выбор ранее не выбранного пакета libfile-copy-recursive-perl.
(Чтение базы данных ... на данный момент установлено 29426 файлов и каталогов.)
Распаковывается пакет libfile-copy-recursive-perl (из файла .../libfile-copy-recursive-perl_0.38-1_all.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет libfile-copy-recursive-perl (0.38-1) ...
11:14:47
#less /etc/in
11:14:47
#less /etc/in
11:14:47
#apt-get install openbsd-inetd --fix-missing
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  update-inetd
НОВЫЕ пакеты, которые будут установлены:
  openbsd-inetd update-inetd
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 0 пакетов не обновлено.
Необходимо скачать 20,6 kB/57,4 kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 270 kB.
Хотите продолжить [Д/н]?
Ош  http://ftp.ua.debian.org/debian/ squeeze/main update-inetd all 4.38+nmu1
  404  Not Found
Не удалось получить http://ftp.ua.debian.org/debian/pool/main/u/update-inetd/update-inetd_4.38+nmu1_all.deb  404  Not Found
11:16:30
#apt-get update
Получено:1 http://ftp.ua.debian.org squeeze Release.gpg [1 672 B]
Игн http://ftp.ua.debian.org/debian/ squeeze/contrib Translation-en
Игн http://ftp.ua.debian.org/debian/ squeeze/contrib Translation-ru
Игн http://ftp.ua.debian.org/debian/ squeeze/main Translation-en
Игн http://ftp.ua.debian.org/debian/ squeeze/main Translation-ru
Игн http://ftp.ua.debian.org/debian/ squeeze/non-free Translation-en
Игн http://ftp.ua.debian.org/debian/ squeeze/non-free Translation-ru
Получено:2 http://ftp.ua.debian.org squeeze-updates Release.gpg [836 B]
Игн http://ftp.ua.debian.org/debian/ squeeze-updates/contrib Translation-en
Игн http://ftp.ua.debian.org/debian/ squeeze-updates/contrib Translation-ru
...
Получено:19 http://ftp.ua.debian.org squeeze-updates/main Sources/DiffIndex [2 023 B]
Получено:20 http://ftp.ua.debian.org squeeze-updates/contrib Sources [20 B]
Получено:21 http://ftp.ua.debian.org squeeze-updates/non-free Sources [20 B]
Получено:22 http://ftp.ua.debian.org squeeze-updates/main i386 Packages/DiffIndex [2 023 B]
Получено:23 http://ftp.ua.debian.org squeeze-updates/contrib i386 Packages [20 B]
Получено:24 http://ftp.ua.debian.org squeeze-updates/non-free i386 Packages [20 B]
Получено:25 http://ftp.ua.debian.org squeeze-updates/main Sources [2 753 B]
Получено:26 http://ftp.ua.debian.org squeeze-updates/main i386 Packages [11,4 kB]
Получено 15,3 MБ за 28с (537 kБ/c)
Чтение списков пакетов... Готово
11:17:24
#apt-get install openbsd-inetd --fix-missing
Чтение списков пакетов... Готово
Построение дерева зависимостей
Чтение информации о состоянии... Готово
Будут установлены следующие дополнительные пакеты:
  update-inetd
НОВЫЕ пакеты, которые будут установлены:
  openbsd-inetd update-inetd
обновлено 0, установлено 2 новых пакетов, для удаления отмечено 0 пакетов, и 38 пакетов не обновлено.
Необходимо скачать 20,6 kB/57,4 kB архивов.
После данной операции, объём занятого дискового пространства возрастёт на 270 kB.
...
Выбор ранее не выбранного пакета update-inetd.
(Чтение базы данных ... на данный момент установлено 29434 файла и каталога.)
Распаковывается пакет update-inetd (из файла .../update-inetd_4.38+nmu1+squeeze1_all.deb)...
Выбор ранее не выбранного пакета openbsd-inetd.
Распаковывается пакет openbsd-inetd (из файла .../openbsd-inetd_0.20080125-6_i386.deb)...
Обрабатываются триггеры для man-db ...
Настраивается пакет update-inetd (4.38+nmu1+squeeze1) ...
Настраивается пакет openbsd-inetd (0.20080125-6) ...
Stopping internet superserver: inetd.
Not starting internet superserver: no services enabled.
/dev/pts/0
11:19:44
#less /etc/inetd
11:19:49
#less /etc/inetd.conf
прошло 89 минут
12:49:18
#man tea
12:49:23
#less /etc/x
12:49:23
#less /etc/xinetd.conf
/dev/pts/2
12:55:48
#xinetd

12:59:08
#less /etc/xinetd.
12:59:08
#less /etc/xinetd.conf
13:01:48
#ls /etc/xinetd.d/
chargen  daytime  discard  echo  time
13:08:06
#less /etc/xinetd.d/time
прошло 35 минут
13:43:10
#ssh 192.168.30.62
ssh_exchange_identification: Connection closed by remote host
прошло 34 минуты
/dev/pts/0
14:18:08
#less /etc/xinetd.d/
14:18:08
#less /etc/xinetd.d/
14:18:08
#ls /etc/init
init.d/          initramfs-tools/ inittab
14:18:08
#ls /etc/init
init.d/          initramfs-tools/ inittab
14:18:08
#ls /etc/init.d/xinetd
/etc/init.d/xinetd
14:19:36
#xconv
bash: xconv: команда не найдена
14:20:33
#xconv.pl
# This file generated by xconv.pl, included with the xinetd
# package.  xconv.pl was written by Rob Braun (bbraun@synack.net)
#
# The file is merely a translation of your inetd.conf file into
# the equivalent in xinetd.conf syntax.  xinetd has many
# features that may not be taken advantage of with this translation.
# Please refer to the xinetd.conf man page for more information
# on how to properly configure xinetd.
# The defaults section sets some information for all services
defaults
...
{
        socket_type =
        protocol    =
        wait        = yes
        user        =
        server      =
        server_args =
}
^[^Z
[1]+  Stopped                 xconv.pl
14:20:56
#xconv.pl
# This file generated by xconv.pl, included with the xinetd
# package.  xconv.pl was written by Rob Braun (bbraun@synack.net)
#
# The file is merely a translation of your inetd.conf file into
# the equivalent in xinetd.conf syntax.  xinetd has many
# features that may not be taken advantage of with this translation.
# Please refer to the xinetd.conf man page for more information
# on how to properly configure xinetd.
# The defaults section sets some information for all services
defaults
...
        # DURATION logs the duration of the session.
        log_on_success = HOST PID
        # What to log when the connection fails.  Same options as above
        log_on_failure = HOST
        # The maximum number of connections a specific IP address can
        # have to a specific service.
        per_source  = 5
}
^[[B^[[B^[[B^[[B^[[A^[[A^[[A^[[A^[[A^[[A^[^Z
[2]+  Stopped                 xconv.pl
14:21:06
#xconv.pl </etc/inetd.conf >/etc/xinetd.conf

14:21:36
#vim /etc/xinetd.conf
--- /tmp/l3-saved-1289.2558.14638	2011-12-13 15:21:46.000000000 +0200
+++ /etc/xinetd.conf	2011-12-13 15:24:09.000000000 +0200
@@ -34,4 +34,4 @@
 	# have to a specific service.  
 	per_source  = 5
 }
-
+includedir /usr/local/etc/xinetd.d
14:24:09
#xinetd

14:24:17
#ps waux |grep xinetd
root      2237  0.0  0.1   2396   832 ?        Ss   13:55   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
14:24:39
#ps aux |grep xinetd
root      2237  0.0  0.1   2396   832 ?        Ss   13:55   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      2486  0.0  0.1   3880   776 pts/1    S+   15:24   0:00 grep xinetd
14:24:50
#tail /var/log/daemon.log
Dec 13 13:59:08 debian2 xinetd[2251]: removing daytime
Dec 13 13:59:08 debian2 xinetd[2251]: removing discard
Dec 13 13:59:08 debian2 xinetd[2251]: removing discard
Dec 13 13:59:08 debian2 xinetd[2251]: removing echo
Dec 13 13:59:08 debian2 xinetd[2251]: removing echo
Dec 13 13:59:08 debian2 xinetd[2251]: removing time
Dec 13 13:59:08 debian2 xinetd[2251]: removing time
Dec 13 13:59:08 debian2 xinetd[2251]: 2251 {init_services} no services. Exiting...
Dec 13 15:24:17 debian2 xinetd[2467]: Unable to read included directory: /usr/local/etc/xinetd.d [file=/etc/xinetd.conf] [line=37]
Dec 13 15:24:17 debian2 xinetd[2467]: 2467 {init_services} no services. Exiting...
14:26:17
#tail /var/log/daemon.log
Dec 13 15:25:49 debian2 xinetd[2523]: removing chargen
Dec 13 15:25:49 debian2 xinetd[2523]: removing daytime
Dec 13 15:25:49 debian2 xinetd[2523]: removing daytime
Dec 13 15:25:49 debian2 xinetd[2523]: removing discard
Dec 13 15:25:49 debian2 xinetd[2523]: removing discard
Dec 13 15:25:49 debian2 xinetd[2523]: removing echo
Dec 13 15:25:49 debian2 xinetd[2523]: removing echo
Dec 13 15:25:49 debian2 xinetd[2523]: removing time
Dec 13 15:25:49 debian2 xinetd[2523]: removing time
Dec 13 15:25:49 debian2 xinetd[2523]: 2523 {init_services} no services. Exiting...
14:26:24
#etc/init.d/xinetd start
bash: etc/init.d/xinetd: Нет такого файла или каталога
14:28:01
#/etc/init.d/xinetd start
Starting internet superserver: xinetd failed!
/dev/pts/4
14:28:20
#/etc/init
init.d/          initramfs-tools/
14:28:20
#/etc/init
init.d/          initramfs-tools/
14:28:20
#/etc/init.d/xinetd
.aptitude/     .bash_history  .bash_profile  .bashrc        install        .l3rc          .lilalo/       .profile       .ssh/          .viminfo
/dev/pts/0
14:29:11
#reboot

/dev/pts/0
14:31:26
#ps aux |grep xinetd
root      1023  0.0  0.1   2396   836 ?        Ss   15:30   0:00 /usr/sbin/xinetd -pidfile /var/run/xinetd.pid -stayalive -inetd_compat -inetd_ipv6
root      1359  0.0  0.1   3884   780 pts/1    S+   15:31   0:00 grep xinetd
14:31:38
#tail /var/log/daemon.log
Dec 13 15:30:44 debian2 xinetd[1023]: removing daytime
Dec 13 15:30:44 debian2 xinetd[1023]: removing daytime
Dec 13 15:30:44 debian2 xinetd[1023]: removing discard
Dec 13 15:30:44 debian2 xinetd[1023]: removing discard
Dec 13 15:30:44 debian2 xinetd[1023]: removing echo
Dec 13 15:30:44 debian2 xinetd[1023]: removing echo
Dec 13 15:30:44 debian2 xinetd[1023]: removing time
Dec 13 15:30:44 debian2 xinetd[1023]: removing time
Dec 13 15:30:44 debian2 xinetd[1023]: xinetd Version 2.3.14 started with libwrap loadavg options compiled in.
Dec 13 15:30:44 debian2 xinetd[1023]: Started working: 0 available services
14:31:53
#vim /etc/xinetd.d/
14:31:53
#vim /etc/xinetd.d/chargen
--- /tmp/l3-saved-1298.18784.22093	2011-12-13 15:32:23.000000000 +0200
+++ /etc/xinetd.d/chargen	2011-12-13 15:33:32.000000000 +0200
@@ -18,11 +18,11 @@
 # This is the udp version.
 service chargen
 {
-	disable		= yes
+	disable		= no
 	type		= INTERNAL
-	id		= chargen-dgram
-	socket_type	= dgram
-	protocol	= udp
+	id		= chargen-stream
+	socket_type	= stream
+	protocol	= tcp
 	user		= root
-	wait		= yes
+	wait		= no
 }                                                                               
14:33:32
#killal -1 xinetd
bash: killal: команда не найдена
14:33:57
#killall -1 xinetd

14:34:03
#telnet localhost chargen
Trying 127.0.0.1...
Connected to localhost.localdomain.
Escape character is '^]'.
!"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefgh
"#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghi
#$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghij
$%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijk
%&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijkl
&'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklm
'()*+,-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_`abcdefghijklmn
...
MNOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./01234567
NOPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./012345678
OPQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789
PQRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:
QRSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;
RSTUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<
STUVWXYZ[\]^_`abcdefghijklmnopqrstuvwxyz{|}!"#$%&'()*+,-./0123456789:;<=
TUVWXYZ[\]^_`abcdefghijklmnop
telnet> quit
Connection closed.
14:34:37
#netstat -lnp -A inet
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 0.0.0.0:19              0.0.0.0:*               LISTEN      1023/xinetd
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      973/sshd
tcp        0      0 127.0.0.1:25            0.0.0.0:*               LISTEN      1228/exim4
tcp        0      0 0.0.0.0:58990           0.0.0.0:*               LISTEN      743/rpc.statd
tcp        0      0 0.0.0.0:111             0.0.0.0:*               LISTEN      731/portmap
udp        0      0 0.0.0.0:55488           0.0.0.0:*                           743/rpc.statd
udp        0      0 0.0.0.0:111             0.0.0.0:*                           731/portmap
udp        0      0 0.0.0.0:919             0.0.0.0:*                           743/rpc.statd
14:35:07
#netstat
Active Internet connections (w/o servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 192.168.30.190:45353    chub.in:18030           TIME_WAIT
tcp        0     48 192.168.30.190:ssh      192.168.30.65:1752      ESTABLISHED
tcp        0      0 192.168.30.190:45354    chub.in:18030           TIME_WAIT
Active UNIX domain sockets (w/o servers)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    1941     @/org/kernel/udev/udevd
unix  5      [ ]         DGRAM                    3255     /dev/log
unix  2      [ ]         DGRAM                    3695
unix  2      [ ]         DGRAM                    3452
unix  2      [ ]         DGRAM                    3293
unix  3      [ ]         DGRAM                    1946
unix  3      [ ]         DGRAM                    1945
14:35:47
#netstat -a
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        0      0 *:chargen               *:*                     LISTEN
tcp        0      0 *:ssh                   *:*                     LISTEN
tcp        0      0 localhost.localdom:smtp *:*                     LISTEN
tcp        0      0 *:58990                 *:*                     LISTEN
tcp        0      0 *:sunrpc                *:*                     LISTEN
tcp        0      0 192.168.30.190:45355    chub.in:18030           TIME_WAIT
tcp        0      0 192.168.30.190:ssh      192.168.30.65:1752      ESTABLISHED
tcp        0      0 192.168.30.190:45354    chub.in:18030           TIME_WAIT
...
Active UNIX domain sockets (servers and established)
Proto RefCnt Flags       Type       State         I-Node   Path
unix  2      [ ]         DGRAM                    1941     @/org/kernel/udev/udevd
unix  2      [ ACC ]     STREAM     LISTENING     3298     /var/run/acpid.socket
unix  5      [ ]         DGRAM                    3255     /dev/log
unix  2      [ ]         DGRAM                    3695
unix  2      [ ]         DGRAM