VPN

【转】SoftEther VPN 安装

Posted by Adobe on August 14, 2016 | - view

原文地址:
Linux 系统下使用 SoftEther VPN Server 搭建 VPN 服务器
乐美客【PASS】基于 softether vpn 的 vpn 私人服务器,带 windows 下管理界面

服务器端配置

  1. 下载 SoftEther VPN Server
    wget http://www.softether-download.com/files/softether/v4.10-9473-beta-2014.07.12-tree/Linux/SoftEther_VPN_Server/64bit_-_Intel_x64_or_AMD64/softether-vpnserver-v4.10-9473-beta-2014.07.12-linux-x64-64bit.tar.gz
  2. 解压文件
    tar -zxvf softether-vpnserver-v4.10-9473-beta-2014.07.12-linux-x64-64bit.tar.gz
  3. 安装程序
    cd vpnserver
    ./.install.sh
    连续输入3个“1”
    提示“The command completed successfully.”,即为成功
  4. 启动程序
    ./vpnserver start
    如果需要停止:./vpnserver stop

使用本地管理工具配置服务器端

  1. 下载 “SoftEther VPN Server 管理器”
    SoftEther 下载中心
  2. 运行 “vpnsmgr”,选择 “新设置”,在新面板中填写 “设置名” 和 “主机名”,保存配置信息;
  3. 连接到你刚才配置的服务器,首次登陆会提示你设置一个管理员密码:
  4. 然后在弹出的”SoftEther VPN Server/Bridge 简单安装 “面板中,选择”VPN 的其他高级配置 “(因为我们需要在服务器端做 NAT 转换),关闭;
  5. 此时会提示” 此 VPN Server 已具有支持兼容 IPSec/L2TP/EtherIP/L2TPv3 协议的 VPN Client 或 VPN 路由器的新功能。…… 您要设置 IPSec 吗?“,选择” 是 “。在新面板中,一般只启用 L2TP 服务器功能(L2TP over IPsec)就足够了,更改”IPsec 预共享密钥 “,确定。
  6. 添加认证用户:
  7. 开启 NAT 转换和 DHCP 服务

连接到服务器

根据刚才的配置,有两种连接方式(或者说我只测试了两种):第一种是下载 SoftEther VPN Client,使用 SSL-VPN 协议连接;第二种是使用 Windows/Linux/Android 等自带的 VPN 连接(使用 L2TP 协议)。使用 L2TP 协议时应当注意:1)”VPN 类型 “需要选择”L2TP/IPsec“;2)需要到” 高级设置 “中输入先前设置的预共享密钥。细节就不再讲了,其他操作系统类似。