[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.
Различия
Показаны различия между двумя версиями страницы.
Предыдущая версия справа и слеваПредыдущая версияСледующая версия | Предыдущая версия | ||
ru:slackbook:basic_networking_utilities [2013/12/01 18:21 (UTC)] – telnet bormant | ru:slackbook:basic_networking_utilities [2014/03/07 17:59 (UTC)] (текущий) – [pine] translated to Russian bormant | ||
---|---|---|---|
Строка 93: | Строка 93: | ||
не какому-либо другому приложению. При помощи **// | не какому-либо другому приложению. При помощи **// | ||
подключаться к оболочкам других компьютеров и выполнять в них команды, | подключаться к оболочкам других компьютеров и выполнять в них команды, | ||
- | словно на имеющемся компьютере. Из-за своей нешифрованной природы | + | словно на имеющемся компьютере. Из-за своей нешифрованной природы |
- | использование не рекомендуется, | + | использовать его не рекомендуется, |
многими устройствами. | многими устройствами. | ||
На сегодняшний день **// | На сегодняшний день **// | ||
- | диагностики. Поскольку он передёт управление сессией напрямую пользователю, | + | диагностики. Поскольку он передаёт управление сессией напрямую пользователю, |
его можно использовать для самых разнообразных тестов. До тех пор, пока | его можно использовать для самых разнообразных тестов. До тех пор, пока | ||
известны команды ASCII для передачи принимающему компьютеру, | известны команды ASCII для передачи принимающему компьютеру, | ||
Строка 125: | Строка 125: | ||
==== ssh ==== | ==== ssh ==== | ||
- | As we mentioned, **// | + | Как уже упоминалось, **// |
- | diagnostic tool, but its unencrypted nature makes it a security concern | + | инструмент, но изначальное отсутствие шифрования делает его проблемой |
- | for shell access. Thankfully, there' | + | безопасности при доступе к оболочке. К счастью, есть протокол безопасной |
- | every Linux, UNIX, and BSD distribution today makes use of OpenSSH, | + | оболочки (secure shell). Сегодня почти каждый дистрибутив |
- | **// | + | использует |
- | commonly used network tools today and makes use of the strongest | + | из наиболее широко используемых инструментов, |
- | cryptographic techniques. **// | + | криптографические методы. **// |
- | features, configuration options, and neat hacks, enough to fill its own | + | параметров настройки, изящных хаков, достаточных для написания отдельной |
- | book, so we'll only go into the basics here. Simply run | + | книги, поэтому мы здесь только коснёмся основ. Просто запустите |
- | **// | + | с именем пользователя и хоста и будете к нему подключены быстро и безопасно. |
- | you'll be connected to it quickly and safely. If this is the first time | + | Если это первое подключение к компьютеру, **// |
- | you are connecting to this computer, **// | + | ваше решение и сделает локальную копию ключа шифрования. Если в будущем ключ |
- | will ask you to confirm your desire, and make a local copy of the | + | изменится, **// |
- | encryption key to use. Should this key later change, | + | вероятно, |
- | **// | + | известной как человек-посередине. |
- | because it is possible that some one is attempting to hijack the | + | |
- | connection using what is known as a man-in-the-middle attack. | + | |
< | < | ||
- | |||
darkstar:~# ssh alan@slackware.com | darkstar:~# ssh alan@slackware.com | ||
alan@slackware.com' | alan@slackware.com' | ||
alan@slackware.com: | alan@slackware.com: | ||
</ | </ | ||
+ | |||
+ | Имена пользователя и хоста в той же форме, что и в адресах электронной почты. | ||
+ | Если опустить часть с именем пользователя, | ||
+ | установления соединения имя вашего текущего пользователя . | ||
- | The user and hostname are in the same form used by e-mail addresses. | ||
- | If you leave off the username part, **//ssh//** will | ||
- | use your current username when establishing the connection. | ||
==== tcpdump ==== | ==== tcpdump ==== | ||
- | So far all the tools we've looked at have focused on making connections | + | Все рассмотренные выше инструменты сфокусированы на создании соединений |
- | to other computers, but now we're going to look at the traffic itself. | + | к другим компьютерам, но сейчас мы собираемся посмотреть на сам трафик. |
- | **// | + | **// |
- | allows us to view all or part of the network traffic originating or | + | или часть сетевого трафика, |
- | received by our computer. **// | + | **// |
- | the raw data packets in a variety of ways with all the network headers | + | всеми нетронутыми сетевыми заголовками. Не пугайтесь, |
- | intact. Don't be alarmed if you don't understand everything it | + | показанного, **// |
- | displays, **// | + | инженеров и администраторов. По умолчанию он работает с первой из |
- | network engineers and system administrators. By default, it probes the | + | обнаруженных сетевых карт, но если у вас несколько сетевых интерфейсов, |
- | first network card it finds, but if you have multiple interfaces, | + | просто используйте параметр |
- | simply use the // | + | выводимые данные при помощи выражений, изменить способ отображения, |
- | interested in.You can also limit the data displayed using expressions | + | это намного лучше описано на странице руководства и в сопровождающей |
- | and change the manner in which it is displayed, but that is best | + | документации. |
- | explained by the man page and other reference material. | + | |
< | < | ||
Строка 190: | Строка 185: | ||
SMB PACKET: SMBtrans2 (REQUEST) | SMB PACKET: SMBtrans2 (REQUEST) | ||
</ | </ | ||
- | ==== nmap ==== | ||
- | Suppose you need to know what network services are running on a | ||
- | machine, or multiple machines, or you wish to determine if multiple | ||
- | machines are responsive? | ||
- | each one individually, | ||
- | you're interested in, and note every detail, but that's very tedious | ||
- | and time consuming. A much easier alternative is to use a port scanner, | ||
- | and **// | ||
+ | ==== nmap ==== | ||
- | **//nmap//** is capable of scanning TCP and UDP | + | Допустим, |
- | ports, determining the operating system of a network device, probing | + | нескольких, |
- | each located service to determine its specific type, and much much | + | использовать |
- | more.Perhaps the simplist way to use **//nmap//** | + | для подключения на каждый из проверяемых портов, |
- | is to //" | + | но это очень долго и утомительно. Более простой альтернативой является |
- | notation (CIDR) or specify a range of addresses and | + | использование сканера портов, |
- | **// | + | подходит. |
- | results to you when it's finished. You can even specify host names as | + | |
- | you like. | + | |
+ | **// | ||
+ | систему сетевого устройства, | ||
+ | типа, и многое многое другое. Пожалуй, | ||
+ | **// | ||
+ | использовать нотацию сетевых адресов (CIDR) или задать адреса диапазоном, | ||
+ | и **// | ||
+ | При желании, | ||
- | In order to //" | + | **//«ping»//** хостов задаётся параметром |
- | argument. The following command instructs | + | указывает |
- | **// | + | IP начиная с 72.168.24.0 |
- | IP addresses starting at 72.168.24.0 | + | |
< | < | ||
Строка 222: | Строка 213: | ||
</ | </ | ||
- | + | Если необходимо выполнить сканирование портов, **// | |
- | Should you need to perform a port scan, **// | + | множеством способов. При запуске без аргументов, **// |
- | has many options for doing just that. When run without any arguments, | + | обычное сканирование портов TCP на всех заданных хостах. Есть параметры, |
- | **// | + | позволяющие повысить или понизить агрессивность сканирования, |
- | hosts specified. There are also options to make | + | время получения результатов либо обдурить службы обнаружения вторжений. За |
- | **// | + | полной информацией нужно обратиться к вполне исчерпывающей странице |
- | scanning to return results quicker or fool intrusion detection | + | руководства (man). Следующие три команды выполняют обычное сканирование |
- | services. For a full discussion, you should refer to the rather | + | портов, сканирование |
- | exhaustive | + | |
- | port scan, a SYN scan, and a //" | + | |
< | < | ||
Строка 241: | Строка 229: | ||
<note warning> | <note warning> | ||
- | + | Будьте осторожны! Некоторые провайдеры Интернет осуждают сканирование портов | |
- | Be warned! Some Internet Service Providers frown heavily on port | + | и могут принимать меры по недопущению подобной сетевой активности. |
- | scanning and may take measures to prevent you from doing it. | + | **// |
- | **// | + | системах для обслуживания и исследования безопасности, но не как сканер |
- | used on your own systems for maintenance and security purposes, | + | Интернет общего назначения. |
- | not as general purpose Internet scanners. | + | |
</ | </ | ||
==== host ==== | ==== host ==== | ||
- | Often network problems stem from a failure of DNS (Domain Name Service) | + | Часто сетевые проблемы являются результатом отказов |
- | which maps domain names to IP addresses. An easy way to perform quick | + | имён), сопоставляющей доменному имени адрес |
- | DNS lookups is the **// | + | выполнения поиска в DNS является команда |
- | this is run, your computer will perform a few common | + | компьютер сделает несколько общепринятых запросов к DNS и выведет результаты. |
- | return the results. | + | |
< | < | ||
Строка 264: | Строка 248: | ||
slackware.com mail is handled by 1 mail-mx.cwo.com. | slackware.com mail is handled by 1 mail-mx.cwo.com. | ||
</ | </ | ||
+ | |||
+ | |||
==== dig ==== | ==== dig ==== | ||
- | More complex | + | Более сложные запросы к DNS могут быть выполнены вручную командой |
- | **// | + | **// |
- | is //"the meanest dog in the pound"// when it comes to troubleshooting DNS | + | дело доходит до устранения неполадок с DNS. С её помощью можно выполнить |
- | issues. With this tool, you can perform virtually any DNS lookup from | + | практически любой запрос к DNS, от обратных зон до записей |
- | reverse lookups to A, CNAME, MX, SP, TXT records and more. There are | + | SP, TXT и прочих. Количество параметров командной строки слишком велико, |
- | far too many command-line options and lookup types to go into depth | + | чтобы заниматься их перечислением здесь, но страница руководства |
- | here, but the man page lists all the common use cases. | + | перечисляет все частые варианты использования. |
< | < | ||
Строка 301: | Строка 287: | ||
</ | </ | ||
- | Let's take a took at the command-line options used above.The | + | Рассмотрим использованные параметры. Параметр |
- | // | + | **//dig//**, к какому серверу |
- | **// | + | **// |
- | specified, **// | + | Параметр |
- | servers are listed in ''/ | + | мы искали запись |
- | //a// argument at the end is the type of DNS record to lookup. | + | |
- | In this case we looked for an //" | + | |
==== finger ==== | ==== finger ==== | ||
- | **// | + | **// |
- | tool as much as it is a network-user diagnostic tool. Using | + | инструмент диагностики сеть-пользователь. Используя |
- | **// | + | можно собрать горстку полезной информации о пользователях серверов, |
- | information about users on servers running the | + | работающих под управлением демона |
- | **// | + | немногие серверы всё ещё предоставляют |
- | still offer **// | + | что предоставляют, |
- | it can be a useful tool for keeping track of your friends and | + | друзей и коллег. |
- | co-workers. | + | |
< | < | ||
Строка 335: | Строка 320: | ||
No Plan. | No Plan. | ||
</ | </ | ||
- | ===== Web Browsers ===== | ||
- | Slackware | + | |
- | graphical desktop, you'll find **// | + | ===== Браузеры ===== |
- | **// | + | |
- | familiar with, but what about console access? Fortunately, there are a | + | Slackware |
- | number of capable web browsers here as well. | + | рабочий стол, к вашим услугам |
+ | другие, с которыми возможно уже знакомы, но как же насчёт консоли? | ||
+ | К счастью, | ||
+ | |||
==== lynx ==== | ==== lynx ==== | ||
- | The oldest console-based web browser included with Slackware | + | Старейший консольный браузер в составе |
- | definitely | + | весьма способный, |
- | somewhat limited web browser.**// | + | поддерживает фреймы, сценарии ява или изображения и является текстовым |
- | support frames, javascript, or pictures; it is strictly a text web | + | браузером. Навигация производится при помощи клавиатурных стрелок и, |
- | browser. Navigation is performed using your keyboard' | + | опционально, при помощи мыши. Хоть в нём и нет многих возможностей других |
- | optionally, a mouse. While it lacks many features that other browsers | + | браузеров, **// |
- | support, **// | + | Например, параметр |
- | browsers you'll ever use for gathering information. For example, the | + | напрямую в консоль, этот вывод легко перенаправить в другие программы. |
- | // | + | |
- | console, which can then be piped to other programs. | + | |
{{ : | {{ : | ||
+ | |||
+ | |||
==== links ==== | ==== links ==== | ||
- | A more feature-rich alternative is the popular | + | Более богатой возможностями альтернативой является |
- | **// | + | |
- | supports frames and has better table rendering than | + | |
- | **// | + | |
- | **// | + | |
- | the use of a mouse is supported.Unlike | + | |
- | **// | + | |
- | click on the top line with your mouse to activate) and generally | + | |
- | formats web pages better. | + | |
{{ : | {{ : | ||
==== wget ==== | ==== wget ==== | ||
- | Unlike the other browsers we've looked at, | + | В отличие от рассмотренных выше браузеров, **// |
- | **// | + | |
- | HTTP content, **// | + | |
- | the //" | + | |
- | browsers, **// | + | |
- | downloads; rather it copies the content in its exact form on the web | + | |
- | server with all tags and binary data in place. It also supports several | + | |
- | recursive options that can effectively mirror online content to your | + | |
- | local computer.**// | + | |
- | exclusively on HTTP content; it also supports | + | |
- | protocols. | + | |
< | < | ||
Строка 401: | Строка 371: | ||
2010-05-01 13:51:22 (110 KB/s) - `ChangeLog.txt' | 2010-05-01 13:51:22 (110 KB/s) - `ChangeLog.txt' | ||
</ | </ | ||
- | ===== Mail Clients | + | ===== Почтовые клиенты |
- | Slackware | + | Slackware |
- | graphical desktop, you'll find **// | + | |
- | **// | + | |
- | and others. As with web browsers, there are also applications that | + | |
- | function within the shell. Once you start using an email client in the | + | |
- | console, you may find yourself not wanting to use anything else; the | + | |
- | flexibility and configurability can be addicting. | + | |
==== pine ==== | ==== pine ==== | ||
- | **// | + | **// |
- | interface mail clients still in existance and remains one of the most | + | строки, |
- | user-friendly. | + | **// |
- | University of Washington and carries with it both a trademark and a | + | и лицензию, |
- | copyright license that are difficult to work with. Thankfully back in | + | К счастью, |
- | 2005, the university saw fit to re-write it without the trademark and | + | знака и с более открытой лицензией, так появился |
- | with a more open license, so **// | + | распространяемый в Slackware клон |
- | pine-clone distributed with Slackware, was born. | + | |
- | To start using **// | + | Для использования |
- | simply type **// | + | строке. Благодаря системе меню и подсказкам внизу экрана пользоваться им |
- | Using it is very simple due to its menu-driven system as well as the | + | очень просто. Посмотрите сами: |
- | command reference neatly located at the bottom of the screen. See for | + | |
- | yourself: | + | |
{{ : | {{ : | ||
- | Before configuring any mail client, you should check the | + | Перед настройкой любого почтового клиента нужно обратиться к документации |
- | documentation of your mail server to gather all of the pertinent | + | своего почтового сервера для сбора всех необходимых сведений о используемых |
- | information about what protocols and security measures your mail | + | сервером протоколах и настройках безопасности. Это поможет правильно настроить |
- | service uses. This will help you configure | + | **// |
- | **// | + | сервисе, |
- | **// | + | ожидали, |
- | to a mail service running on your computer. Unless you're actually | + | К счастью, |
- | running such a mail service | + | в меню |
- | what you want. Fortunately configuring | + | почте, сервер |
- | **// | + | |
- | Simply enter the [S]etup | + | |
- | be given an option to enter you name, mail path, SMTP server, and | + | |
- | many other options. | + | |
==== mutt ==== | ==== mutt ==== | ||