折腾啊
信息获取

使用过的vps商

vps更换系统
萌咖大佬的一键DD(debian 9):bash <(wget --no-check-certificate -qO- 'https://moeclub.org/attachment/LinuxShell/InstallNET.sh') -d 9 -v 64 -a
更多系统参考:https://blog.curlc.com/archives/648.html
账号:root
密码:MoeClub.org

个人常用debain命令

passwd #更换密码
df -h #查看磁盘使用情况
free -h #查看内存使用情况
crontab -e #定时任务

V2搭建与优化
BBR Plus(旧):wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh
BBR Plus(新,卸载内核):wget -N "https://github.000060000.xyz/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

安装curl(centos ):yum update -y && yum install curl -y
安装curl(ubuntu/debian):apt-get update -y && apt-get install curl -y

V2一键脚本:bash <(curl -s -L https://git.io/v2ray.sh)
V2 配置文件路径:/etc/v2ray/config.json
Caddy 配置文件路径:/etc/caddy/Caddyfile
重启Caddy:service caddy restart
脚本配置文件路径: /etc/v2ray/233blog_v2ray_backup.conf

修改默认DNS
V2 配置文件路径:/etc/v2ray/config.json

    "dns": {
        "servers": [
            "8.8.8.8",
            "1.1.1.1",
            "https+local://cloudflare-dns.com/dns-query",
            "1.0.0.1",
            "8.8.4.4",
            "localhost"
        ]
    },

使用v2同时解锁网易云
安装UnblockNeteaseMusic
VPS安装UnblockNeteaseMusic一键脚本:wget -N --no-check-certificate https://raw.githubusercontent.com/XIU2/SHELL/master/unblock163.sh && chmod +x unblock163.sh && bash unblock163.sh

修改v2配置
V2 配置文件路径:/etc/v2ray/config.json
修改outbounds配置(添加):在"domainStrategy": "UseIP"下

        {
            "protocol": "freedom",
            "settings": {
                "redirect":"127.0.0.1:8080", #8080位代理端口
                                "userLevel": 0
            },
            "tag": "netease"
        },

routing那里rules里面加规则:

                                 {
                                     "domain":[
                                     "domain:music.163.com",
                                     "domain:interface.music.163.com",
                                     "domain:interface3.music.163.com",
                                     "domain:apm.music.163.com",
                                     "domain:apm3.music.163.com",
                                     "domain:api.iplay.163.com"
                                      ],
                "ip": [
                    "39.105.63.80",
                    "45.254.48.1",
                    "47.100.127.239",
                    "59.111.160.195",
                    "59.111.160.197",
                    "59.111.181.35",
                    "59.111.181.38",
                    "59.111.181.60",
                    "101.71.154.241",
                    "103.126.92.132",
                    "103.126.92.133",
                    "112.13.119.17",
                    "112.13.122.1",
                    "115.236.118.33",
                    "115.236.121.1",
                    "118.24.63.156",
                    "193.112.159.225",
                    "223.252.199.66",
                    "223.252.199.67"
                                      ],
                                        "type":"field",
                                        "outboundTag":"netease"
                               },

网易云音乐客户端选走ie代理即可
备注(以上方式目前仅支持PC端,Android测试失败,待验证)

Android端v2+解锁网易云
思路,使用surfboard配置,网易云音乐走ss代理(国内速度快,直接在国内机搭建)
宝塔安装UnblockNeteaseMusic(使用docker)
docker-镜像管理-获取镜像:nondanee/unblockneteasemusic
一键创建命令:docker run --name yunmusic -d -p 4567:8080 nondanee/unblockneteasemusic
使用glider将http代理转换为ss代理:(国内主机可能连不上github)

mkdir /opt/glider && cd /opt/glider
wget -N --no-check-certificate https://github.com/nadoo/glider/releases/download/v0.10.0/glider_0.10.0_linux_amd64.tar.gz
tar zxvf glider-v0.7.0-linux-amd64.tar.gz && cd glider-v0.7.0-linux-amd64

新建配置文件glider.conf并编辑

#开启调试模式,输出log
verbose=True
#ss的监听端口
listen=ss://CHACHA20-IETF:password@:7777 #ss://加密方式:密码@:代理端口
#网易云音乐解锁代理的端口
forward=http://127.0.0.1:4567

运行gliderchmod 777 glider && ./glider -config glider.conf

附:发现小带宽主机速度貌似太慢了点
推荐免费的代理分享:https://desperadoj.com/16.html

编辑surfboard配置,参照规则合并即可

该部分仅登录用户可见

参考链接

  1. BBR Plus(旧):https://www.moerats.com/archives/387/
  2. BBR Plus(新):https://github.com/ylx2016/Linux-NetSpeed
  3. V2一键脚本:点击访问
  4. unblock163:https://xiu2.github.io/SHELL/#/unblock163
  5. v2转发网易云:https://github.com/nondanee/UnblockNeteaseMusic/issues/148
  6. 宝塔docker安装unblockneteasemusic:https://www.daniao.org/4962.html
  7. 宝塔PM2安装unblockneteasemusic:https://www.sevesum.com/94.html
  8. 通过ss解锁网易云:https://github.com/nadoo/glider/releases/
  9. glider下载:https://github.com/nadoo/glider/releases/
  10. 网易云音乐解锁代理分享:https://desperadoj.com/16.html
  11. 更换VPS系统:https://blog.curlc.com/archives/648.html
Last modification:June 25th, 2020 at 12:24 pm
If you think my article is useful to you, please feel free to appreciate