V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
pfitseng
V2EX  ›  分享发现

全部公网的 ip 范围

  •  
  •   pfitseng · 2015-02-22 12:59:36 +08:00 · 6078 次点击
    这是一个创建于 3571 天前的主题,其中的信息可能已经有所发展或是发生改变。

    根据http://zh.wikipedia.org/wiki/IPv4
    去掉 0.0.0.0/8 127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 224.0.0.0/3
    我主要放在ocserv里用,no-route这个参数貌似对anyconnect没用
    另外伸手下,哪位知道哪个段中国分到的多点?我来直接拿掉,误伤一点也没关系。

    route = 1.0.0.0/255.0.0.0
    route = 2.0.0.0/248.0.0.0
    route = 8.0.0.0/254.0.0.0
    route = 11.0.0.0/255.0.0.0
    route = 12.0.0.0/240.0.0.0
    route = 15.0.0.0/252.0.0.0
    route = 16.0.0.0/240.0.0.0
    route = 32.0.0.0/224.0.0.0
    route = 64.0.0.0/224.0.0.0
    route = 96.0.0.0/240.0.0.0
    route = 112.0.0.0/248.0.0.0
    route = 120.0.0.0/252.0.0.0
    route = 124.0.0.0/254.0.0.0
    route = 126.0.0.0/255.0.0.0
    route = 128.0.0.0/224.0.0.0
    route = 160.0.0.0/248.0.0.0
    route = 168.0.0.0/255.0.0.0
    route = 169.0.0.0/255.128.0.0
    route = 169.128.0.0/255.192.0.0
    route = 169.192.0.0/255.224.0.0
    route = 169.224.0.0/255.240.0.0
    route = 169.240.0.0/255.248.0.0
    route = 169.248.0.0/255.252.0.0
    route = 169.252.0.0/255.254.0.0
    route = 169.255.0.0/255.255.0.0
    route = 170.0.0.0/254.0.0.0
    route = 172.0.0.0/255.240.0.0
    route = 172.32.0.0/255.224.0.0
    route = 172.64.0.0/255.192.0.0
    route = 172.128.0.0/255.128.0.0
    route = 173.0.0.0/224.0.0.0
    route = 192.0.0.0/255.128.0.0
    route = 192.128.0.0/255.224.0.0
    route = 192.160.0.0/255.248.0.0
    route = 192.169.0.0/255.255.0.0
    route = 192.170.0.0/255.254.0.0
    route = 192.172.0.0/255.252.0.0
    route = 192.176.0.0/255.240.0.0
    route = 192.192.0.0/255.192.0.0
    route = 193.0.0.0/224.0.0.0

    10 条回复    2015-05-02 21:40:30 +08:00
    ScotGu
        1
    ScotGu  
       2015-02-22 13:18:46 +08:00   ❤️ 2
    imlonghao
        2
    imlonghao  
       2015-02-22 13:45:40 +08:00 via Android
    感觉从APNIC获取的准确一些
    imlonghao
        3
    imlonghao  
       2015-02-22 13:56:52 +08:00 via Android   ❤️ 2
    curl 'http://ftp.apnic.net/apnic/stats/apnic/delegated-apnic-latest' | grep ipv4 | grep 'CN' | awk -F\| '{ printf("%s/%d\n", $4, 32-log($5)/log(2)) }' > CN
    Yamade
        4
    Yamade  
       2015-02-22 14:52:26 +08:00
    @imlonghao 然后再加入屏蔽
    Daniel65536
        5
    Daniel65536  
       2015-02-22 16:17:12 +08:00   ❤️ 1
    no-route这个参数对anyconnect有用,只是不能和route参数混合使用。
    pfitseng
        6
    pfitseng  
    OP
       2015-02-22 16:42:22 +08:00
    @Daniel65536 果然是这样,我理解错了
    LazyZhu
        7
    LazyZhu  
       2015-02-22 16:45:58 +08:00 via iPhone
    可以加入常用网站/CDN的ip段,来源于日常使用中收集的
    hejiaxian
        8
    hejiaxian  
       2015-02-22 21:06:00 +08:00
    @imlonghao 这个霸气,不过规则太多估计得跪,要精简下
    alect
        9
    alect  
       2015-02-25 08:36:01 +08:00
    127.0.0.0/8 10.0.0.0/8 172.16.0.0/12 192.168.0.0/16 不用去掉
    regeditms
        10
    regeditms  
       2015-05-02 21:40:30 +08:00
    no-route 这个字段有用目前最多只能达到200条,
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1003 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 24ms · UTC 20:36 · PVG 04:36 · LAX 12:36 · JFK 15:36
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.