Skip to content

exclude an IP address or dns name from a stdin CIDR list, e.g. as extra whitelisting for ipset-blacklist

License

Notifications You must be signed in to change notification settings

degerrit/cidr_exclude

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 

Repository files navigation

cidr_exclude

Exclude an IP address or DNS name from a stdin CIDR list, e.g. as extra whitelisting for ipset-blacklist

Doesn't accept a CIDR as /argument/ (only as stdin) - just use the network address instead

Syntax: accepts multiple arguments, dns name or ip address

Example:

  • cat /tmp/tmp.Nm40laAgjP | ./cidr_exclude.py 23.22.181.230 52.1.126.80
  • cat /tmp/tmp.Nm40laAgjP | ./cidr_exclude.py www.telenet.be

Prerequisites

  • python3
  • python3 -m pip install netaddr

About

exclude an IP address or dns name from a stdin CIDR list, e.g. as extra whitelisting for ipset-blacklist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages