GitHub's IP addresses and CIDR format

GitHub serves applications from multiple IP address ranges, which are available using the API.

You can retrieve a list of GitHub's IP addresses from the meta API endpoint. For more information, see "Meta" in the GitHub Developer documentation.

These ranges are in CIDR notation. You can use an online conversion tool such as this CIDR / VLSM Supernet Calculator to convert from CIDR notation to IP address ranges.

We make changes to our IP addresses from time to time, and will keep this API up to date. We do not recommend whitelisting by IP address, however if you use these IP ranges we strongly encourage regular monitoring of our API.

For applications to function, you must allow TCP ports 22, 80, 443, and 9418 via our IP ranges for github.com


CIDR Calculator: http://www.subnet-calculator.com/cidr.php

192.30.252.153/32 前面为IP,"/"后面为mask的位数(32-->8.8.8.8-->11111111.11111111.11111111.11111111-->255.255.255.255)-IP范围只有192.30.252.153

192.30.252.153/31(只有最后一位可以变动。153-->10011001--变动一位-->10011000-->152)IP范围192.30.252.152~192.30.252.153

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值