1. 影梭

yum install git build-essential autoconf libtool openssl-devel gcc -y
git clone https://github.com/madeye/shadowsocks-libev.git 
cd shadowsocks-libev 
./configure 
make && make install

启动:

nohup /usr/local/bin/ss-server -s IP地址 -p 端口 -k 密码 -m 加密方式 &

示例

nohup /usr/local/bin/ss-server -s 11.22.33.44 -p 12345 -k 12345678 -m aes-256-cfb &

更多参考:http://www.v5fm.com/centos-shadowsocks.html

2. VPN(PPTP)

wget http://down.topmyhosting.com/vpn/openvps_vpn_centos-5-6.sh
chmod a+x openvps_vpn_centos-5-6.sh
bash openvps_vpn_centos-5-6.sh

添加新用户,重新执行命令,选择4即可

3. VPN(cisco anyconnect)

优点不多介绍。

参考:https://github.com/wppurking/ocserv-docker

问题:在vps上安装完毕之后进行连接,直接出现内核错误。因为docker要求的内核版本较高,所以需要先升级内核

参考:http://ljf.me/archives/use-yum-to-quickly-upgrade-centos-6-5-kernel-3-10-28

升级完毕之后重新启动容器即可

一些问题

连接不了:配置防火墙
iptables -F
iptables -A INPUT -p tcp --dport 端口 -j ACCEPT

参考:

http://bitinn.net/11084/

http://wppurking.github.io/2014/10/11/use-ocserv-docker-to-enjoy-freedom-internet.html

centos7 vpn

http://www.dockerpool.com/article/1415195109

Comments
Write a Comment