1. 程式人生 > >使用Vultr搭建VSS(VPN)(教你怎麼用每月2.5美金享受到VPN的待遇)

使用Vultr搭建VSS(VPN)(教你怎麼用每月2.5美金享受到VPN的待遇)

起源

現在很多VPN也被封的差不多了。本人有在google上查詢資料的習慣,故在vultr上搭建了一個VPN。下面列出來搭建步驟。

關於價格

Vultr是國外雲主機服務的有名服務商之一,服務費非常便宜,僅2.5美金一個月。

搭建步驟

註冊

使用信用卡充值

在這裡插入圖片描述

購買伺服器

一直下一步就可以了 在這裡插入圖片描述 下面是部署好了的圖片,可以看到你的IP和你的伺服器的密碼 在這裡插入圖片描述

部署VPS

接下來就可以用ssh命令去連線了。關於SSH的使用介紹請看下面 https://buy.shangyufeidi.com/vultr/ssh/ 連線上了之後請按照下面的命令來執行 1.依次在這Centos7主機中,輸入如下命令的安裝python,pip和ss服務端

yum install m2crypto python-setuptools  
yum install python-pip  
pip install shadowsocks

2.輸入vi /etc/shadowsocks.json利用vi編輯ss的配置。並儲存

{  
    "server":"換成Vultr給你的ip address這裡是45.77.*.*",  
    "server_port":443,  
    "local_address": "127.0.0.1",  
    "local_port":1080,  
    "password":"設定ss客戶端的連線密碼",  
    "timeout":300,  
    "method":"aes-256-cfb",  
    "fast_open": false  
}

3.安裝防火牆並開啟

yum install firewalld
systemctl start firewalld

4.編輯防火牆配置,輸入vi /usr/lib/firewalld/services/ss.xml,然後輸入以下內容並儲存

<?xml version="1.0" encoding="utf-8"?>  
<service>  
  <short>SS</short>  
  <description>Shadowsocks port  
  </description>  
  <port protocol="tcp" port="443"/>  
</service>

5.之後輸入如下命令載入配置和開啟ss伺服器。

firewall-cmd --permanent --add-service=ss  
firewall-cmd --reload  
nohup ssserver -c /etc/shadowsocks.json &

到此,整個流程就安裝完成了。

使用

接下來是使用的環節。使用要先去下載一個shadowsocks。下面給出下載連線

windows:https://github.com/shadowsocks/shadowsocks-windows/releases 
mac:https://github.com/shadowsocks/ShadowsocksX-NG/releases 
linux:https://github.com/shadowsocks/shadowsocks-qt5/wiki/Installation

開啟shadowsocks,輸入資訊。 在這裡插入圖片描述 點選確定之後,再右擊右下角的托盤,啟動系統代理再完成。 在這裡插入圖片描述

接下來訪問www.google.com試試效果吧。 在這裡插入圖片描述