Notice: Trying to get property of non-object in /home/wpcmsnin/snippets.wpcms.ninja/wp-content/plugins/wordpress-seo/frontend/schema/class-schema-utils.php on line 25

IP Address Guide – CIDR to IP range convertor

by | Mar 24, 2017 | 0 comments

http://www.ipaddressguide.com/cidr is a great tool that allows you to see what IP range a CIDR notation is.  Giving you the First IP address and Last IP address based upon the Classless Inter-Domain Routing.

For instance Cloudflare uses the following IP addresses according to https://www.cloudflare.com/ips/

IPv4 Ranges:
103.21.244.0/22
103.22.200.0/22
103.31.4.0/22
104.16.0.0/12
108.162.192.0/18
131.0.72.0/22
141.101.64.0/18
162.158.0.0/15
172.64.0.0/13
173.245.48.0/20
188.114.96.0/20
190.93.240.0/20
197.234.240.0/22
198.41.128.0/17
199.27.128.0/21

IPv6 Ranges:
2400:cb00::/32
2405:8100::/32
2405:b500::/32
2606:4700::/32
2803:f800::/32
2c0f:f248::/32
2a06:98c0::/29

By using that guide you are then able to get the range of IP addresses so that you are able to convert it to WordFence notation like the following:

IPv4
103.21.[244-247].[0-255]
103.22.[200-203].[0-255]
103.31.[4-7].[0-255]
104.[16-31].[0-255].[0-255]
108.162.[192-255].[0-255]
131.0.[72-75].[0-255]
141.101.[64-127].[0-255]
162.[158-159].[0-255].[0-255]
172.[64-71].[0-255].[0-255]
173.245.[48-63].[0-255]
188.114.[96-111].[0-255]
190.93.[240-255].[0-255]
197.234.[240-243].[0-255]
198.41.[128-255].[0-255]
199.27.[128-135].[0-255]