hpr4041 :: Using grepcidr to find IPs in a netblock
An introduction to the grepcidr command, which makes finding IPs from a netblock in log files easier
Hosted by Deltaray on Monday, 2024-01-29 is flagged as Clean and is released under a CC-BY-SA license.
cli, command line, linux, sysadmin, networking.
1.
The show is available on the Internet Archive at: https://archive.org/details/hpr4041
Listen in ogg,
spx,
or mp3 format. Play now:
Duration: 00:11:20
general.
grepcidr is usually available from your distribution's default repositories, so on Debian based systems you could install it with:
sudo apt install grepcidr
Example of grepcidr use:
grepcidr 40.10.32.0/22 /var/log/syslog
You can read more about CIDR notation on the Wikipedia page for CIDR