【1.5】Install Miredo on macOS (xx-net)
- 使用Chrome浏览器xx-net: https://github.com/XX-net/XX-Net/wiki/%E4%BD%BF%E7%94%A8Chrome%E6%B5%8F%E8%A7%88%E5%99%A8
在macOS上(macOS Sierra Version 10.12.6)安装了Miredo,方便xx-net的使用
xx-net 下载版本:https://github.com/XX-net/XX-Net/releases
wget -c https://codeload.github.com/XX-net/XX-Net/zip/3.11.6
1.Download & Install Tunnelblick (for signed tun purpose)
#https://tunnelblick.net/downloads.html
wget -c https://tunnelblick.net/release/Tunnelblick_3.7.5a_build_5011.dmg
2.Check whether has installed MacPorts & Execute the command below in Terminal
port
3.If not installed yet, Download & Install MacPorts
# https://www.macports.org/install.php
wget -c https://distfiles.macports.org/MacPorts/MacPorts-2.4.2.tar.bz2
tar xf MacPorts-2.4.2.tar.bz2
cd MacPorts-2.4.2/
./configure
make
sudo make install
sudo vim /etc/profile
添加:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
source /etc/profile
4.Execute command & Install Miredo
port search miredo
port selfupdate
sudo port install miredo
5.Execute commands as below in Terminal & Check whether has loaded tun-signed kext
kextstat | grep tun
6.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
7.Start up Miredo
cd /opt/local/sbin
sudo /opt/local/sbin/miredo
8.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
参考资料:
个人公众号,比较懒,很少更新,可以在上面提问题,如果回复不及时,可发邮件给我: tiehan@sina.cn