How to show all banned IP with fail2ban?

Please keep in mind that the fail2ban banning of IP is temporary in nature. The best way to have a look at the full list of IPs that have been blocked would be to check the log file: sudo zgrep ‘Ban’ /var/log/fail2ban.log* Edit: this answer previously searched for ‘Ban:’, but even in 2013 the source … Read more

nmap find all alive hostnames and IPs in LAN

nmap versions lower than 5.30BETA1: nmap -sP 192.168.1.* newer nmap versions: nmap -sn 192.168.1.* This gives me hostnames along with IP adresses, and only pings the hosts to discover them. This will only give you the hostnames if you run it as root. EDIT: As of Nmap 5.30BETA1 [2010-03-29] -sP has been replaced with -sn … Read more