Skip to content
/ as2ipset Public

Creates ipset script from an autonomous system (AS) addresses from RIPE database

License

Notifications You must be signed in to change notification settings

olvsa/as2ipset

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

as2ipset

Creates ipset shell script from an autonomous system (AS) IP addresses from RIPE database.
Supports both of IPv4 and IPv6.

Usage: ./as2ipset.py <ASXXXX> <.{/AS_ipvX.ipset}>

AS_ipv4.ipset:
ipset flush ipv4_AS
ipset x ipv4_AS
ipset n ipv4_AS hash:net hashsize 16384 maxelem 262144
ipset add ipv4_AS A1.B1.C1.D1/E1
ipset add ipv4_AS A2.B2.C2.D2/E2

AS_ipv6.ipset:
ipset flush ipv6_AS
ipset x ipv6_AS
ipset n ipv6_AS hash:net hashsize 16384 maxelem 262144 family inet6
ipset add ipv6_AS A1::/B1
ipset add ipv6_AS A2::/B2

About

Creates ipset script from an autonomous system (AS) addresses from RIPE database

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages