Skip to content

Perl script to generate one or more IP ranges (in P2P plaintext format) to CIDR notation (Usable in, for example, pf)

Notifications You must be signed in to change notification settings

dxtr/range2cidr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 

Repository files navigation

range2cidr
----------
This script reads IP ranges (One range per line or P2P plaintext format) 
from stdin, converts them to CIDR nets and outputs them on stdout

Example usage:
	./range2cidr.pl < blocklist.txt

If you want the output in a file:
	./range2cidr.pl < blocklist.txt > output.txt

Requirements:
	* Perl
	* Net::CIDR

About

Perl script to generate one or more IP ranges (in P2P plaintext format) to CIDR notation (Usable in, for example, pf)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages