Linux serverNETWORK ADMINISTRATIONS

两分钟从购买vps到搭建专属vpn,最便宜vps只要8.8美元/每年,无需安装任何软件直接连接vpn实现数据加密传输

vps购买链接:https://bytevirt.com/product/625
港美金融电报群:https://t.me/xiaowupro
公众号:小屋Pro

第一步购买vps: 视频操作系统里centos7
第二步登录vps:ssh root@xx.xx.xx.xx
第三步安装docker : curl -fsSL https://get.docker.com | bash -s docker –mirror Aliyun
第四步启动docker: systemctl start docker
第五步创建文件夹:mkdir -p /data/jump/vpn
第六步创建.env配置文件并写入:vi /data/jump/vpn/.env

# Define your own values for these variables
# – DO NOT put “” or ” around values, or add space around =
# – DO NOT use these special characters within values: ” ‘
VPN_IPSEC_PSK=6JhixxWU0u9REqATiFrEAG0
# 配置用于登陆VPN的账号和密码
VPN_USER=admin
VPN_PASSWORD=9s0RrJX4qEoQG7L32s9I
# 如下应该填写本机的外网IP
VPN_PUBLIC_IP=xx.xx.xx.xx
# (Optional) Define additional VPN users
# – Uncomment and replace with your own values
# – Usernames and passwords must be separated by spaces
# 配置额外的用户名和密码
VPN_ADDL_USERS=user1 user2
VPN_ADDL_PASSWORDS=pass1 pass2
# (Optional) Use alternative DNS servers
# – By default, clients are set to use Google Public DNS
# – Example below shows using Cloudflare’s DNS service
VPN_DNS_SRV1=223.5.5.5
VPN_DNS_SRV2=223.6.6.6

第七步运行vpn容器:docker run –name ipsec-vpn-server –env-file /data/jump/vpn/.env –restart=always -p 500:500/udp -p 4500:4500/udp -v /lib/modules:/lib/modules:ro -d –privileged registry.cn-hangzhou.aliyuncs.com/eryajf/ipsec-vpn-server

第八步任何运设备连接vpn

source

centos 7

One thought on “两分钟从购买vps到搭建专属vpn,最便宜vps只要8.8美元/每年,无需安装任何软件直接连接vpn实现数据加密传输

Comments are closed.