V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
foccy
V2EX  ›  路由器

路由器 IP 和外网 IP 不一致(都是公网 IP),但是公网不通。

  •  
  •   foccy · Apr 6, 2016 · 5927 views
    This topic created in 3676 days ago, the information mentioned may be changed or developed.

    路由器 IP 和外网 IP 不一致,两个 IP 都是外网 IP 。

    我试了下新建了一个socket listener,但是公网无法连接,有可能传入的流量在外面被 drop 掉了。

    还能救吗?

    17 replies    2016-04-11 17:29:22 +08:00
    smallfount
        1
    smallfount  
       Apr 6, 2016
    说实话没太理解....你路由器 IP 跟公网 IP 的概念是...
    一般来说路由 IP 都是指接口 IP....那么外网 IP 又是撒....
    yexm0
        2
    yexm0  
       Apr 6, 2016
    你是指的长城之类的宽带吧外网 ip 当内网用的行为吧.
    xbonline
        3
    xbonline  
       Apr 6, 2016
    KexyBiscuit
        4
    KexyBiscuit  
       Apr 6, 2016 via Android
    路由器获取的是什么 IP ? 100.64.0.0/10 ?还是普通的公网 IP ?
    前者是私网保留段,后者可能是 NAT 分配了公网 IP ,但是本质没有变化。
    Tink
        5
    Tink  
    PRO
       Apr 6, 2016
    ngrok
    bdbai
        6
    bdbai  
       Apr 6, 2016 via Android
    应该是被内网了,致电运营商让他们开通公网 IP 试试。就说搞监控,有些会同意的。
    不行的话用内网穿透方案吧,比如花生壳和 ngrok 。
    foccy
        7
    foccy  
    OP
       Apr 6, 2016
    @yexm0
    是的

    @smallfount
    @KexyBiscuit
    比如目前路由器分配的 IP 是 118.207.58.185 ,但是从 http://www.ipip.net/ip.php 获取的 IP 是 120.52.24.6

    @xbonline
    @Tink
    ngrok 貌似不可以 ssh 吧,还需要一台公网主机?
    hahasong
        8
    hahasong  
       Apr 6, 2016
    电信现在会分配 100.64.0.0/10 的 IP ,骗小白用户是外网,其实是公网 IP 在内网用
    smallfount
        9
    smallfount  
       Apr 6, 2016
    @hahasong
    10.64.0.0/10 是电信级的 NAT 保留地址...不算公网地址


    @foccy
    这个状态很奇妙啊....他们难道地址池多得没地方用吗? 在给你公网 IP 的情况下还做一段 NAT...
    用的是什么运营商啊....是否存在运营商接其他供应商带宽出口的可能?
    yexm0
        10
    yexm0  
       Apr 6, 2016
    @smallfount 因为透传便宜啊.
    foccy
        11
    foccy  
    OP
       Apr 6, 2016
    @smallfount
    我觉得你可能猜中了,因为有时候 ipip.net 显示电信,有时候联通。。。
    smallfount
        12
    smallfount  
       Apr 6, 2016
    @foccy
    118.207.0.0/16 4847 China Networks Inter-Exchange
    现在看上去呢....你拿到的 IP 是 AS4847 里的.....这段 IP 理论上是用来给国内做内部交换用的...
    不过我发现 118.207.128.0/17 下还有 2 个 AS...所以不能完全确定前面的 /17 这段现在究竟是被用来干啥的....
    cye3s
        13
    cye3s  
       Apr 6, 2016 via Android
    就是内网做了 nat ,同样的你在能路由上也能设置 dhcp 分配 c 类地址,打 10000 号要公网 ip
    KexyBiscuit
        14
    KexyBiscuit  
       Apr 7, 2016 via Android
    大概是流量穿透,举报吧,三大运营商在严打。
    alect
        15
    alect  
       Apr 11, 2016
    虽然分配公网,但是经过运营商段的时候做了流量穿透,这个没法破了。。
    realpg
        16
    realpg  
    PRO
       Apr 11, 2016
    120.52.24.6 这个 你访问了国外的地址吧

    最近中国联通建设的缓存减速系统,有效的降低了国际线路的拥堵程度……
    realpg
        17
    realpg  
    PRO
       Apr 11, 2016
    楼上的各位都想得太多了

    中国联通最新云减速系统, mime 为各种压缩包,视频,音频,等非文本项的 http 请求,联通自动 302
    到 http://120.52.x.x/原地址,联通官方云减速,基本上比如日韩直连下载速度能有 2MB/s 的,经过云减速立刻变成 300KB/s 有效的降低了用户的跨国下载欲望
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2676 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 103ms · UTC 14:38 · PVG 22:38 · LAX 07:38 · JFK 10:38
    ♥ Do have faith in what you're doing.