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
-
Notifications
You must be signed in to change notification settings - Fork 0
Creates ipset script from an autonomous system (AS) addresses from RIPE database
License
olvsa/as2ipset
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Creates ipset script from an autonomous system (AS) addresses from RIPE database
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published