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

361 天前
 christin
前几天把家里闲置的 MacBook Air 装上 surge ,开启 DHCP 后接管家里的设备,用起来还可以,功能和软路由差不多,但是苹果设备可以安装证书进行 mitm 。
现在安卓设备有点问题,不能装证书,装的一些解密模块就失败导致接口直接不通了。有什么好的方法吗?
1988 次点击
所在节点    Apple
8 条回复
Love4Taylor
361 天前
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
361 天前
为什么我开启 DHCP 后,整个网络都卡卡的,加载非常慢.
SandyLee
361 天前
是不是开了 ipv6 ,把 ipv6 关掉试试
christin
361 天前
@BridgeCham 你可以在网络查看器里面看一下是不是分流走错了
BridgeCham
361 天前
@christin #4 重新整理一下下次试试
1002xin
360 天前
@BridgeCham #5 看下路由器还有光猫的 DHCP 关了没
BridgeCham
360 天前
@1002xin
@christin
感谢,昨天找到原因了,因为是软件默认设置的 DNS 是阿里和腾讯的,我之前用的是电信自带的,将设置改为系统默认 DNS 就快了很多
1002xin
359 天前
@BridgeCham #7 都补充上去即可,哪个快走哪个,我一般情况直接去掉 system ,供应商的偶尔有劫持的情况

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/938369

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX