CentOS 7 安裝 【shadow+socks】

來源:互聯網
上載者:User

標籤:

最近,寡婦王的封鎖越來越厲害,前陣子連Gmail都給全面封鎖。實在令人氣憤。

這裡記載一篇搭建梯子的文章,以此表明決心。

首先購買一台國外的vps主機,土豪機有Linode、DigitalOcean,屌絲有bandwagonhost。再不濟的話

去haphost弄個免費的vps,不過人品不好弄不到。我當然是屬於人品好的那種了,哈哈哈哈,進入正題

囉嗦下,最好買到後重裝下系統,推薦centos6, 然後

ssh連上vps後,先下載必備的幾種開發工具,因為要在vps上編譯安裝【shadow+socks】

摘抄:(注意下:yum install 需要su許可權)

centos7

If you want to be able to compile packages in red hat/centos, you can issue the following command:
yum -y install make gcc gcc-c++ kernel-devel git autoconf libtool libssl-dev openssl openssl-devel

或者:
yum groupinstall "Development Tools"


centos6:

yum -y install build-essential autoconf libtool libssl-dev gcc openssl openssl-devel make


上面是裝一些必備的開發工具。接下來

git clone https://github.com/shadowsocks/shadowsocks-libev.git

cd shadowsocks-libev
./configure
make && make install


配置【shadow+socks】
vim /etc/shadowsocks/config.json
{
"server":"vps的ip",
"server_port":8080,
"local_port":1080,
"password":"password", #認證密碼,填你自己id
"timeout":60,
"method":"table" #加密方式,預設table,推薦aes-256-cfb
}

或者用下面的方式運行

接下來運行【shadow+socks】
nohup /usr/local/bin/ss-server -s IP地址 -p 連接埠 -k 密碼 -m 加密方式 &
比如:nohup /usr/local/bin/ss-server -s 156.132.67.213 -p 8981 -k admin888 -m aes-256-cfb &


重啟【shadow+socks】服務。
/etc/init.d/shadowsocks stop
/etc/init.d/shadowsocks start

其實centos7好像全部是用systemctl restartss-server 這種命令了。

使用shadowsocks
windows環境下需要下載用戶端:http://sourceforge.net/projects/shadowsocksgui/files/dist/ 填入之前配置的參數,儲存運行即可。 建立瀏覽器代理為如下:
協議: socks5
地址: 127.0.0.1
連接埠: 剛才填的 local_port
推薦配合 AutoProxy 或者 Proxy SwitchySharp 一起使用。


CentOS 7 安裝 【shadow+socks】

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.