对ssr端口添加站点进行伪装
安装ssr
wget --no-check-certificate https://raw.githubusercontent.com/teddysun/shadowsocks_install/master/shadowsocksR.sh
chmod +x shadowsocksR.sh
./shadowsocksR.sh 2>&1 | tee shadowsocksR.log
修改ssr配置
vim /etc/shadowsocks.conf重启ssr
重定向配置
“”改为["*:80#127.0.0.1:5000", "*:443#127.0.0.1:5000"]
安装nginx搭建站点
apt-get update
apt-get install nginx
//一定要先开始再改配置
service nginx start
nginx 的默认配置文件位于
/etc/nginx/nginx.conf
在配置文件中有一行:
server {
server_name localhost;
listen 5000;
root /usr/share/nginx/html;
index index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
}
创建站点html文件
cd /usr/local/
mkdir www
cd www
vim index.html
粘贴内容<!DOCTYPE html>
<html>
<head>
<title>Japan Beautiful Gril</title>
<link href="google.ico" rel="shortcut icon" />
</head>
<body>
<style>
.flip-x {
filter: FlipH;
-moz-transform: matrix(-1, 0, 0, 1, 0, 0);
-webkit-transform: matrix(-1, 0, 0, 1, 0, 0);
}
</style>
<table align="center">
<tr>
<td>
<img src="http://wx2.sinaimg.cn/mw1024/006dAuLSly1fn897vd69vg30i00i01l3.gif" alt="beauty" height="100%" >
</td>
<td>
<img src="http://wx2.sinaimg.cn/mw1024/006dAuLSly1fn897vd69vg30i00i01l3.gif" alt="beauty" height="100%" class="flip-x">
</td>
</tr>
</table>
</body>
</html>
重新加载站点
service nginx reload设置开机自启动,否则重启系统,nginx无法开启
chkconfig nginx on开启bbr(锐速也可以,方法自己查找)
wget --no-check-certificate https://github.com/teddysun/across/raw/master/bbr.sh && chmod +x bbr.sh && ./bbr.sh
评论
发表评论