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

macOS 端 surge 做网关,安卓设备 mitm failed 怎么办?

  •  
  •   christin · 350 天前 · 1963 次点击
    这是一个创建于 350 天前的主题,其中的信息可能已经有所发展或是发生改变。
    前几天把家里闲置的 MacBook Air 装上 surge ,开启 DHCP 后接管家里的设备,用起来还可以,功能和软路由差不多,但是苹果设备可以安装证书进行 mitm 。
    现在安卓设备有点问题,不能装证书,装的一些解密模块就失败导致接口直接不通了。有什么好的方法吗?
    8 条回复    2023-05-10 16:30:19 +08:00
    Love4Taylor
        1
    Love4Taylor  
       350 天前   ❤️ 1
    client-source-address

    Use this parameter to enable the MITM function on some devices only.

    It's a list parameter using commas as the separator.
    You may specify a single IP address or use a CIDR block. Both IPv4 and IPv6 are supported.
    You may use the - prefix to exclude some clients, e.g., client-source-address = -192.168.1.2, 0.0.0.0/0
    If the parameter is not set, MITM is enabled for all clients. A equivalent to client-source-address = 0.0.0.0/0, ::/0
    127.0.0.1 should be included if you want to enable MITM for the current device.

    from https://manual.nssurge.com/http-processing/mitm.html
    BridgeCham
        2
    BridgeCham  
       350 天前
    为什么我开启 DHCP 后,整个网络都卡卡的,加载非常慢.
    SandyLee
        3
    SandyLee  
       350 天前 via iPhone
    是不是开了 ipv6 ,把 ipv6 关掉试试
    christin
        4
    christin  
    OP
       350 天前 via iPhone
    @BridgeCham 你可以在网络查看器里面看一下是不是分流走错了
    BridgeCham
        5
    BridgeCham  
       350 天前
    @christin #4 重新整理一下下次试试
    1002xin
        6
    1002xin  
       350 天前
    @BridgeCham #5 看下路由器还有光猫的 DHCP 关了没
    BridgeCham
        7
    BridgeCham  
       350 天前 via iPhone
    @1002xin
    @christin
    感谢,昨天找到原因了,因为是软件默认设置的 DNS 是阿里和腾讯的,我之前用的是电信自带的,将设置改为系统默认 DNS 就快了很多
    1002xin
        8
    1002xin  
       349 天前
    @BridgeCham #7 都补充上去即可,哪个快走哪个,我一般情况直接去掉 system ,供应商的偶尔有劫持的情况
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   3549 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 26ms · UTC 11:10 · PVG 19:10 · LAX 04:10 · JFK 07:10
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.