搬瓦工搭建shadowsocksR和finalspeed加速SS


趁搬瓦工今天补货了 于是赶紧撸了一款512M内存,每月1T流量年付11.9刀的VPS用来翻墙
Basic VPS - Self-managed - 10G PROMO V3 - PHOENIX AZ
Location: Phoenix AZ (no other locations available on this plan) Self-managed service SSD: 10 GB RAM: 512 MB CPU: 1x Intel Xeon BW: 1000 GB/mo Link speed: 1 Gigabit VPS technology: OpenVZ/KiwiVM Linux OS: 32-bit and 64-bit Centos, Debian, Ubuntu, Fedora Instant OS reload 1 Dedicated IPv4 address Full root access PPP and VPN support (tun/tap) Instant RDNS update from control panel No contract, anytime cancellation Strictly self-managed, no support 99% uptime guarantee 30-day money back guarantee


购买链接(推荐)
bandwagonhost主域名被墙了,更换了新域名bwh1.net
现在补货的是一款支持支付宝。
优惠码:IAMSMART50BAR1可优惠4.66%

还有一款1G内存,每月2T流量,美国西海岸,年付18.99刀支持支付宝。
购买链接

默认安装的操作系统是Centos 6 x86  
开放shadowsocks服务端口例好8388和开放finalspeed端口150操作
#/sbin/iptables -I INPUT -p tcp --dport 8388 -j ACCEPT
#/sbin/iptables -I INPUT -p udp --dport 8388 -j ACCEPT
#/sbin/iptables -I INPUT -p tcp --dport 150 -j ACCEPT
#/sbin/iptables -I INPUT -p udp --dport 150 -j ACCEPT
然后保存:
#/etc/rc.d/init.d/iptables save
#重启防火墙以便改动生效:(或者直接重启系统)
/etc/init.d/iptables restart
查看打开的端口:
# /etc/init.d/iptables status
我并没有使用后台可一键创建shadowsocks  而是手动搭建了shadowsocksR来翻墙 ShadowsocksR 服务端安装教程
centos:
yum update
yum install git

ubuntu/debian:
apt-get update
apt-get install git

获取源代码

git clone -b manyuser https://github.com/breakwa11/shadowsocks.git
执行完毕后此目录会新建一个shadowsocks目录,其中根目录的是多用户版(即数据库版,个人用户请忽略这个),子目录中的是单用户版(即shadowsocks/shadowsocks)。
根目录即 ./shadowsocks
子目录即 ./shadowsocks/shadowsocks

服务端配置

进入子目录:
cd shadowsocks/shadowsocks

快速运行

python server.py -p 443 -k password -m aes-256-cfb -o http_simple

#说明:-p 端口 -k 密码  -m 加密方式 -P 协议插件 -o 混淆插件
如果要后台运行:
python server.py -p 443 -k password -m aes-256-cfb -o http_simple -d start
如果要停止/重启:
python server.py -d stop/restart
查看日志:
tail -f /var/log/shadowsocks.log
用 -h 查看所有参数

使用配置文件运行

建立配置文件,如果你的ss目录是/root/shadowsocks
通过执行cp config.json user-config.json快速创建一个
修改user-config.json中的server_portpassword等字段,具体可参见:
https://github.com/breakwa11/shadowsocks-rss/wiki/config.json
运行子目录内的server.py:
python server.py
如果要在后台运行:
python server.py -d start
如果要停止/重启:
python server.py -d stop/restart
查看日志:
tail -f /var/log/shadowsocks.log

更新源代码

如果代码有更新可用本命令更新代码
进入shadowsocks目录
cd shadowsocks
执行
git pull
成功后重启ss服务

自启动


使用finalspeed加速shadowsocksR效果  看油管1080P流畅不卡

















修改SSH配置为22觉端口  
#vi /etc/ssh/sshd_config
Port 22   #SSH端口,建议修改为一些非常用的高位端口
PasswordAuthentication yes  #yes修改为no,如果前面有#号请去掉,关闭密码登录方式
然后重启SSH服务即可生效
Debian/Ubuntu执行
/etc/init.d/ssh restart
CentOS执行
/etc/init.d/sshd restart

搬瓦工官网被屏蔽的解决办法
Windows中hosts文件一般在C:\Windows\System32\drivers\etc目录下,用记事本在hosts文件下加一行

104.20.6.63 bandwagonhost.com

Bandwagon Host - Shopping Cart










发表评论

0 评论