scanlogd - detects and logs TCP port scans
saddr[:sport] to daddr [and others,] ports port[, port...], ..., flags[, TOS TOS][, TTL TTL] @HH:MM:SS
The fields in square brackets are optional; sport, TOS, and TTL will only be displayed if they were constant during the scan.
The flags field represents TCP control bits seen in packets coming to the system from the address of the scan. It is a combination of eight characters, with each corresponding to one of the six defined and two reserved TCP control bits (see RFC 793). Control bits that were always set are encoded with an uppercase letter, and a lowercase letter is used if the bit was always clear. A question mark is used to indicate bits that changed from packet to packet.
As of version 2.0, scanlogd is aware of the raw socket interface on Linux, libnids, and libpcap.
The use of libpcap alone is discouraged. If you're on a system other than Linux and/or want to monitor the traffic of an entire network at once, you should be using libnids in order to handle fragmented IP packets.
Logging is done with a facility of daemon and a priority level alert.
scanlogd should be started as root since it needs access to a packet capture interface. By default, it switches to running as user scanlogd after the packet capture interface is initialized.
In most cases, scanlogd should be started from a rc.d script on system startup.
In /etc/syslog.conf you may use something like:
Obviously, the source address of port scans can be spoofed. Don't take any action against the source of attacks unless other evidence is available. Sometimes IP addresses are shared between many people; this is the case for ISP shell servers, dynamic dialup pools, and corporate networks behind NAT (masquerading).
Solar Designer <solar@false.com>Steffen Dettmer <steffen@dett.de> wrote the initial version of this manual page.
scanlogd home page: http://www.openwall.com/scanlogd/ Phrack Magazine, issue 53, article 13
Закладки на сайте Проследить за страницей |
Created 1996-2024 by Maxim Chirkov Добавить, Поддержать, Вебмастеру |