-
Notifications
You must be signed in to change notification settings - Fork 88
Open
Description
It would be nice if we could build IPv6 database with all IPv4 addresses included as IPv4-mapped IPv6 addresses (::ffff:*:*)
Currently, It could be done by editing ipv6 csv inside zip (country example):
tail -n+2 GeoIP2-Country-Blocks-IPv4.csv |
awk -F, '{ split($1,a,"/"); split(a[1],a1,"."); m = 96+a[2]; printf("::ffff:%02x%02x:%02x%02x/%d,%s,%s,%s,%s,%s\n"),a1[1],a1[2],a1[3],a1[4],m,$2,$3,$4,$5,$6}' >> GeoIP2-Country-Blocks-IPv6.csv
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels