Skip to content

Instantly share code, notes, and snippets.

@ruebot
Last active June 3, 2020 04:44
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ruebot/605426d052168156ba37 to your computer and use it in GitHub Desktop.
Save ruebot/605426d052168156ba37 to your computer and use it in GitHub Desktop.
These are the IP ranges used for @gccaedits. These IP address come from here: https://en.wikipedia.org/wiki/Wikipedia:Blocking_IP_addresses. If you know of more that should be added, please contact @ruebot, and/or comment here.
"ranges": {
"Government of Canada": [
["192.139.201.0", "192.139.201.255"],
["192.139.202.0", "192.139.202.255"],
["192.139.203.0", "192.139.203.255"],
["192.139.204.0", "192.139.204.255"],
["192.197.77.0", "192.197.77.255"],
["192.197.78.0", "192.197.78.255"],
["192.197.80.0", "192.197.80.255"],
["192.197.84.0", "192.197.84.255"],
["192.197.86.0", "192.197.86.255"]
],
"Canadian House of Commons": [
["192.197.82.0", "192.197.82.255"]
],
"Canadian Department of National Defence": [
["131.132.0.0", "131.132.255.255"],
["131.133.0.0", "131.133.255.255"],
["131.134.0.0", "131.134.255.255"],
["131.135.0.0", "131.135.255.255"],
["131.136.0.0", "131.136.255.255"],
["131.137.0.0", "131.137.255.255"],
["131.138.0.0", "131.138.255.255"],
["131.139.0.0", "131.139.255.255"],
["131.140.0.0", "131.140.255.255"],
["131.141.0.0", "131.141.255.255"]
],
"Industry Canada": [
["192.197.183.0", "192.197.183.255"],
["161.187.0.0", "161.187.255.255"],
["142.53.0.0", "142.53.255.255"]
],
"Canada Centre for Inland Waters": [
["192.75.68.0", "192.75.68.255"],
["198.73.135.0", "198.73.135.255"],
["198.73.136.0", "198.73.136.255"],
["205.189.5.0", "205.189.5.255"],
["205.189.6.0", "205.189.6.255"],
["205.189.7.0", "205.189.7.255"]
],
"Environment Canada": [
["199.212.16.0", "199.212.16.255"],
["199.212.17.0", "199.212.17.255"],
["199.212.19.0", "199.212.18.255"],
["199.212.19.0", "199.212.19.255"],
["199.212.20.0", "199.212.20.255"],
["199.212.21.0", "199.212.21.255"],
["205.189.8.0", "205.189.8.255"],
["205.189.9.0", "205.189.9.255"],
["205.189.10.0", "205.189.10.255"],
["205.211.132.0", "205.211.132.255"],
["205.211.133.0", "205.211.133.255"],
["205.211.134.0", "205.211.134.255"]
]
}
@jeffmurchison
Copy link

@ruebot
Copy link
Author

ruebot commented Jul 15, 2014

Is cert chain setup right on the pirateparty.ca server? I'm getting an error. https://www.dropbox.com/s/xd5b11a29b3zxi5/Screenshot_2014-07-14-23-24-01.png

@ruebot
Copy link
Author

ruebot commented Jul 15, 2014

I'll leave the RCMP IP address to @rcmp_edits https://twitter.com/rcmp_edits, and more than happy to add Industry Canada.

@ruebot
Copy link
Author

ruebot commented Jul 16, 2014

@GameFanager
Copy link

You can find a lot of IP addresses using Hurricane Electric.

http://bgp.he.net/search?search%5Bsearch%5D=government+of+canada&commit=Search

@GameFanager
Copy link

Environment Canada:

192.75.68.0/24 Canada Centre for Inland Waters Canada
198.73.135.0/24 Canada Centre for Inland Waters Canada
198.73.136.0/24 Canada Centre for Inland Waters Canada
199.212.16.0/24 Environment Canada Canada
199.212.17.0/24 Environment Canada Canada
199.212.19.0/24 Environment Canada Canada
199.212.20.0/24 Environment Canada Canada
199.212.21.0/24 Environment Canada Canada
205.189.5.0/24 Canada Centre for Inland Waters Canada
205.189.6.0/24 Canada Centre for Inland Waters Canada
205.189.7.0/24 Canada Centre for Inland Waters Canada
205.189.8.0/24 Environment Canada Canada
205.189.9.0/24 Environment Canada Canada
205.189.10.0/24 Environment Canada Canada
205.211.132.0/24 Environment Canada Canada
205.211.133.0/24 Environment Canada Canada
205.211.134.0/24 Environment Canada

http://bgp.he.net/AS806#_prefixes

@GameFanager
Copy link

Department of Education: 142.227.0.0/16

http://bgp.he.net/AS23307

A lot more (Some duplicates I believe):

132.156.0.0/16 Natural Resources Canada Canada
142.78.0.0/16 Library and Archives Canada Canada
142.191.8.0/21 Correctional Services Canada Canada
142.206.0.0/16 Statistics Canada Canada
142.236.0.0/17 Employement and Immigration Canada Canada
167.32.0.0/17 Shared Services Canada Canada
167.39.28.0/24 Canada
167.55.240.0/24 Shared Services Canada Canada
167.227.0.0/24 Employment and Immigration Canada (EIC) Canada
167.227.32.0/21 Employment and Immigration Canada (EIC) Canada
167.227.48.0/24 Employment and Immigration Canada (EIC) Canada
192.67.45.0/24 Natural Resources Canada Canada
192.75.17.0/24 Natural Resources Canada Canada
192.75.68.0/24 Canada Centre for Inland Waters Canada
192.75.99.0/24 Natural Resources Canada Canada
192.139.6.0/24 Natural Resources Canada Canada
192.139.7.0/24 Natural Resources Canada Canada
192.139.141.0/24 Fisheries & Oceans, Canada Canada
192.139.194.0/24 Natural Resources Canada Canada
192.139.195.0/24 Energy, Mines, and Resources Canada Canada
192.197.71.0/24 Agriculture and Agrifood Canada Canada
192.197.72.0/24 Office of the Auditor General of Canada Canada
192.197.76.0/24 Shared Services Canada Canada
192.197.77.0/24 Public Service Commission of Canada Canada
192.197.79.0/24 Shared Services Canada Canada
192.197.82.0/24 Canadian House of Commons Canada
192.197.83.0/24 Shared Services Canada Canada
192.197.114.0/24 Natural Resources Canada Canada
192.197.115.0/24 Natural Resources Canada Canada
192.197.178.0/24 Industry Canada Canada
192.197.180.0/24 Industry Canada Canada
192.197.181.0/24 Industry Canada Canada
192.197.183.0/24 Industry Canada Canada
192.197.184.0/24 Industry Canada Canada
192.197.243.0/24 Department of Fisheries and Oceans Canada
198.73.135.0/24 Canada Centre for Inland Waters Canada
198.73.136.0/24 Canada Centre for Inland Waters Canada
198.96.2.0/24 Natural Sciences & Engineering Reasearch Council Canada
198.96.3.0/24 NSERC Canada
198.96.62.0/24 Canadian Hydrographic Service Canada
198.103.0.0/16 Shared Services Canada Canada
198.103.15.0/24 GTIS Canada
198.103.18.0/24 Shared Services Canada Canada
198.103.31.0/24 Shared Services Canada Canada
198.103.32.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.39.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.41.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.45.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.49.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.53.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.55.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.57.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.61.0/24 Finance Canada and Treasury Board Secretariat Canada
198.103.92.0/22 Shared Services Canada Canada
198.103.97.0/24 Shared Services Canada Canada
198.103.103.0/24 GTIS Canada
198.103.108.0/24 Solicitor General Canada Canada
198.103.109.0/24 Correctional Services Canada
198.103.134.0/24 Department of Veterans Affairs Canada
198.103.138.0/24 Canadian International Development Agency Canada
198.103.142.0/24 Canadian International Trade Tribunal Canada
198.103.143.0/24 GTIS Canada
198.103.145.0/24 Federal Court of Canada Canada
198.103.146.0/24 National Transportation Agency Canada
198.103.152.0/24 GTIS Canada
198.103.153.0/24 GTIS Canada
198.103.161.0/24 Department of Fisheries and Oceans Canada
198.103.162.0/24 GTIS Canada
198.103.169.0/24 GTIS Canada
198.103.174.0/24 Shared Services Canada Canada
198.103.176.0/24 GTIS Canada
198.103.177.0/24 GTIS Canada
198.103.180.0/24 GTIS Canada
198.103.183.0/24 Shared Services Canada Canada
198.103.187.0/24 Shared Services Canada Canada
198.103.193.0/24 GTIS Canada
198.103.194.0/24 GTIS Canada
198.103.206.0/24 Shared Services Canada Canada
198.103.213.0/24 GTIS Canada
198.103.218.0/24 Shared Services Canada Canada
198.103.234.0/24 Shared Services Canada Canada
198.103.235.0/24 Shared Services Canada Canada
198.103.236.0/24 GTIS Canada
198.103.247.0/24 Shared Services Canada Canada
198.103.249.0/24 Shared Services Canada Canada
198.164.3.0/24 University of New Brunswick Canada
199.212.16.0/24 Environment Canada Canada
199.212.17.0/24 Environment Canada Canada
199.212.18.0/24 Environment Canada Canada
199.212.19.0/24 Environment Canada Canada
199.212.20.0/24 Environment Canada Canada
199.212.21.0/24 Environment Canada Canada
199.212.150.0/24 Royal Canadian Mounted Police Canada
199.212.200.0/24 Department of Justice Canada
199.212.215.0/24 Department of Justice Canada
199.212.216.0/24 Department of Justice Canada
199.246.230.0/24 Canadian Radio-television and Telecommunications Canada
199.246.231.0/24 Canadian Radio-television and Telecommunications Canada
199.246.232.0/24 Canadian Radio-television and Telecommunications Canada
199.246.233.0/24 Canadian Radio-television and Telecommunications Canada
199.246.234.0/24 Canadian Radio-television and Telecommunications Canada
199.246.235.0/24 Canadian Radio-television and Telecommunications Canada
199.246.236.0/24 Canadian Radio-television and Telecommunications Canada
199.246.237.0/24 Canadian Radio-television and Telecommunications Canada
199.246.238.0/24 Canadian Radio-television and Telecommunications Canada
199.246.239.0/24 Canadian Radio-television and Telecommunications Canada
199.246.240.0/24 IBM Canada Ltd Canada
199.246.241.0/24 Canadian Radio-television and Telecommunications Canada
199.246.242.0/24 Canadian Radio-television and Telecommunications Canada
199.246.243.0/24 Canadian Radio-television and Telecommunications Canada
199.246.244.0/24 Canadian Radio-television and Telecommunications Canada
199.246.245.0/24 Canadian Radio-television and Telecommunications Canada
199.246.246.0/24 Canadian Radio-television and Telecommunications Canada
199.246.247.0/24 Canadian Radio-television and Telecommunications Canada
199.246.248.0/24 Canadian Radio-television and Telecommunications Canada
199.246.249.0/24 Canadian Radio-television and Telecommunications Canada
199.246.250.0/24 Canadian Radio-television and Telecommunications Canada
199.246.251.0/24 Canadian Radio-television and Telecommunications Canada
199.246.252.0/24 Canadian Radio-television and Telecommunications Canada
199.246.253.0/24 Canadian Radio-television and Telecommunications Canada
204.187.48.0/24 Canadian Hydrographic Service Canada
205.189.5.0/24 Canada Centre for Inland Waters Canada
205.189.6.0/24 Canada Centre for Inland Waters Canada
205.189.7.0/24 Canada Centre for Inland Waters Canada
205.189.8.0/24 Environment Canada Canada
205.189.9.0/24 Environment Canada Canada
205.189.10.0/24 Environment Canada Canada
205.193.0.0/16 Shared Services Canada Canada
205.193.6.0/24 Shared Services Canada Canada
205.193.35.0/24 Shared Services Canada Canada
205.193.37.0/24 Shared Services Canada Canada
205.194.0.0/17 Shared Services Canada Canada
205.194.23.0/24 Shared Services Canada Canada
205.211.132.0/24 Environment Canada Canada
205.211.133.0/24 Environment Canada Canada
205.211.134.0/24 Environment Canada

http://bgp.he.net/AS2669#_prefixes

These are all IP addresses belonging to the government, though through different departments.

@GameFanager
Copy link

132.246.0.0/16 National Research Council of Canada Canada
132.246.180.0/22 National Research Council of Canada Canada
132.246.192.0/19 National Research Council of Canada Canada
132.246.224.0/19 National Research Council of Canada Canada
192.70.172.0/24 Institute for Biodiagnostics Canada
192.75.14.0/24 National Research Council Canada
192.139.21.0/24 National Research Council Canada
192.139.116.0/23 National Research Council Canada
192.139.198.0/24 National Research Council Canada
204.174.103.0/24 National Research Council Canada

http://bgp.he.net/AS25689#_prefixes

142.92.0.0/16 Communications Research Centre of Canada Canada
192.75.72.0/24 Communications Research Centre

http://bgp.he.net/AS818#_prefixes

And thats me done with spamming this gist. Once you start getting into related IP addresses, you'll have a nice, large list

@ruebot
Copy link
Author

ruebot commented Jul 17, 2014

I've added ranges for: Environment Canada and Canada Centre for Inland Waters. I continue working through added the rest.

@ruebot
Copy link
Author

ruebot commented Jul 17, 2014

@Animud before I proceed, can you do me a favour and verify everything you've requested to be added falls under the Government of Canada? I'm assume stuff like 199.246.240.0/24 IBM Canada Ltd Canada should not be in the list.

@ruebot
Copy link
Author

ruebot commented Jul 17, 2014

Moving contributions here (https://github.com/ruebot/gccaedits-ip-address-ranges) so we can use normal pull request method, and the Github issue system.

@GameFanager
Copy link

@ruebot: I just copy/pasted from the HE site for each ip range. If you click on the whois tab, you'll notice who it comes from (Government Telecommunications and Informatics Services). For the IBM specific one you mentioned, it seems IBM maintains it for the CRTC (http://bgp.he.net/net/199.246.240.0/24#_whois).

Similar deals have been made between Nova Scotia and IBM (Source: http://thechronicleherald.ca/business/166107-dexter-hails-ibm-plan-for-halifax-global-delivery-centre) where IBM has taken over the IT infrastructure for payroll, human resources, etc.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment