You are here: start » technik:start » technik:tools

Table of Contents

Franks Tool-Box

toolbox.jpg

Networking

IP-Calc

iptraf - Traffic Monitor

tcpdump - Traffic Dumps

nmap - Portscanner

netstat - Network Status

z.B. Show open connections

netstat -pnat
tcp        0      0 0.0.0.0:80              0.0.0.0:*               LISTEN     -
tcp        0      0 0.0.0.0:443             0.0.0.0:*               LISTEN     -

lsof - List open files (with network context)

listet z.B. mit -i alle files mit offenen Internetverbindungen:

lsof -i
apache2 11358 www-data    3u  IPv4 2542922850       TCP *:www (LISTEN)
apache2 11358 www-data    4u  IPv4 2542922851       TCP *:https (LISTEN)

ethtool - NIC configuration

Display or change ethernet card settings

z.B. Abschalten des TCP segmentation offload (offload = Auslagerung der Segmentation auf NIC)

ethtool -K eth0 tso off

nc netcat - copy files over network without ssh, ftp, ...

to copy filename from client to server:

At the server console:

$ nc -v -w 30 -p 5600 -l > filename.back

and on the client side:

$ nc -v -w 2 10.0.1.1 5600 < filename

Server

mondo - System Recovery

Installation

apt-get install mondo

Review

good tool for system backup on CD/DVD-Image

Mondo Rescue ist ein System Recovery Tool. Mit Mondo ist es möglich, ein System als ISO-Image zu sichern. Im Bedarfsfall kann dieses Image auf CD(s)/DVD(s) gebrannt werden. Man erhält dann ein bootfähiges Medium, mit dem man sein System from scratch wiederherstellen kann. Zur Verwendung kommt dabei optional (und empfehlenswerterweise) ein speziell von Mondo bereitgestellter Kernel - der Mindi-Kernel -, der alles enthält, was zum Restore notwendig ist.

Beim Erstellen des Image ist es möglich (Daten-)verzeichnisse auszuschließen (in unserem Fall /media). Dies ermöglicht eine Trennung von System- bzw. Konfigurations- und Datenbackup. (Von Vornherein ausgeschlossen sind /tmp und /proc.)

Beim Restore des Systems ist es möglich, eine Mountlist zu editieren. Damit kann man zum einen eine Installation auf andere Partitionen klonen, zum anderen ist es möglich, Partitionen aus der Mountlist zu entfernen, bei denen man sicher gehen will, daß sie von Mondo während des Restore-Vorgangs nicht formatiert werden (was sich für Datenpartitionen stark anbietet).

pwgen - Automatic Password generation

Installation

apt-get install pwgen

fail2ban - bans IPs that cause multiple authentication errors

Prevent brute force attacks from sshd with fail2ban. fail2ban scanns auth.log for multiple login failures from one IP-address and blocks the IP with iptables.

Programming

RegExp