/l3/users/27-07-2009/nt-lnet/debian5.net.nt/user :1 :2 :3 :4 :5 :6 |
|
#whereis telnet
telnet: /usr/bin/telnet.netkit /usr/bin/telnet /usr/X11R6/bin/telnet.netkit /usr/X11R6/bin/telnet /usr/bin/X11/telnet.netkit /usr/bin/X11/telnet /usr/share/man/man1/telnet.1.gz |
#vim
|
#whereis telnetd
telnetd: |
#route del default gw 192.168.54.33
|
#route add default gw 192.168.16.254
|
#apt-get update
Получено:1 http://debian.org.ua etch Release.gpg [1032B] Получено:2 http://debian.org.ua etch Release [67,8kB] Ign http://debian.org.ua etch Release Ign http://debian.org.ua etch/main Packages/DiffIndex Получено:3 http://debian.org.ua etch/main Packages [4282kB] Получено 4351kB за 5s (818kB/c) Чтение списков пакетов... Готово W: GPG error: http://debian.org.ua etch Release: Следующие подписи не могут быть проверены, так как недоступен общий ключ: NO_PUBKEY 9AA38DCD55BE302B W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-get install telnet
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Уже установлена самая новая версия telnet. обновлено 0, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 63 пакетов не обновлено. |
#apt-get install telnetd
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: telnetd обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 63 пакетов не обновлено. Необходимо скачать 41,9kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 98,3kB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! telnetd Установить эти пакеты без проверки [y/N]? y ... (Чтение базы данных... на данный момент установлено 23092 файлов и каталогов.) Распаковывается пакет telnetd (из файла .../telnetd_0.17-34_i386.deb)... Настраивается пакет telnetd (0.17-34) ... --------- IMPORTANT INFORMATION FOR XINETD USERS ---------- The following line will be added to your /etc/inetd.conf file: telnet stream tcp nowait root /usr/sbin/tcpd /usr/sbin/in.telnetd If you are indeed using xinetd, you will have to convert the above into /etc/xinetd.conf format, and add it manually. See /usr/share/doc/xinetd/README.Debian for more information. ----------------------------------------------------------- |
#whereis telnetd
telnetd: /usr/share/man/man8/telnetd.8.gz |
#whereis telnet
telnet: /usr/bin/telnet.netkit /usr/bin/telnet /usr/X11R6/bin/telnet.netkit /usr/X11R6/bin/telnet /usr/bin/X11/telnet.netkit /usr/bin/X11/telnet /usr/share/man/man1/telnet.1.gz |
#route del
|
#route add
|
#ping ya.ru
![]() PING ya.ru (93.158.134.8) 56(84) bytes of data. --- ya.ru ping statistics --- 6 packets transmitted, 0 received, 100% packet loss, time 5009ms |
#toute -l
![]() bash: toute: command not found |
#toute -n
![]() bash: toute: command not found |
#toute -h
![]() bash: toute: command not found |
#route -l
![]() route: invalid option -- l Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables route [-v] [-FC] {add|del|flush} ... Modify routing table for AF. route {-h|--help} [<AF>] Detailed usage syntax for specified AF. route {-V|--version} Display version/author and exit. -v, --verbose be verbose -n, --numeric don't resolve names -e, --extend display other/more information -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <AF>=Use '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25) |
#toute -n
![]() bash: toute: command not found |
#r
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.54.128 192.168.54.94 255.255.255.224 UG 0 0 0 eth1 192.168.54.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.54.64 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.54.96 192.168.54.94 255.255.255.224 UG 0 0 0 eth1 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.54.33 0.0.0.0 UG 0 0 0 eth2 |
#ping ya.ru
![]() PING ya.ru (77.88.21.8) 56(84) bytes of data. --- ya.ru ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2008ms |
#ping 192.168.16.7
PING 192.168.16.7 (192.168.16.7) 56(84) bytes of data. 64 bytes from 192.168.16.7: icmp_seq=1 ttl=64 time=0.167 ms 64 bytes from 192.168.16.7: icmp_seq=2 ttl=64 time=0.166 ms --- 192.168.16.7 ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 0.166/0.166/0.167/0.012 ms |
#/./etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#netstat -lnp
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:5900 0.0.0.0:* LISTEN 1253/Xvnc tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1217/popa3d tcp 0 0 0.0.0.0:19 0.0.0.0:* LISTEN 6826/xinetd tcp6 0 0 :::22 :::* LISTEN 1224/sshd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 3672 1242/gdm /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 3828 1325/ssh-agent /tmp/ssh-ZwZZlk1288/agent.1288 unix 2 [ ACC ] STREAM LISTENING 3749 1253/Xvnc /tmp/.X11-unix/X0 |
#vim /usr/local/etc/xinetd.d/telnet
|
#whereis telnetd
telnetd: /usr/share/man/man8/telnetd.8.gz |
#ping ya.ru
![]() PING ya.ru (213.180.204.8) 56(84) bytes of data. --- ya.ru ping statistics --- 3 packets transmitted, 0 received, 100% packet loss, time 2010ms |
#route delete
|
#route delete
![]() SIOCDELRT: No such process |
#route add
|
#ping ya.ru
PING ya.ru (93.158.134.8) 56(84) bytes of data. 64 bytes from ya.ru (93.158.134.8): icmp_seq=1 ttl=49 time=52.1 ms 64 bytes from ya.ru (93.158.134.8): icmp_seq=2 ttl=49 time=51.9 ms --- ya.ru ping statistics --- 2 packets transmitted, 2 received, 0% packet loss, time 999ms rtt min/avg/max/mdev = 51.917/52.009/52.102/0.246 ms |
#apt-get update
Получено:1 http://debian.org.ua etch Release.gpg [1032B] В кэше http://debian.org.ua etch Release Err http://debian.org.ua etch Release Получено:2 http://debian.org.ua etch Release [67,8kB] Ign http://debian.org.ua etch Release Ign http://debian.org.ua etch/main Packages/DiffIndex В кэше http://debian.org.ua etch/main Packages Получено 68,8kB за 0s (1645kB/c) Чтение списков пакетов... Готово W: GPG error: http://debian.org.ua etch Release: Следующие подписи не могут быть проверены, так как недоступен общий ключ: NO_PUBKEY 9AA38DCD55BE302B W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#vim /etc/apt/sources.list
|
#apt-get update
![]() Ign http://10.0.35.1 etch Release.gpg Ign http://10.0.35.1 etch Release Ign http://10.0.35.1 etch/main Packages Err http://10.0.35.1 etch/main Packages 404 Not Found Не удалось загрузить http://10.0.35.1/debian/dists/etch/main/binary-i386/Packages.gz 404 Not Found Чтение списков пакетов... Готово W: Не удалось получить атрибуты списка пакетов с исходными текстами http://10.0.35.1 etch/main Packages (/var/lib/apt/lists/10.0.35.1_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory) W: Не удалось получить атрибуты списка пакетов с исходными текстами http://10.0.35.1 etch/main Packages (/var/lib/apt/lists/10.0.35.1_debian_dists_etch_main_binary-i386_Packages) - stat (2 No such file or directory) W: Вы можете запустить 'apt-get update' для исправления этих ошибок E: Некоторые индексные файлы не загрузились, они были проигнорированы или вместо них были использованы старые версии |
#vim /etc/apt/sources.list
|
#apt-get update
![]() Ign http://10.0.35.1 unstable Release.gpg Ign http://10.0.35.1 unstable Release Ign http://10.0.35.1 unstable/main Packages Err http://10.0.35.1 unstable/main Packages 404 Not Found Не удалось загрузить http://10.0.35.1/debian/dists/unstable/main/binary-i386/Packages.gz 404 Not Found Чтение списков пакетов... Готово W: Не удалось получить атрибуты списка пакетов с исходными текстами http://10.0.35.1 unstable/main Packages (/var/lib/apt/lists/10.0.35.1_debian_dists_unstable_main_binary-i386_Packages) - stat (2 No such file or directory) W: Вы можете запустить 'apt-get update' для исправления этих ошибок E: Некоторые индексные файлы не загрузились, они были проигнорированы или вместо них были использованы старые версии |
#vim /etc/apt/sources.list
|
#apt-get update
Получено:1 http://ftp.ua.debian.org lenny Release.gpg [1032B] Получено:2 http://ftp.ua.debian.org lenny Release [73,6kB] Ign http://ftp.ua.debian.org lenny Release Получено:3 http://ftp.ua.debian.org lenny/main Packages [5294kB] Получено 5368kB за 7s (752kB/c) Чтение списков пакетов... Готово W: GPG error: http://ftp.ua.debian.org lenny Release: Следующие подписи не могут быть проверены, так как недоступен общий ключ: NO_PUBKEY 9AA38DCD55BE302B NO_PUBKEY 4D270D06F42584E6 W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-kache search keyring
![]() bash: apt-kache: command not found |
#apt-c
cgmail - A new shiny mail checker for the Gnome desktop debian-archive-keyring - GnuPG archive keys of the Debian archive debian-edu-archive-keyring - GnuPG archive keys of the Debian Edu archive debian-keyring - GnuPG (and obsolete PGP) keys of Debian Developers debian-maintainers - GPG keys of Debian maintainers devscripts - scripts to make the life of a Debian Package maintainer easier emdebian-archive-keyring - GnuPG archive keys for the emdebian repository gnome-gpg - GPG passphrase agent based on GNOME Keyring gnome-keyring - GNOME keyring services (daemon and tools) gnome-keyring-manager - keyring management program for the GNOME desktop ... libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-keyring1.0-cil - CLI library to access the GNOME Keyring daemon libpam-gnome-keyring - PAM module to unlock the GNOME keyring upon login monodoc-gnome-keyring-manual - CLI library to access the GNOME Keyring daemon - manual network-manager-gnome - network management framework (GNOME frontend) python-pyme - Python interface to the GPGME GnuPG encryption library signing-party - Various OpenPGP related tools vinagre - VNC client for the GNOME Desktop webauth-utils - Command-line utilities for WebAuth authentication |
#apt-cache search keyring
cgmail - A new shiny mail checker for the Gnome desktop debian-archive-keyring - GnuPG archive keys of the Debian archive debian-edu-archive-keyring - GnuPG archive keys of the Debian Edu archive debian-keyring - GnuPG (and obsolete PGP) keys of Debian Developers debian-maintainers - GPG keys of Debian maintainers devscripts - scripts to make the life of a Debian Package maintainer easier emdebian-archive-keyring - GnuPG archive keys for the emdebian repository gnome-gpg - GPG passphrase agent based on GNOME Keyring gnome-keyring - GNOME keyring services (daemon and tools) gnome-keyring-manager - keyring management program for the GNOME desktop ... libgnome-keyring-dev - Development files for GNOME keyring service libgnome-keyring0 - GNOME keyring services library libgnome-keyring1.0-cil - CLI library to access the GNOME Keyring daemon libpam-gnome-keyring - PAM module to unlock the GNOME keyring upon login monodoc-gnome-keyring-manual - CLI library to access the GNOME Keyring daemon - manual network-manager-gnome - network management framework (GNOME frontend) python-pyme - Python interface to the GPGME GnuPG encryption library signing-party - Various OpenPGP related tools vinagre - VNC client for the GNOME Desktop webauth-utils - Command-line utilities for WebAuth authentication |
#apt-cache search keyring | less
|
#apt-get install debian-keyring
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово НОВЫЕ пакеты, которые будут установлены: debian-keyring обновлено 0, установлено 1 новых пакетов, для удаления отмечено 0 пакетов, и 319 пакетов не обновлено. Необходимо скачать 21,1MБ архивов. После распаковки объем занятого дискового пространства возрастёт на 26,0MB. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! debian-keyring Установить эти пакеты без проверки [y/N]? y Получено:1 http://ftp.ua.debian.org lenny/main debian-keyring 2009.01.18 [21,1MB] Получено 21,1MB за 17s (1188kB/c) Выбор ранее не выбранного пакета debian-keyring. (Чтение базы данных... на данный момент установлено 23104 файлов и каталогов.) Распаковывается пакет debian-keyring (из файла .../debian-keyring_2009.01.18_all.deb)... Настраивается пакет debian-keyring (2009.01.18) ... |
#apt-get update
Получено:1 http://ftp.ua.debian.org lenny Release.gpg [1032B] В кэше http://ftp.ua.debian.org lenny Release Err http://ftp.ua.debian.org lenny Release Получено:2 http://ftp.ua.debian.org lenny Release [73,6kB] Ign http://ftp.ua.debian.org lenny Release Ign http://ftp.ua.debian.org lenny/main Packages/DiffIndex В кэше http://ftp.ua.debian.org lenny/main Packages Получено 74,7kB за 0s (584kB/c) Чтение списков пакетов... Готово W: GPG error: http://ftp.ua.debian.org lenny Release: Следующие подписи не могут быть проверены, так как недоступен общий ключ: NO_PUBKEY 9AA38DCD55BE302B NO_PUBKEY 4D270D06F42584E6 W: Вы можете запустить 'apt-get update' для исправления этих ошибок |
#apt-cache search keyring | less
|
#apt-get install debian-archive-
Чтение списков пакетов... Готово Построение дерева зависимостей... Готово Пакеты, которые будут обновлены: debian-archive-keyring обновлено 1, установлено 0 новых пакетов, для удаления отмечено 0 пакетов, и 318 пакетов не обновлено. Необходимо скачать 12,8kБ архивов. После распаковки объем занятого дискового пространства возрастёт на 4096B. ВНИМАНИЕ: Следующие пакеты невозможно аутентифицировать! debian-archive-keyring Установить эти пакеты без проверки [y/N]? y ... gpg: key 6070D3A1: "Debian Archive Automatic Signing Key (4.0/etch) <ftpmaster@debian.org>" not changed gpg: key ADB11277: "Etch Stable Release Key <debian-release@lists.debian.org>" not changed gpg: key BBE55AB3: "Debian-Volatile Archive Automatic Signing Key (4.0/etch)" not changed gpg: key F42584E6: public key "Lenny Stable Release Key <debian-release@lists.debian.org>" imported gpg: key 55BE302B: public key "Debian Archive Automatic Signing Key (5.0/lenny) <ftpmaster@debian.org>" imported gpg: key 6D849617: public key "Debian-Volatile Archive Automatic Signing Key (5.0/lenny)" imported gpg: Total number processed: 6 gpg: imported: 3 (RSA: 2) gpg: unchanged: 3 gpg: no ultimately trusted keys found |
#apt-get update
Получено:1 http://ftp.ua.debian.org lenny Release.gpg [1032B] В кэше http://ftp.ua.debian.org lenny Release Ign http://ftp.ua.debian.org lenny/main Packages/DiffIndex В кэше http://ftp.ua.debian.org lenny/main Packages Получено 1032B за 0s (8560B/c) Чтение списков пакетов... Готово |
#apt-get install telnet
ru_RU.CP1251... done ru_RU.KOI8-R... done ru_RU.UTF-8... done ru_UA.KOI8-U... done ru_UA.UTF-8... done en_US.UTF-8... done Generation complete. Setting up libc6-xen (2.7-18) ... Setting up telnet (0.17-36) ... |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#/./etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#whereis telnetd
telnetd: /usr/share/man/man8/telnetd.8.gz |
#vim /usr/local/etc/xinetd.d/telnet
|
#/./etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#netstat -nlp
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:37 0.0.0.0:* LISTEN 7465/inetd tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 1253/Xvnc tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1217/popa3d tcp 0 0 0.0.0.0:19 0.0.0.0:* LISTEN 8276/xinetd tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 7465/inetd tcp6 0 0 :::22 :::* LISTEN 1224/sshd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 3672 1242/gdm /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 3828 1325/ssh-agent /tmp/ssh-ZwZZlk1288/agent.1288 unix 2 [ ACC ] STREAM LISTENING 3749 1253/Xvnc /tmp/.X11-unix/X0 |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE 0 -- 192.168.16.0/24 anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -D 2
![]() iptables: Bad rule (does a matching rule exist in that chain?) |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE 0 -- 192.168.16.0/24 anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t POSTROUTING nat -D 2
![]() Bad argument `nat' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination MASQUERADE 0 -- 192.168.16.0/24 anywhere Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#iptables -t nat -F
|
#iptables -t nat -L
Chain PREROUTING (policy ACCEPT) target prot opt source destination Chain POSTROUTING (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#/./etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#vim /usr/local/etc/xinetd.d/telnet
|
#/./etc/init.d/xinetd restart
Stopping internet superserver: xinetd. Starting internet superserver: xinetd. |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#netstat -nlp
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:37 0.0.0.0:* LISTEN 7465/inetd tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 1253/Xvnc tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1217/popa3d tcp 0 0 0.0.0.0:19 0.0.0.0:* LISTEN 8416/xinetd tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 7465/inetd tcp6 0 0 :::22 :::* LISTEN 1224/sshd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 3672 1242/gdm /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 3828 1325/ssh-agent /tmp/ssh-ZwZZlk1288/agent.1288 unix 2 [ ACC ] STREAM LISTENING 3749 1253/Xvnc /tmp/.X11-unix/X0 |
#telnet 127.0.0.1
![]() Trying 127.0.0.1... Connected to 127.0.0.1. Escape character is '^]'. Connection closed by foreign host. |
#iptables -l
![]() iptables v1.3.6: Unknown arg `-l' Try `iptables -h' or 'iptables --help' for more information. |
#iptables -L
Chain INPUT (policy ACCEPT) target prot opt source destination Chain FORWARD (policy ACCEPT) target prot opt source destination Chain OUTPUT (policy ACCEPT) target prot opt source destination |
#route -l
![]() route: неверный ключ -- l Usage: route [-nNvee] [-FC] [<AF>] List kernel routing tables route [-v] [-FC] {add|del|flush} ... Modify routing table for AF. route {-h|--help} [<AF>] Detailed usage syntax for specified AF. route {-V|--version} Display version/author and exit. -v, --verbose be verbose -n, --numeric don't resolve names -e, --extend display other/more information -F, --fib display Forwarding Information Base (default) -C, --cache display routing cache instead of FIB <AF>=Use '-A <af>' or '--<af>'; default: inet List of possible address families (which support routing): inet (DARPA Internet) inet6 (IPv6) ax25 (AMPR AX.25) netrom (AMPR NET/ROM) ipx (Novell IPX) ddp (Appletalk DDP) x25 (CCITT X.25) |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.54.128 192.168.54.94 255.255.255.224 UG 0 0 0 eth1 192.168.54.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.54.64 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.54.96 192.168.54.94 255.255.255.224 UG 0 0 0 eth1 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.16.254 0.0.0.0 UG 0 0 0 eth0 |
#route del default gw 192.168.16.254 && route
![]() SIOCDELRT: Нет такого процесса |
#route del default gw 192.168.16.254 && route add default g
![]() |
#route del default gw 192.168.16.254
![]() SIOCDELRT: Нет такого процесса |
#route del default gw 192.168.16.254
![]() |
#route del default gw 192.168.54.33
![]() SIOCDELRT: Нет такого процесса |
#route add
|
#route -n
![]() |
#route -n
Kernel IP routing table Destination Gateway Genmask Flags Metric Ref Use Iface 192.168.54.128 192.168.54.94 255.255.255.224 UG 0 0 0 eth1 192.168.54.32 0.0.0.0 255.255.255.224 U 0 0 0 eth2 192.168.54.64 0.0.0.0 255.255.255.224 U 0 0 0 eth1 192.168.54.96 192.168.54.94 255.255.255.224 UG 0 0 0 eth1 192.168.16.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0 0.0.0.0 192.168.54.33 0.0.0.0 UG 0 0 0 eth2 |
#ping ya.ru
![]() PING ya.ru (77.88.21.8) 56(84) bytes of data. --- ya.ru ping statistics --- 4 packets transmitted, 0 received, 100% packet loss, time 3008ms |
#netstat -n
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 192.168.16.5:5900 192.168.16.211:1383 ESTABLISHED tcp 0 0 192.168.16.5:49065 192.168.16.5:22 ESTABLISHED tcp 0 0 192.168.16.5:56021 192.168.16.7:22 ESTABLISHED tcp 0 1 192.168.54.62:35164 212.26.146.51:18030 SYN_SENT tcp6 0 0 ::ffff:192.168.16.5:22 ::ffff:192.168.16:49065 ESTABLISHED Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node Path unix 5 [ ] DGRAM 3482 /dev/log unix 2 [ ] DGRAM 20044 unix 2 [ ] DGRAM 19076 unix 3 [ ] STREAM CONNECTED 13673 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 13672 unix 3 [ ] STREAM CONNECTED 12932 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 12931 unix 3 [ ] STREAM CONNECTED 3834 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 3833 unix 23 [ ] STREAM CONNECTED 3753 /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 3752 unix 2 [ ] DGRAM 3539 |
#netstat -np
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 192.168.16.5:5900 192.168.16.211:1383 ESTABLISHED1253/Xvnc tcp 0 0 192.168.16.5:49065 192.168.16.5:22 ESTABLISHED5763/ssh tcp 0 0 192.168.16.5:56021 192.168.16.7:22 ESTABLISHED5953/ssh tcp 0 1 192.168.54.62:35164 212.26.146.51:18030 SYN_SENT 4332/l3-agent tcp6 0 0 ::ffff:192.168.16.5:22 ::ffff:192.168.16:49065 ESTABLISHED5764/sshd: root@tty Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 5 [ ] DGRAM 3482 1197/syslogd /dev/log unix 2 [ ] DGRAM 20044 8416/xinetd unix 2 [ ] DGRAM 19076 7465/inetd unix 3 [ ] STREAM CONNECTED 13673 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 13672 5989/xterm unix 3 [ ] STREAM CONNECTED 12932 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 12931 5619/xterm unix 3 [ ] STREAM CONNECTED 3834 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 3833 1288/fluxbox unix 23 [ ] STREAM CONNECTED 3753 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 3752 1243/gdm unix 2 [ ] DGRAM 3539 1203/klogd |
#netstat -
Active Internet connections (w/o servers) Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name tcp 0 0 debian5.net.nt:5900 host211.net.nt:1383 ESTABLISHED1253/Xvnc tcp 0 0 debian5.net.nt:49065 debian5.net.nt:ssh ESTABLISHED5763/ssh tcp 0 0 debian5.net.nt:56021 debian7.andrey.net.:ssh ESTABLISHED5953/ssh tcp 0 1 192.168.54.62:35164 chub.in:18030 SYN_SENT 4332/l3-agent tcp6 0 0 debian5.net.nt:ssh debian5.net.nt:49065 ESTABLISHED5764/sshd: root@tty Active UNIX domain sockets (w/o servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 5 [ ] DGRAM 3482 1197/syslogd /dev/log unix 2 [ ] DGRAM 20044 8416/xinetd unix 2 [ ] DGRAM 19076 7465/inetd unix 3 [ ] STREAM CONNECTED 13673 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 13672 5989/xterm unix 3 [ ] STREAM CONNECTED 12932 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 12931 5619/xterm unix 3 [ ] STREAM CONNECTED 3834 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 3833 1288/fluxbox unix 23 [ ] STREAM CONNECTED 3753 1253/Xvnc /tmp/.X11-unix/X0 unix 3 [ ] STREAM CONNECTED 3752 1243/gdm unix 2 [ ] DGRAM 3539 1203/klogd |
#netstat -pln
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:37 0.0.0.0:* LISTEN 7465/inetd tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 1253/Xvnc tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1217/popa3d tcp 0 0 0.0.0.0:19 0.0.0.0:* LISTEN 8416/xinetd tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 7465/inetd tcp6 0 0 :::22 :::* LISTEN 1224/sshd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 3672 1242/gdm /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 3828 1325/ssh-agent /tmp/ssh-ZwZZlk1288/agent.1288 unix 2 [ ACC ] STREAM LISTENING 3749 1253/Xvnc /tmp/.X11-unix/X0 |
#apt-get autoremove xinetd
![]() E: Неверная операция autoremove |
$ssh user@192.168.16.6
The authenticity of host '192.168.16.6 (192.168.16.6)' can't be established. RSA key fingerprint is 51:5b:32:d8:70:19:6d:04:c7:b4:11:49:13:74:dc:bc. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/user/.ssh/known_hosts). user@192.168.16.6's password: Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Aug 5 20:57:53 2009 from localhost.localdomain l3-agent is already running: pid=6205; pidfile=/home/user/.lilalo/l3-agent.pid |
$telnet 192.168.54.65
![]() Trying 192.168.54.65... Connected to 192.168.54.65. Escape character is '^]'. Connection closed by foreign host. |
$telnet 192.168.54.65
![]() Trying 192.168.54.65... Connected to 192.168.54.65. Escape character is '^]'. Connection closed by foreign host. |
$telnet 192.168.16.5
![]() Trying 192.168.16.5... Connected to 192.168.16.5. Escape character is '^]'. Connection closed by foreign host. |
$exit
exit Connection to 192.168.16.6 closed. |
$ssh user@192.168.16.6
The authenticity of host '192.168.16.6 (192.168.16.6)' can't be established. RSA key fingerprint is 51:5b:32:d8:70:19:6d:04:c7:b4:11:49:13:74:dc:bc. Are you sure you want to continue connecting (yes/no)? yes Failed to add the host to the list of known hosts (/home/user/.ssh/known_hosts). user@192.168.16.6's password: Linux debiant 2.6.18-5-xen-686 #1 SMP Fri Jun 1 05:05:24 UTC 2007 i686 The programs included with the Debian GNU/Linux system are free software; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright. Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Wed Aug 5 21:09:59 2009 from 192.168.16.5 l3-agent is already running: pid=6205; pidfile=/home/user/.lilalo/l3-agent.pid |
$exit
Connection to 192.168.16.6 closed. |
#apt-get
ЧÑение ÑпиÑков пакеÑов... ÐоÑово ÐоÑÑÑоение деÑева завиÑимоÑÑей... ÐоÑово ÐакеÑÑ, коÑоÑÑе бÑдÑÑ Ð£ÐÐÐetd обновлено 0, ÑÑÑановлено 0 новÑÑ Ð¿Ð°ÐºÐµÑов, Ð´Ð»Ñ ÑÐ´Ð°Ð»ÐµÐ½Ð¸Ñ Ð¾ÑмеÑено 1 пакеÑов, и 310 пакеÑов не обновлено. ÐÐµÐ¾Ð±Ñ Ð¾Ð´Ð¸Ð¼Ð¾ ÑкаÑаÑÑ 0РаÑÑ Ð¸Ð²Ð¾Ð². ÐоÑле ÑаÑпаковки обÑем занÑÑого диÑкового пÑоÑÑÑанÑÑва ÑменÑÑиÑÑÑ Ð½Ð° 369kB. ХоÑиÑе пÑодолжиÑÑ [Ð/н]? y (ЧÑение Ð±Ð°Ð·Ñ Ð´Ð°Ð½Ð½ÑÑ ... на даннÑй Ð¼Ð¾Ð¼ÐµÐ½Ñ ÑÑÑановлено 22722 Ñайлов и каÑалогов.) УдалÑеÑÑÑ Ð¿Ð°ÐºÐµÑ xinetd... Stopping internet superserver: xinetd. Note: all inetd services have been terminated. Stopping internet superserver: xinetd. WARNING: you don't have an init script for the original inetd anymore! You may need to reinstall the netkit-inetd package to get it back. УдалÑеÑÑÑ `diversion of /etc/init.d/inetd to /etc/init.d/inetd.real by xinetd' |
#netstat -pln
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:37 0.0.0.0:* LISTEN 7465/inetd tcp 0 0 0.0.0.0:5900 0.0.0.0:* LISTEN 1253/Xvnc tcp 0 0 0.0.0.0:110 0.0.0.0:* LISTEN 1217/popa3d tcp 0 0 0.0.0.0:23 0.0.0.0:* LISTEN 7465/inetd tcp6 0 0 :::22 :::* LISTEN 1224/sshd Active UNIX domain sockets (only servers) Proto RefCnt Flags Type State I-Node PID/Program name Path unix 2 [ ACC ] STREAM LISTENING 3672 1242/gdm /tmp/.gdm_socket unix 2 [ ACC ] STREAM LISTENING 3828 1325/ssh-agent /tmp/ssh-ZwZZlk1288/agent.1288 unix 2 [ ACC ] STREAM LISTENING 3749 1253/Xvnc /tmp/.X11-unix/X0 |
#route -n
![]() |
#/./etc/init.d/xinetd restart
|
#/./etc/init.d/
![]() bash: /./etc/init.d/inetd: Нет такого файла или каталога |
Время первой команды журнала | 19:43:30 2009- 8- 5 |
Время последней коман |