Total Pageviews

Tuesday, 6 December 2016

SoftEtherVPN服务器端的Docker版


Docker Pulls Docker Automated buil

运行

docker pull benyoo/softethervpn

(使用随机帐号密码的方法
docker run -d --name softethervpn --privileged --net host benyoo/softethervpn
docker logs softethervpn)
使用指定的帐号/密码的方法
docker run -d --name softethervpn --privileged --net host -e PSK=your_psk -e USERNAME=abc -e PASSWORD=your_pw 
benyoo/softethervpn
(上面蓝色的2行字是一整条命令) 
(使用docker-compose启动
curl -LksO github.com/xiaoyawl/docker-softethervpn/raw/master/docker-compose.yml
docker-compose up -d
如果docker-compose没有被安装,可以用下面的方法进行安装
curl -Lk onekey.sh/docker-compose|bash )

可用变量说明

变量名 默认值 描述
PSK notasecret 预共享密钥
USERNAME 随机生成 登录VPN的用户名
PASSWORD 随机生成 登陆VPN的密码
from https://github.com/xiaoyawl/docker-softethervpn


还需在本地机器上安装SoftEtherVPN的客户端程序。mac上的设置见这里:
http://www.softether-download.com/en.aspx,里面说:

  • VPN Client for Mac OS X is not recommended to use.
    VPN Client software for Mac OS X are experimental versions. They are very difficult to use because of lack of GUI. We strongly recommend to use the built-in L2TP/IPsec VPN client on Mac OS X in order to connect to VPN Server.
    You need not to download VPN Client if you are planning to use L2TP/IPsec VPN instead.
    Please read this tutorial how to connect to the VPN Server with L2TP/IPsec from Mac OS X client.
  •  
  •  所以到这里http://www.softether.org/4-docs/2-howto/9.L2TPIPsec_Setup_Guide_for_SoftEther_VPN_Server/5.Mac_OS_X_L2TP_Client_Setup 来查看如何设置客户端。
  •  
  • 客户端连上了vpn,但没有用,访问www.whatismyipaddress.com,显示的是本地ip,根本翻不了墙。
相关帖子: http://briteming.blogspot.com/2015/04/softether-vpn-server.html