XX-Net
XX-Net copied to clipboard
Install Miredo on macOS
经过很长一段时间摸索,终于成功在macOS上(macOS Sierra Version 10.12.6)安装了Miredo,现在已试用一周,基本稳定,因此现在希望把这个经验分享给各位macOS的使用者,也希望各位能够帮助测试是否还有其它的问题(比如最新的macOS 10.13以上版本),最终使得macOS上miredo的使用更加完美。下面简单介绍一下具体步骤:
-
Download & Install Tunnelblick (for signed tun purpose)
https://tunnelblick.net/downloads.html
-
Check whether has installed MacPorts & Execute the command below in Terminal
port
-
If not installed yet, Download & Install MacPorts
https://www.macports.org/install.php
-
Execute command & Install Miredo
port search miredo sudo port install miredo
-
Execute commands as below in Terminal & Check whether has loaded tun-signed kext
kextstat | grep tun
-
If exists, skip this step. If empty, Execute command & Try to load tun-signed.kext from Tunnelblick.app
sudo kextload /Applications/Tunnelblick.app/Contents/Resources/tun-signed.kext
-
Start up Miredo
sudo miredo
-
Check tun-signed.kext and Miredo again
kextstat | grep tun ps aux | grep miredo
完成以上步骤,就可以使用Miredo了,关键点就在于Tunnelblick和MacPorts,如果还是不成功的话,各位还是要多摸索一下了。祝各位都能成功并使用顺利。
另: 当然,各位可以简单写一个脚本,在开机的时候使用root权限执行一下来启动Miredo,大概的脚本如下所示: #!/bin/bash
SIGNED_TUN_PATH=/Applications/Tunnelblick.app/Contents/Resources/
cd $SIGNED_TUN_PATH sudo kextload tun-signed.kext sudo miredo
有效,而且不需要关闭苹果的sip
到第七步输入sudo miredo后似乎会出现: Cannot create PID file /opt/local/var/run/miredo.pid: Resource temporarily unavailable Please make sure another instance of the program is not already running.
@dlzdyl 使用ps aux | grep miredo看看是不是miredo已经启动了,一般正常启动之后有三个pid及相应的进程,如下图所示。正常启动之后就不用再次sudo miredo来启动Miredo了;如果想结束之前启动的Miredo,可以使用sudo pkill -9 miredo命令完成,再次启动Miredo,就使用sudo miredo就可以了。
执行port提示command not found
@JoelynZhou /opt/local/bin/port
macOS high Sierra sudo kextload /Applications/Tunnelblick.app/Contents/Resources/tun-signed.kext 这个步骤会有问题 在 系统偏好设置- 安全与隐私 - 允许 一下就好了
终于可以了
@qingsheng0214 干货,感谢楼主,macos 10.11.6 可以安装,但是xx-net ipv6 status 还是fail。 相同网络条件下win10 ipv6没有问题。 terminal 执行 sudo miredo -f 强制前台运行,显示错误如下: sudo miredo -f Nov 19 10:46:37 miredo[967] <Info>: 启动中... dyld: lazy symbol binding failed: Symbol not found: _clock_gettime Referenced from: /opt/local/lib/libteredo.5.dylib Expected in: /usr/lib/libSystem.B.dylib
dyld: Symbol not found: _clock_gettime Referenced from: /opt/local/lib/libteredo.5.dylib Expected in: /usr/lib/libSystem.B.dylib
不知道具体是什么问题? 查了miredo 的文档,也找不到其他显示状态的方法。请楼主赐教。
可以啦,谢谢楼主
macOS 10.13.1, tun0能获取到2001开头ipv6地址,但是xx-net ipv6 status fail,哪位知道这是什么原因吗,🙏
Test with IPv4 DNS record | ok (0.693s) using ipv4 | |
---|---|---|
Test with IPv6 DNS record | timeout (15.017s) | |
Test with Dual Stack DNS record | ok (0.866s) using ipv4 | |
Test for Dual Stack DNS and large packet | ok (0.458s) using ipv4 | |
Test IPv4 without DNS | ok (0.421s) using ipv4 | |
Test IPv6 without DNS | timeout (15.011s) | |
Test IPv6 large packet | timeout (15.022s) | |
Test if your ISP's DNS server uses IPv6 | ok (1.788s) using ipv4 | |
Find IPv4 Service Provider | ok (0.847s) using ipv4 ASN 4134 | |
Find IPv6 Service Provider | timeout (15.086s) |
@gwanii ipv6.test-ipv6.com
miredo 我重新安装了一遍,现在可以正常使用,为免少走弯路 ,建议port里面安装miredo前做以下: 1.安装 xcode command line tools:terminal内运行xcode-select --install 2.ports 先升级一下index:sudo port selfupdate 3.sudo miredo 后看是否成功 可以 运行ifconfig | grep tun0 ,如果看到有返回证明tun0虚拟网卡运行正常。
系统:10.11.6,xx-net:3.8.0
10.13.1 安装后,xx-net仍然IPv6 Status为fail 求助 启动miredo终端显示如下: bash-3.2# sudo miredo bash-3.2# kextstat | grep tun 162 0 0xffffff7f80f93000 0x7000 0x7000 net.sf.tuntaposx.tun (1.0) 95DD963D-E23D-3B0F-8DE8-A4D2F6BFA5CC <7 5 4 1> 166 0 0xffffff7f80c36000 0x7000 0x7000 net.sf.tuntaposx.tap (1.0) 23FDB715-3D0D-3A26-ACBA-E3794C231CB7 <7 5 4 1> bash-3.2# ps aux | grep miredo root 250 0.0 0.0 655136 432 ?? S< 6:14下午 0:00.00 /usr/sbin/miredo --foreground -c /etc/miredo.conf nobody 249 0.0 0.0 663176 1176 ?? S< 6:14下午 0:00.01 /usr/sbin/miredo --foreground -c /etc/miredo.conf root 73 0.0 0.0 630816 2632 ?? S<s 6:14下午 0:00.08 /usr/sbin/miredo --foreground -c /etc/miredo.conf root 624 0.0 0.0 4276984 920 s000 S+ 6:16下午 0:00.00 grep miredo root 602 0.0 0.0 4288672 4556 ?? S 6:16下午 0:00.01 /opt/local/libexec/miredo/miredo-privproc F miredo 601 0.0 0.0 4327488 1008 ?? S 6:16下午 0:00.48 miredo root 600 0.0 0.0 4315128 1860 ?? Ss 6:16下午 0:00.01 miredo bash-3.2#
补充xx-net版本3.8.1。用老版本结果相同。宽带为移动宽带。
@wea76339 test-ipv6.com测试一下,另外在miredo.conf中换一下teredo服务器并重启miredo多试一下
@qingsheng0214 test-ipv6.com测试结果:没有检测到您的 IPv6 地址。该怎么办?这和移动宽带有关系吗?
@wea76339 可能有关系可能没有关系,不过我知道移动宽带是能够使用的,建议换换teredo服务器多尝试一下,应该能够稳定使用的
@qingsheng0214 找了一些服务器,还是不行。不知该怎么办了
@qingsheng0214 终于可以了,用@felixsiu的顺序,就可以,真奇怪。谢谢你们!!!!!!!
@qingsheng0214 只好一下子,接下来马上又不行。想重装,请问如何在终端卸载miredo呢?安装时显示:Warning: xcodebuild exists but failed to execute Warning: Xcode does not appear to be installed; most ports will likely fail to build. ---> Computing dependencies for miredo ---> Cleaning miredo ---> Scanning binaries for linking errors ---> No broken files found.
@wea76339 应该不需要重装,还是换个好用一点的teredo服务器应该就没有问题
@qingsheng0214 默认服务器和芬兰的服务器能ping通,但还是不行。其它的服务器都ping不通。
运行sudo miredo 返回 Error: cannot open device file /dev/tun0 (Resource busy) IPv6 tunneling will not work. miredo面板一直显示黄灯,有人遇到过吗?
还是不成功,这是什么意思? bash-3.2# sudo miredo -f Nov 23 08:56:56 miredo[7587] <Info>: 启动中... Nov 23 08:56:56 miredo[7588] <Notice>: 新 Teredo 地址/MTU Nov 23 08:56:56 miredo[7588] <Notice>: Teredo 虚假隧道已启动 Nov 23 08:56:56 miredo[7588] <Info>: (地址:2001::53aa:64c:c7d:efc9:8fcc:c468,MTU:1280) route: writing to routing socket: not in table delete net default: not in table add net default: gateway tun1 Nov 23 08:56:56 miredo[7588] <Debug>: Internal IPv4 address: 192.168.0.103 Nov 23 08:56:56 miredo[7588] <Debug>: packet passed to maintenance procedure Nov 23 08:57:26 miredo[7588] <Debug>: packet passed to maintenance procedure
Finally,it worked!👍
@hibluesea 你是通过不同方式安装了两次miredo吗?通过MacPorts安装的应该不会在面板中显示的,建议卸载其中之一
@wea76339 ping不ping得通关系不大,主要需要看test-ipv6.com是否能够通过测试
@wea76339 没有遇到过这种情况,我也不清楚,抱歉
@qingsheng0214 哦。还是谢谢你。现在还不清楚是不是我这边的移动网络的问题,改天用电信的试试。
终于成功了,感谢楼主。