Site Map - skip to main content

Hacker Public Radio

Your ideas, projects, opinions - podcasted.

New episodes every weekday Monday through Friday.
This page was generated by The HPR Robot at


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

<< First, < Previous, , Latest >>

Hosted by Deltaray on 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


Comments

Subscribe to the comments RSS feed.

Comment #1 posted on 2024-02-04 15:37:42 by Kevin O'Brien

Great show

I really enjoyed this show. This is a useful tool.

Leave Comment

Note to Verbose Commenters
If you can't fit everything you want to say in the comment below then you really should record a response show instead.

Note to Spammers
All comments are moderated. All links are checked by humans. We strip out all html. Feel free to record a show about yourself, or your industry, or any other topic we may find interesting. We also check shows for spam :).

Provide feedback
Your Name/Handle:
Title:
Comment:
Anti Spam Question: What does the letter P in HPR stand for?