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

macOS 下刚开机就有贼多 utun 设备,怎么定位是哪个软件创建的 utun?

  •  
  •   Jiajin · 2022-04-20 10:19:22 +08:00 · 3458 次点击
    这是一个创建于 709 天前的主题,其中的信息可能已经有所发展或是发生改变。

    macOS 下刚开机什么都没干,就有贼多 utun 设备,现在被认定多个虚拟网卡,违规外联,怎么破?新机器应该没这么多 utun 吧,怎么定位是哪个软件创建的 utun ?
    ifconfig -a有这么多 utun 设备,尝试使用sudo ifconfig utun6 down也无法删除,难顶。

    utun0: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1380
    	inet6 fe80::e388:c289:d91:760a%utun0 prefixlen 64 scopeid 0x10 
    	nd6 options=201<PERFORMNUD,DAD>
    utun1: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 2000
    	inet6 fe80::c2f4:a129:9c5f:b0d1%utun1 prefixlen 64 scopeid 0x11 
    	nd6 options=201<PERFORMNUD,DAD>
    utun2: flags=8051<UP,POINTOPOINT,RUNNING,MULTICAST> mtu 1000
    	inet6 fe80::ce81:b1c:bd2c:69e%utun2 prefixlen 64 scopeid 0x12 
    	nd6 options=201<PERFORMNUD,DAD>
    utun3: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1380
    	inet6 fe80::76af:d2c1:bbd6:b422%utun3 prefixlen 64 scopeid 0x13 
    	nd6 options=201<PERFORMNUD,DAD>
    utun4: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1380
    	inet6 fe80::7bec:709d:87da:f8a8%utun4 prefixlen 64 scopeid 0x14 
    	nd6 options=201<PERFORMNUD,DAD>
    utun5: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1380
    	inet6 fe80::bfa:a18d:3a3:7458%utun5 prefixlen 64 scopeid 0x15 
    	nd6 options=201<PERFORMNUD,DAD>
    utun6: flags=8050<POINTOPOINT,RUNNING,MULTICAST> mtu 1380
    	inet6 fe80::70b2:a454:b204:681b%utun6 prefixlen 64 scopeid 0x16 
    	nd6 options=201<PERFORMNUD,DAD>
    
    6 条回复    2023-04-04 17:34:58 +08:00
    Mitt
        1
    Mitt  
       2022-04-20 10:24:56 +08:00
    https://apple.stackexchange.com/questions/310220/who-creates-utun0-adapter

    BTW. 你从 "网络" 里看到的很多网络接口都其实在使用这些 utun
    Jiajin
        2
    Jiajin  
    OP
       2022-04-20 10:35:52 +08:00
    @Mitt 在哪可以看哪些进程在使用 utun ? linux 这样可以看,但是 macOS 没这个 /proc
    ```shell
    find /proc/ -name tun0 | cut -d\/ -f3 | uniq | xargs -IPID lsof -p PID
    ```
    Mitt
        3
    Mitt  
       2022-04-20 10:50:04 +08:00
    不一定有进程在用,你可以去网络里数一下,反正我有 utun9 ,能对应上每个虚拟网络接口
    jdjingdian
        4
    jdjingdian  
       2022-04-20 13:41:47 +08:00
    应该是正常的吧,越狱的 iPhone 只安装 openssh 插件和 ifconfig ,也能看到很多 utun 设备
    bdingtech
        5
    bdingtech  
       360 天前
    老哥解决了吗?同问
    Jiajin
        6
    Jiajin  
    OP
       360 天前
    @bdingtech 违规外联的检测原理和虚拟网卡关系不是特别大,主要就是你电脑不能访问互联网。
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2868 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 11:29 · PVG 19:29 · LAX 04:29 · JFK 07:29
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.