Magic上网脚本大全

Linux 开启原版BBR

修改系统变量:
echo net.core.default_qdisc=fq >> /etc/sysctl.conf
echo net.ipv4.tcp_congestion_control=bbr >> /etc/sysctl.conf
sysctl -p #保存生效
sysctl net.ipv4.tcp_available_congestion_control #执行

如果结果是这样:
sysctl net.ipv4.tcp_available_congestion_control
net.ipv4.tcp_available_congestion_control = bbr cubic reno
BBR就开启了

lsmod | grep bbr #执行以检测 BBR 是否开启

V2ray 一键脚本

V2ray 官方脚本

更新debian:apt-get update && apt-get upgrade

安装curl:apt-get install -y curl

V2ray官方的安装脚本命令:bash <(curl -L https://raw.githubusercontent.com/v2fly/fhs-install-v2ray/master/install-release.sh)

配置文件下载:wget https://raw.githubusercontent.com/bannedbook/fanqiang/master/v2ss/server-cfg/v2/config.json  -O -> /usr/local/etc/v2ray/config.json

备份配置文件:wget https://docs.devgox.com/wendang/config.json  -O -> /usr/local/etc/v2ray/config.json

V2ray重启命令:service v2ray restart

控制 V2Ray 的运行的常用命令:service v2ray restart | force-reload |start|stop|status|reload

测试V2Ray配置文件:/usr/local/bin/v2ray -test -config /usr/local/etc/v2ray/config.json

V2ray-agent

Github地址:https://github.com/mack-a/v2ray-agent

支持快捷方式启动,安装完毕后,shell输入【vasma】即可打开脚本,脚本执行路径[/etc/v2ray-agent/install.sh]

Latest Version【推荐】

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/master/install.sh" && chmod 700 /root/install.sh && /root/install.sh

Stable-v2.4.16【无gRPC】

wget -P /root -N --no-check-certificate "https://raw.githubusercontent.com/mack-a/v2ray-agent/stable_v2.4.16/install.sh" && chmod 700 /root/install.sh && /root/install.sh

V2ray-233blog

bash <(curl -s -L https://git.io/v2ray.sh)

BBR加速一键脚本

BBR加速脚本1

wget -N --no-check-certificate "https://raw.githubusercontent.com/chiakge/Linux-NetSpeed/master/tcp.sh" && chmod +x tcp.sh && ./tcp.sh

BBR加速脚本2

wget --no-check-certificate https://raw.githubusercontent.com/cx9208/Linux-NetSpeed/master/tcp.sh && chmod +x tcp.sh && ./tcp.sh

X-ui Xray 面板搭建

安装 X-ui 面板

申请 SSL 证书

下面环境的安装方式,大家根据自己的系统选择命令安装就好了。

更新及安装组件

apt update -y          # Debian/Ubuntu 命令
apt install -y curl    #Debian/Ubuntu 命令
apt install -y socat    #Debian/Ubuntu 命令
yum update -y          #CentOS 命令
yum install -y curl    #CentOS 命令
yum install -y socat    #CentOS 命令

安装 Acme 脚本

curl https://get.acme.sh | sh

80 端口空闲的证书申请方式

自行更换代码中的域名、邮箱为你解析的域名及邮箱

~/.acme.sh/acme.sh --register-account -m admin@email.com
~/.acme.sh/acme.sh  --issue -d mydomain.com   --standalone

安装证书到指定文件夹

自行更换代码中的域名为你解析的域名

~/.acme.sh/acme.sh --installcert -d mydomain.com --key-file /root/private.key --fullchain-file /root/cert.crt

安装 & 升级 X-ui 面板

bash <(curl -Ls https://raw.githubusercontent.com/sprov065/x-ui/master/install.sh)

原文地址:https://www.v2rayssr.com/x-ui.html

Trojan所有脚本集合

Jrohy的一键Trojan面板脚本

#安装/更新
source <(curl -sL https://git.io/trojan-install)
#卸载
source <(curl -sL https://git.io/trojan-install) --remove

官方Trojan脚本

apt install sudo  #debian
yum install sudo  #contos
sudo bash -c "$(curl -fsSL https://raw.githubusercontent.com/trojan-gfw/trojan-quickstart/master/trojan-quickstart.sh)"

注意事项:
官方脚本需要自己设置服务器配置,包括密码、证书等,设置路径为: /usr/local/etc/trojan.config.json

Trojan全智能一键安装脚本

yum -y install wget    ##ContOS Yum 安装 wget
apt-get install wget   ##Debian Ubuntu 安装 wget
wget -N --no-check-certificate -q -O trojan_install.sh "https://raw.githubusercontent.com/V2RaySSR/Trojan/master/trojan_install.sh" && chmod +x trojan_install.sh && bash trojan_install.sh

Trojan单服务搭建三部曲

wget -N --no-check-certificate "https://raw.githubusercontent.com/V2RaySSR/Trojansh/master/trojan1.sh" && chmod +x trojan1.sh && ./trojan1.sh
wget -N --no-check-certificate "https://raw.githubusercontent.com/V2RaySSR/Trojansh/master/trojan2.sh" && chmod +x trojan2.sh && ./trojan2.sh
wget -N --no-check-certificate "https://raw.githubusercontent.com/V2RaySSR/Trojansh/master/trojan3.sh" && chmod +x trojan3.sh && ./trojan3.sh

原文地址:https://www.v2rayssr.com/trojan-set.html

V2ray Trjon代理软件客户端

Windows客户端

Qv2ray
Qv2ray官网:https://qv2ray.net/lang/zh/
Qv2ray下载:https://github.com/Qv2ray/Qv2ray/releases/tag/v2.7.0
V2ray-core下载:https://github.com/v2fly/v2ray-core/releases/tag/v4.41.1
QvPlugin-Trojan:https://github.com/Qv2ray/QvPlugin-Trojan/releases/tag/v3.0.0-pre3
QvPlugin-Trojan-Go:https://github.com/Qv2ray/QvPlugin-Trojan-Go/releases/tag/v3.0.0-pre3

V2RayN
Github:https://github.com/2dust/v2rayN

Trojan
Github:https://github.com/trojan-gfw/trojan/releases

安卓客户端

igniter
Github:https://github.com/trojan-gfw/igniter

V2RayNG
Github:https://github.com/2dust/v2rayNG
PlayStore:https://play.google.com/store/apps/details?id=com.v2ray.ang

BifrostV
Aptoide:https://bifrostv.cn.aptoide.com/app
APK Pure:https://apkpure.com/bifrostv/com.github.dawndiy.bifrostv
PlayStore:https://play.google.com/store/apps/details?id=com.github.dawndiy.bifrostv

iOS客户端

Shadowrocket
Apple Store:https://apps.apple.com/us/app/shadowrocket/id932747118

Quantumult
Apple Store: https://apps.apple.com/us/app/quantumult/id1252015438
Apple Store: https://apps.apple.com/us/app/quantumult-x/id1443988620

相关文档

https://www.v2ray.com/awesome/tools.html
https://www.v2rayssr.com/vpn-client.html

相关网站

V2RaySSR综合网 – V2Ray、SSR、BBR、Trojan 门户网

永不分离—jcnf的导航站

SSR中文网

V2Ray 教程

233Blog

留下评论