New BWG VPS setup & installation

2018/04/25 發現 BandwagonHost 最便宜的入門級 10G VPS 又開始販賣了,一時手癢就再買了一組來玩玩,畢竟這種打折後只要 US$18.79 一年的價錢實在很便宜啊。

購買完,進入設定畫面後,發現原先一鍵安裝的 Shadowsocks 功能表不在了,只剩下 OpenVPN。

看來這個 Shadowsocks 的功能在某種考量下移除了,還好之前已經多次練習 Shadowsocks 的安裝,加上它所支援的 CentOS 6.0 內核是已經支援 bbr 的內核,所以省去了重新更換內核的手續,只要再自行加上 SS 功能即可。剛好拿這個來練練手。

[root@host ~]# uname -r

4.10.4-1.el6.elrepo.i686


檢查內核的確大於 4.09, 不必再重編。

[root@host ~]# lsmod | grep bbr
tcp_bbr                16384  26

tcp_bbr 已經啟動。

[root@host ~]# sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno

接著用 Shadowsocks 一鍵安裝腳本安裝 SS

使用root用戶登錄,執行以下命令

wget --no-check-certificate -O shadowsocks-all.sh https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocks-all.sh
chmod +x shadowsocks-all.sh
./shadowsocks-all.sh 2>&1 | tee shadowsocks-all.log

安裝完成後,脚本提示如下

Congratulations, your_shadowsocks_version install completed!
Your Server IP        :your_server_ip
Your Server Port      :your_server_port
Your Password         :your_password
Your Encryption Method:your_encryption_method

Your QR Code: (For Shadowsocks Windows, OSX, Android and iOS clients)
 ss://your_encryption_method:your_password@your_server_ip:your_server_port
Your QR Code has been saved as a PNG file path:
 your_path.png

Welcome to visit:https://teddysun.com/486.html
Enjoy it!

至此就把一鍵安裝版 Shadowsocks 補完。