Total Pageviews

Wednesday 24 February 2016

在mac上,终于搞定用openvpn的客户端程序tunnelblick翻墙(openvpn的静态密匙模式在2016年3月也被gfw破解了)

首先按此文http://briteming.blogspot.com/2012/12/openvpn.html,把OpenVPN的静态密钥模式搞定。然后参考此文http://briteming.blogspot.com/2016/02/macopenvpntunnelblick.html,把从linux vps上下载的static.key文件移动到/Users/your_name/Library/Application Support/Tunnelblick/Configurations/目录。然后Configurations目录中,新建客户端的配置文件client.ovpn,把此文http://briteming.blogspot.com/2012/12/openvpn.html中所说的client.ovpn的内容复制到新建的客户端配置文件client.ovpn中,保存文件。这样/Users/your_name/Library/Application Support/Tunnelblick/Configurations/目录中就有了openvpn的配置文件:client.ovpn和static.key.然后运行tunnelblick,不过tunnelblick并不认这样的配置文件,它会弹出提示窗口,要求把配置文件转换为它自己的格式-tblk格式,点击ok.
然后在/Users/your_name/(即~/)中,运行命令find . -name config.ovpn ,会得到输出结果:
/Users/your_name/Library/Application Support/Tunnelblick/Configurations/client.tblk/Contents/Resources/config.ovpn
打开这个config.ovpn,会发现其内容其实是client.ovpn的一部分内容,于是可清除其所有内容,然后把client.ovpn的所有内容复制到config.ovpn中,保存文件。
打开/Users/your_name/Library/Application Support/Tunnelblick/Configurations/client.tblk/Contents/Resources/,会发现里面还有一个static.key文件,不要动它。

右键点击mac桌面的右上角的tunnelblick,会发现弹出的菜单中出现了一个“连接client"的选项。点击“连接client",待成功连上openvpn后,即可翻墙。

我去年9月买了mac,当时就装了tunnelblick, 但一直拖到现在才搞定用tunnelblick成功翻墙。整整拖了6个月。

现在我用静态密匙模式的openvpn,翻墙的速度一流.
------------
如下信息来自于Tunnelblick官方网站:

Some users are experiencing a problem with Tunnelblick on OS X 10.8 (“Mountain Lion”): they can connect to their VPN server, but they can’t use the Internet. Usually this is caused by a DNS problem. This document describes some troubleshooting steps you can take and provides a workaround you can use while we try to fix the problem.  from https://github.com/Tunnelblick/Tunnelblick/issues


我遇到了与其相同的问题。这个问题已经被解决了,同时Tunnelblick给出了一个升级版本Tunnelblick 3.3beta16 (build 3070)。升级到这个版本就可以解决如上的问题。虽然这只是个beta版本,不过就我使用情况看还是很稳定的,大家放心升级吧!感谢Tunnelblick在第一时间解决问题!
------------
The official Tunnelbick website is at https://tunnelblick.net
-------------
Tunnelblick is a free, open source graphic user interface for OpenVPN on OS X. It provides easy control of OpenVPN client and/or server connections.
The official Tunnelblick website is at https://tunnelblick.net.
Please report problems using Tunnelblick on the Tunnelblick Discussion Group.
The official Tunnelblick GitHub repository is at https://github.com/Tunnelblick/Tunnelblick. It contains the source code, issues, and binary releases of Tunnelblick.
from https://github.com/Tunnelblick/Tunnelblick