lantern icon indicating copy to clipboard operation
lantern copied to clipboard

Lantern for docker. Docker运行蓝灯。

Docker 运行 Lantern 7.5.0,科学上网

安装方法

docker pull wilon/lantern

或者源码构建,更适合国内网络:(安装版本固定为 7.4.9,lantern 会自更新,或者下载最新版到 binaries/lantern-installer-64-bit.deb,再 build。)

git clone https://github.com/wilon/lantern.git
cd ./lantern
docker build -t wilon/lantern -f Dockerfile-CN .

启动:

docker run -itd --restart=always --name lantern -p 3128:3128 -p 8080:8080 wilon/lantern

或者使用 docker-compose

git clone https://github.com/wilon/lantern.git
cd ./lantern
docker-compose up -d

测试

Win7 系统需将下列 IP 换成 docker IP。 (默认地址: 192.168.99.100)

浏览器打开:http://0.0.0.0:8080/wilonlantern

· 测试是否能上Google

curl -kvx 127.0.0.1:3128 https://www.google.com/humans.txt,能看到 Google is built by a... 就是成功了!

· 测试响应时间

curl -kx 127.0.0.1:3128 -w %{time_namelookup}::%{time_connect}::%{time_starttransfer} https://www.google.com/humans.txt

使用方法

· MacOS 配置

设置 -> 网络 -> 高级 -> 代理: HTTPHTTPS填上127.0.0.1:3128

· WIN 配置

设置 -> 网络和Internet -> 代理 -> 手动设置代理: 填上127.0.0.1:3128


有问题? 发issues