SoftEther VPN 部署

2018/12/05 posted in  Linux

Server安装部署

这里找到合适的软件包

或者直接用下面这个链接

wget https://github.com/SoftEtherVPN/SoftEtherVPN_Stable/releases/download/v4.28-9669-beta/softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz
  1. 解压完拷贝到/usr/local目录,然后make编译

    tar -zvxf softether-vpnserver-v4.28-9669-beta-2018.09.11-linux-x64-64bit.tar.gz
    mv vpnserver /usr/local/
    cd /usr/local/vpnserver
    make
  2. 启动vpnserver

    /usr/local/vpnserver start
    #/usr/local/vpnserver stop
    

    注意:SoftEther默认监听443端口,记得防火墙打开443端口

  3. 安装server manager

    点击这里查看manager设置

  4. 安装vpnclient

    拉取vpnclient镜像

    sudo docker pull mitsutaka/softether-vpnclient
    

    启动vpnclient

    docker run -d --name=softether-vpnclient \
    --net=host --privileged \
    -e VPN_SERVER=<Softether VPN server> \
    -e VPN_PORT=<Softether VPN port> \
    -e ACCOUNT_USER=<Registered username> \
    -e ACCOUNT_PASS=<Registered password> \
    -e VIRTUAL_HUB=<Virtual Hub name> \
    -e TAP_IPADDR=<IP address/netmask> \
    mitsutaka/softether-vpnclient

    例子:

    docker run -d --name=softether-vpnclient     --net=host --privileged     -e VPN_SERVER=120.132.55.152     -e VPN_PORT=443     -e ACCOUNT_USER=test     -e ACCOUNT_PASS=1234TV.com     -e VIRTUAL_HUB=1234TV   -e TAP_IPADDR=192.168.111.79/255.255.255.0 mitsutaka/softether-vpnclient