Compare commits
155 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f75e3f1187 | ||
![]() |
4d1279d038 | ||
![]() |
d999705479 | ||
![]() |
3af96ec0bc | ||
![]() |
59bc26b457 | ||
![]() |
61cdfc5bbe | ||
![]() |
51ff04fa02 | ||
![]() |
cad75208d0 | ||
![]() |
25c14b8520 | ||
![]() |
463ff482ea | ||
![]() |
83d1e045a9 | ||
![]() |
67387eb0a1 | ||
![]() |
5c6f48df83 | ||
![]() |
4771de764d | ||
![]() |
44e340914d | ||
![]() |
62433b88f3 | ||
![]() |
b0207515a0 | ||
![]() |
bf8867cc63 | ||
![]() |
b09b8b5c51 | ||
![]() |
05e3c685c8 | ||
![]() |
bfff42a4a6 | ||
![]() |
ec504a23d3 | ||
![]() |
07af4a2adc | ||
![]() |
61e55aed2f | ||
![]() |
b8ca53054d | ||
![]() |
ab15bf6f7f | ||
![]() |
166884121f | ||
![]() |
c92f1a9236 | ||
![]() |
c8bb84523a | ||
![]() |
c8583eb601 | ||
![]() |
7dddce121b | ||
![]() |
776d7e6887 | ||
![]() |
b4153f2241 | ||
![]() |
abc0500fea | ||
![]() |
d0a936920f | ||
![]() |
7584ebf73a | ||
![]() |
78213f1f8a | ||
![]() |
fcf613dbee | ||
![]() |
9b158e47fc | ||
![]() |
39193def31 | ||
![]() |
9c63512887 | ||
![]() |
7f76440136 | ||
![]() |
7028fbe679 | ||
![]() |
ebd4ea926f | ||
![]() |
79be7a13d0 | ||
![]() |
f0b3f4395f | ||
![]() |
91134794ab | ||
![]() |
ba174ff07a | ||
![]() |
956f9aaa61 | ||
![]() |
b319e963de | ||
![]() |
c940374011 | ||
![]() |
e8339d0652 | ||
![]() |
bf04951379 | ||
![]() |
644ea3eb37 | ||
![]() |
e034413047 | ||
![]() |
8e944269f7 | ||
![]() |
750dcfc5d6 | ||
![]() |
8b2e5b45c2 | ||
![]() |
db577f8999 | ||
![]() |
b916f2865a | ||
![]() |
5b08b49223 | ||
![]() |
d6b5f0ab0e | ||
![]() |
f946429fe8 | ||
![]() |
96c4be3001 | ||
![]() |
ed619a6b2c | ||
![]() |
929e9d404e | ||
![]() |
f7f3d4c8fb | ||
![]() |
05b345cce1 | ||
![]() |
dc36df7959 | ||
![]() |
0587560602 | ||
![]() |
1b7042f6f2 | ||
![]() |
35cc43c045 | ||
![]() |
5dd0aac87b | ||
![]() |
5c0193f847 | ||
![]() |
d568ae0299 | ||
![]() |
3a2b81cdf7 | ||
![]() |
af60aac5dd | ||
![]() |
5ea36e805e | ||
![]() |
5ba3d52f78 | ||
![]() |
29c99e16b1 | ||
![]() |
e01ba62266 | ||
![]() |
6288fcfbf1 | ||
![]() |
3c3eb91d7d | ||
![]() |
344a7becbe | ||
![]() |
97d78c8284 | ||
![]() |
eab685736c | ||
![]() |
37bd9a1d32 | ||
![]() |
5fbdf86918 | ||
![]() |
f5b943f8b7 | ||
![]() |
ebcbbc2e52 | ||
![]() |
87340c995e | ||
![]() |
6058e148f1 | ||
![]() |
966bf6f733 | ||
![]() |
db4b81048a | ||
![]() |
f515968ebf | ||
![]() |
dc21125153 | ||
![]() |
03a274c72f | ||
![]() |
aacf1cf7ab | ||
![]() |
4555f1ad9a | ||
![]() |
5c647ffcc3 | ||
![]() |
e43667561d | ||
![]() |
69fb87beaa | ||
![]() |
c6640f9d02 | ||
![]() |
b6381cabdf | ||
![]() |
f4808e2305 | ||
![]() |
0cdd7be335 | ||
![]() |
6f301cab82 | ||
![]() |
c8393caf51 | ||
![]() |
9d6febc8b2 | ||
![]() |
e9ab14add2 | ||
![]() |
1778651394 | ||
![]() |
077ef7f74e | ||
![]() |
cbaf657340 | ||
![]() |
9a71576d5e | ||
![]() |
141a0fb58d | ||
![]() |
b9282f75c1 | ||
![]() |
d140b3bc3d | ||
![]() |
620ec46f5a | ||
![]() |
3ecb6847e6 | ||
![]() |
cee9bb6fb0 | ||
![]() |
0b7542db23 | ||
![]() |
5871d57acb | ||
![]() |
b361a420e2 | ||
![]() |
7d9cf1a03f | ||
![]() |
2437f5e4ef | ||
![]() |
077585ceb4 | ||
![]() |
12043c2a4b | ||
![]() |
2fd7b60265 | ||
![]() |
f7994300c7 | ||
![]() |
2d01747037 | ||
![]() |
76495c810b | ||
![]() |
f3d3c7635f | ||
![]() |
19b4aa817b | ||
![]() |
7ffafe039c | ||
![]() |
31a548defc | ||
![]() |
a6a348b476 | ||
![]() |
b062531cd3 | ||
![]() |
ec9a353de1 | ||
![]() |
a3dd64ac8f | ||
![]() |
69b5eb60b8 | ||
![]() |
462fe888c6 | ||
![]() |
9168af9b0a | ||
![]() |
d8515991d1 | ||
![]() |
001fd37343 | ||
![]() |
276f17a3f1 | ||
![]() |
9383e69aaa | ||
![]() |
f8dd41b947 | ||
![]() |
351cc96c5c | ||
![]() |
01a3083312 | ||
![]() |
a5a67f68b3 | ||
![]() |
1268ebbd1e | ||
![]() |
3abdf6aa44 | ||
![]() |
e0be1f6587 | ||
![]() |
90b5dc024e | ||
![]() |
90a1e2be7c |
3
.github/ISSUE_TEMPLATE.md
vendored
3
.github/ISSUE_TEMPLATE.md
vendored
@@ -1,3 +0,0 @@
|
|||||||
提问之前,请先查阅:[V2Ray 一键安装脚本疑问集合](https://233blog.com/post/27/)
|
|
||||||
|
|
||||||
若需要发起提问,请删除这些内容
|
|
31
.github/workflows/release.yml
vendored
Normal file
31
.github/workflows/release.yml
vendored
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
name: Main
|
||||||
|
|
||||||
|
on: push
|
||||||
|
|
||||||
|
permissions:
|
||||||
|
contents: write
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: checkout
|
||||||
|
uses: actions/checkout@v3
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: get ver
|
||||||
|
run: |
|
||||||
|
echo "$(cat v2ray.sh | grep ver=)" >> $GITHUB_ENV
|
||||||
|
echo "old=$(git tag | tail -n1)" >> $GITHUB_ENV
|
||||||
|
# - name: test
|
||||||
|
# if: env.is_sh_ver == env.old
|
||||||
|
# run: |
|
||||||
|
# echo not found new version.
|
||||||
|
# exit 1
|
||||||
|
- name: zip
|
||||||
|
run: zip -9vr code.zip . -x .\*
|
||||||
|
- name: release
|
||||||
|
uses: softprops/action-gh-release@v1
|
||||||
|
with:
|
||||||
|
files: code.zip
|
||||||
|
tag_name: ${{ env.is_sh_ver }}
|
122
README.md
122
README.md
@@ -1,2 +1,122 @@
|
|||||||
# v2ray
|
# 介绍
|
||||||
|
|
||||||
最好用的 V2Ray 一键安装脚本 & 管理脚本
|
最好用的 V2Ray 一键安装脚本 & 管理脚本
|
||||||
|
|
||||||
|
# 特点
|
||||||
|
|
||||||
|
- 快速安装
|
||||||
|
- 超级好用
|
||||||
|
- 零学习成本
|
||||||
|
- 自动化 TLS
|
||||||
|
- 简化所有流程
|
||||||
|
- 屏蔽 BT
|
||||||
|
- 屏蔽中国 IP
|
||||||
|
- 使用 API 操作
|
||||||
|
- 兼容 V2Ray 命令
|
||||||
|
- 强大的快捷参数
|
||||||
|
- 支持所有常用协议
|
||||||
|
- 一键添加 Shadowsocks
|
||||||
|
- 一键添加 VMess-(TCP/mKCP/QUIC)
|
||||||
|
- 一键添加 VMess-(WS/H2/gRPC)-TLS
|
||||||
|
- 一键添加 VLESS-(WS/H2/gRPC)-TLS
|
||||||
|
- 一键添加 Trojan-(WS/H2/gRPC)-TLS
|
||||||
|
- 一键添加 VMess-(TCP/mKCP/QUIC) 动态端口
|
||||||
|
- 一键启用 BBR
|
||||||
|
- 一键更改伪装网站
|
||||||
|
- 一键更改 (端口/UUID/密码/域名/路径/加密方式/SNI/动态端口/等...)
|
||||||
|
- 还有更多...
|
||||||
|
|
||||||
|
# 设计理念
|
||||||
|
|
||||||
|
设计理念为:**高效率,超快速,极易用**
|
||||||
|
|
||||||
|
脚本基于作者的自身使用需求,以 **多配置同时运行** 为核心设计
|
||||||
|
|
||||||
|
并且专门优化了,添加、更改、查看、删除、这四项常用功能
|
||||||
|
|
||||||
|
你只需要一条命令即可完成 添加、更改、查看、删除、等操作
|
||||||
|
|
||||||
|
例如,添加一个配置仅需不到 1 秒!瞬间完成添加!其他操作亦是如此!
|
||||||
|
|
||||||
|
脚本的参数非常高效率并且超级易用,请掌握参数的使用
|
||||||
|
|
||||||
|
# 脚本说明
|
||||||
|
|
||||||
|
[V2Ray 一键安装脚本](https://github.com/233boy/v2ray/wiki/V2Ray%E4%B8%80%E9%94%AE%E5%AE%89%E8%A3%85%E8%84%9A%E6%9C%AC)
|
||||||
|
|
||||||
|
# 搭建教程
|
||||||
|
|
||||||
|
[V2Ray搭建详细图文教程](https://github.com/233boy/v2ray/wiki/V2Ray%E6%90%AD%E5%BB%BA%E8%AF%A6%E7%BB%86%E5%9B%BE%E6%96%87%E6%95%99%E7%A8%8B)
|
||||||
|
|
||||||
|
# 帮助
|
||||||
|
|
||||||
|
使用: `v2ray help`
|
||||||
|
|
||||||
|
```
|
||||||
|
V2Ray script v4.21 by 233boy
|
||||||
|
Usage: v2ray [options]... [args]...
|
||||||
|
|
||||||
|
基本:
|
||||||
|
v, version 显示当前版本
|
||||||
|
ip 返回当前主机的 IP
|
||||||
|
get-port 返回一个可用的端口
|
||||||
|
|
||||||
|
一般:
|
||||||
|
a, add [protocol] [args... | auto] 添加配置
|
||||||
|
c, change [name] [option] [args... | auto] 更改配置
|
||||||
|
d, del [name] 删除配置**
|
||||||
|
i, info [name] 查看配置
|
||||||
|
qr [name] 二维码信息
|
||||||
|
url [name] URL 信息
|
||||||
|
log 查看日志
|
||||||
|
logerr 查看错误日志
|
||||||
|
|
||||||
|
更改:
|
||||||
|
dp, dynamicport [name] [start | auto] [end] 更改动态端口
|
||||||
|
full [name] [...] 更改多个参数
|
||||||
|
id [name] [uuid | auto] 更改 UUID
|
||||||
|
host [name] [domain] 更改域名
|
||||||
|
port [name] [port | auto] 更改端口
|
||||||
|
path [name] [path | auto] 更改路径
|
||||||
|
passwd [name] [password | auto] 更改密码
|
||||||
|
type [name] [type | auto] 更改伪装类型
|
||||||
|
method [name] [method | auto] 更改加密方式
|
||||||
|
seed [name] [seed | auto] 更改 mKCP seed
|
||||||
|
new [name] [...] 更改协议
|
||||||
|
web [name] [domain] 更改伪装网站
|
||||||
|
|
||||||
|
进阶:
|
||||||
|
dns [...] 设置 DNS
|
||||||
|
dd, ddel [name...] 删除多个配置**
|
||||||
|
fix [name] 修复一个配置
|
||||||
|
fix-all 修复全部配置
|
||||||
|
fix-caddyfile 修复 Caddyfile
|
||||||
|
fix-config.json 修复 config.json
|
||||||
|
|
||||||
|
管理:
|
||||||
|
un, uninstall 卸载
|
||||||
|
u, update [core | sh | dat | caddy] [ver] 更新
|
||||||
|
U, update.sh 更新脚本
|
||||||
|
s, status 运行状态
|
||||||
|
start, stop, restart [caddy] 启动, 停止, 重启
|
||||||
|
t, test 测试运行
|
||||||
|
reinstall 重装脚本
|
||||||
|
|
||||||
|
测试:
|
||||||
|
client [name] 显示用于客户端 JSON, 仅供参考
|
||||||
|
debug [name] 显示一些 debug 信息, 仅供参考
|
||||||
|
gen [...] 同等于 add, 但只显示 JSON 内容, 不创建文件, 测试使用
|
||||||
|
genc [name] 显示用于客户端部分 JSON, 仅供参考
|
||||||
|
no-auto-tls [...] 同等于 add, 但禁止自动配置 TLS, 可用于 *TLS 相关协议
|
||||||
|
xapi [...] 同等于 v2ray api, 但 API 后端使用当前运行的 V2Ray 服务
|
||||||
|
|
||||||
|
其他:
|
||||||
|
bbr 启用 BBR, 如果支持
|
||||||
|
bin [...] 运行 V2Ray 命令, 例如: v2ray bin help
|
||||||
|
api, convert, tls, run, uuid [...] 兼容 V2Ray 命令
|
||||||
|
h, help 显示此帮助界面
|
||||||
|
|
||||||
|
谨慎使用 del, ddel, 此选项会直接删除配置; 无需确认
|
||||||
|
反馈问题) https://github.com/233boy/v2ray/issues
|
||||||
|
文档(doc) https://233boy.com/v2ray/v2ray-script/
|
||||||
|
```
|
||||||
|
@@ -1,63 +0,0 @@
|
|||||||
# -----------------------------------
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# -----------------------------------
|
|
||||||
|
|
||||||
# ---- 再次提醒 ----
|
|
||||||
# 大胸弟...如果你看到了这个...记得不要修改或更改这个文件
|
|
||||||
|
|
||||||
# ---- 说明 ----
|
|
||||||
# 嗯……这个文件呢,是用来备份一些设置的
|
|
||||||
# 我懒...不想用 JQ 去解析 JSON....
|
|
||||||
# 那就把 V2Ray 配置文件的一些重要参数提取出来
|
|
||||||
# 然后..在修改 V2Ray 配置的时候再重写一下就 OK 啦...
|
|
||||||
# 嗯…笨笨的方法
|
|
||||||
|
|
||||||
# ---- V2Ray 传输协议 -----
|
|
||||||
v2ray_transport=1
|
|
||||||
|
|
||||||
#---- V2Ray 端口 -----
|
|
||||||
v2ray_port=2333
|
|
||||||
|
|
||||||
#---- UUID -----
|
|
||||||
v2ray_id=23332333-2333-2333-2333-233boy233boy
|
|
||||||
|
|
||||||
#---- alterId -----
|
|
||||||
alterId=233
|
|
||||||
|
|
||||||
#---- V2Ray 动态端口开始 -----
|
|
||||||
v2ray_dynamicPort_start=10000
|
|
||||||
|
|
||||||
#---- V2Ray 动态端口结束 -----
|
|
||||||
v2ray_dynamicPort_end=20000
|
|
||||||
|
|
||||||
#---- 域名 -----
|
|
||||||
domain=233blog.com
|
|
||||||
|
|
||||||
#---- caddy -----
|
|
||||||
caddy_status=
|
|
||||||
|
|
||||||
#---- Shadowsocks -----
|
|
||||||
shadowsocks_status=
|
|
||||||
|
|
||||||
#---- Shadowsocks 端口 -----
|
|
||||||
ssport=6666
|
|
||||||
|
|
||||||
#---- Shadowsocks 密码 -----
|
|
||||||
sspass=233blog.com
|
|
||||||
|
|
||||||
#---- Shadowsocks 加密协议 -----
|
|
||||||
ssciphers=chacha20-ietf
|
|
||||||
|
|
||||||
#---- 屏蔽广告 -----
|
|
||||||
blocked_ad_status=
|
|
||||||
|
|
||||||
#---- 网站伪装 -----
|
|
||||||
ws_path_status=
|
|
||||||
|
|
||||||
#---- 伪装的路径 -----
|
|
||||||
ws_path=233blog
|
|
||||||
|
|
||||||
#---- 伪装的网址 -----
|
|
||||||
proxy_site=https://liyafly.com
|
|
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -1,115 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"error": "error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "socks",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "233blog.com",
|
|
||||||
"port": 2333,
|
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"alterId": 233,
|
|
||||||
"security": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "h2",
|
|
||||||
"security": "tls",
|
|
||||||
"tlsSettings": {
|
|
||||||
"serverName": "233blog.com",
|
|
||||||
"allowInsecure": false
|
|
||||||
},
|
|
||||||
"httpSettings": {
|
|
||||||
"path": "/233blog"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"port": 6666,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "http",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "direct"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dns": {
|
|
||||||
"servers": [
|
|
||||||
"8.8.8.8",
|
|
||||||
"8.8.4.4",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"domainStrategy": "IPIfNonMatch",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10",
|
|
||||||
"geoip:cn"
|
|
||||||
],
|
|
||||||
"domain": [
|
|
||||||
"geosite:cn"
|
|
||||||
],
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinasites",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinaip",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,144 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"error": "error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "socks",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "233blog.com",
|
|
||||||
"port": 2333,
|
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"alterId": 233,
|
|
||||||
"security": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"request": {
|
|
||||||
"version": "1.1",
|
|
||||||
"method": "GET",
|
|
||||||
"path": [
|
|
||||||
"/"
|
|
||||||
],
|
|
||||||
"headers": {
|
|
||||||
"Host": [
|
|
||||||
"www.cloudflare.com",
|
|
||||||
"www.amazon.com"
|
|
||||||
],
|
|
||||||
"User-Agent": [
|
|
||||||
"Mozilla/5.0 (Windows NT 10.0; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/55.0.2883.75 Safari/537.36",
|
|
||||||
"Mozilla/5.0 (Windows NT 6.3; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36",
|
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.75 Safari/537.36",
|
|
||||||
"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:57.0) Gecko/20100101 Firefox/57.0"
|
|
||||||
],
|
|
||||||
"Accept": [
|
|
||||||
"text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,*/*;q=0.8"
|
|
||||||
],
|
|
||||||
"Accept-language": [
|
|
||||||
"zh-CN,zh;q=0.8,en-US;q=0.6,en;q=0.4"
|
|
||||||
],
|
|
||||||
"Accept-Encoding": [
|
|
||||||
"gzip, deflate, br"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Pragma": "no-cache"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"port": 6666,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "http",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "direct"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dns": {
|
|
||||||
"servers": [
|
|
||||||
"8.8.8.8",
|
|
||||||
"8.8.4.4",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"domainStrategy": "IPIfNonMatch",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10",
|
|
||||||
"geoip:cn"
|
|
||||||
],
|
|
||||||
"domain": [
|
|
||||||
"geosite:cn"
|
|
||||||
],
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinasites",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinaip",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,119 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"error": "error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "socks",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "233blog.com",
|
|
||||||
"port": 2333,
|
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"alterId": 233,
|
|
||||||
"security": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp",
|
|
||||||
"kcpSettings": {
|
|
||||||
"mtu": 1350,
|
|
||||||
"tti": 50,
|
|
||||||
"uplinkCapacity": 100,
|
|
||||||
"downlinkCapacity": 100,
|
|
||||||
"congestion": false,
|
|
||||||
"readBufferSize": 2,
|
|
||||||
"writeBufferSize": 2,
|
|
||||||
"header": {
|
|
||||||
"type": "none"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"port": 6666,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "http",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "direct"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dns": {
|
|
||||||
"servers": [
|
|
||||||
"8.8.8.8",
|
|
||||||
"8.8.4.4",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"domainStrategy": "IPIfNonMatch",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10",
|
|
||||||
"geoip:cn"
|
|
||||||
],
|
|
||||||
"domain": [
|
|
||||||
"geosite:cn"
|
|
||||||
],
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinasites",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinaip",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,104 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"error": "error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "socks",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "233blog.com",
|
|
||||||
"port": 2333,
|
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"alterId": 233,
|
|
||||||
"security": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"port": 6666,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "http",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "direct"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dns": {
|
|
||||||
"servers": [
|
|
||||||
"8.8.8.8",
|
|
||||||
"8.8.4.4",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"domainStrategy": "IPIfNonMatch",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10",
|
|
||||||
"geoip:cn"
|
|
||||||
],
|
|
||||||
"domain": [
|
|
||||||
"geosite:cn"
|
|
||||||
],
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinasites",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinaip",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,107 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"error": "error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "socks",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "233blog.com",
|
|
||||||
"port": 2333,
|
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"alterId": 233,
|
|
||||||
"security": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"port": 6666,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "http",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "direct"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dns": {
|
|
||||||
"servers": [
|
|
||||||
"8.8.8.8",
|
|
||||||
"8.8.4.4",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"domainStrategy": "IPIfNonMatch",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10",
|
|
||||||
"geoip:cn"
|
|
||||||
],
|
|
||||||
"domain": [
|
|
||||||
"geosite:cn"
|
|
||||||
],
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinasites",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinaip",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,115 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"error": "error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "socks",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"vnext": [
|
|
||||||
{
|
|
||||||
"address": "233blog.com",
|
|
||||||
"port": 2333,
|
|
||||||
"users": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"alterId": 233,
|
|
||||||
"security": "auto"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws",
|
|
||||||
"security": "tls",
|
|
||||||
"tlsSettings": {
|
|
||||||
"serverName": "233blog.com",
|
|
||||||
"allowInsecure": false
|
|
||||||
},
|
|
||||||
"wsSettings": {
|
|
||||||
"path": "/233blog"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"mux": {
|
|
||||||
"enabled": true
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"port": 6666,
|
|
||||||
"listen": "127.0.0.1",
|
|
||||||
"protocol": "http",
|
|
||||||
"settings": {
|
|
||||||
"auth": "noauth",
|
|
||||||
"udp": true,
|
|
||||||
"ip": "127.0.0.1"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "direct"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"dns": {
|
|
||||||
"servers": [
|
|
||||||
"8.8.8.8",
|
|
||||||
"8.8.4.4",
|
|
||||||
"localhost"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"domainStrategy": "IPIfNonMatch",
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10",
|
|
||||||
"geoip:cn"
|
|
||||||
],
|
|
||||||
"domain": [
|
|
||||||
"geosite:cn"
|
|
||||||
],
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinasites",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"type": "chinaip",
|
|
||||||
"outboundTag": "direct"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1 +0,0 @@
|
|||||||
## 欢迎 PR 要屏蔽的域名
|
|
@@ -1,9 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
|
|
||||||
# 生成要屏蔽的域名... MVPS HOSTS....
|
|
||||||
curl "http://winhelp2002.mvps.org/hosts.txt" -o hosts.txt
|
|
||||||
sed -i '/^#/d; /localhost/d; /^$/d; s/0.0.0.0 //g; s/ //' hosts.txt
|
|
||||||
sed -i 's/#\(.*\)//g' hosts.txt
|
|
||||||
sed -i '/^\s*$/d' hosts.txt
|
|
||||||
sed -i 's/^/"/; s/\s*$/",/' hosts.txt
|
|
||||||
sed -i '$s/,//' hosts.txt
|
|
@@ -1,96 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"response": {
|
|
||||||
"version": "1.1",
|
|
||||||
"status": "200",
|
|
||||||
"reason": "OK",
|
|
||||||
"headers": {
|
|
||||||
"Content-encoding": [
|
|
||||||
"gzip"
|
|
||||||
],
|
|
||||||
"Content-Type": [
|
|
||||||
"text/html; charset=utf-8"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Vary": [
|
|
||||||
"Accept-Encoding"
|
|
||||||
],
|
|
||||||
"X-Frame-Options": [
|
|
||||||
"deny"
|
|
||||||
],
|
|
||||||
"X-XSS-Protection": [
|
|
||||||
"1; mode=block"
|
|
||||||
],
|
|
||||||
"X-content-type-options": [
|
|
||||||
"nosniff"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,154 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"response": {
|
|
||||||
"version": "1.1",
|
|
||||||
"status": "200",
|
|
||||||
"reason": "OK",
|
|
||||||
"headers": {
|
|
||||||
"Content-encoding": [
|
|
||||||
"gzip"
|
|
||||||
],
|
|
||||||
"Content-Type": [
|
|
||||||
"text/html; charset=utf-8"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Vary": [
|
|
||||||
"Accept-Encoding"
|
|
||||||
],
|
|
||||||
"X-Frame-Options": [
|
|
||||||
"deny"
|
|
||||||
],
|
|
||||||
"X-XSS-Protection": [
|
|
||||||
"1; mode=block"
|
|
||||||
],
|
|
||||||
"X-content-type-options": [
|
|
||||||
"nosniff"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"response": {
|
|
||||||
"version": "1.1",
|
|
||||||
"status": "200",
|
|
||||||
"reason": "OK",
|
|
||||||
"headers": {
|
|
||||||
"Content-encoding": [
|
|
||||||
"gzip"
|
|
||||||
],
|
|
||||||
"Content-Type": [
|
|
||||||
"text/html; charset=utf-8"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Vary": [
|
|
||||||
"Accept-Encoding"
|
|
||||||
],
|
|
||||||
"X-Frame-Options": [
|
|
||||||
"deny"
|
|
||||||
],
|
|
||||||
"X-XSS-Protection": [
|
|
||||||
"1; mode=block"
|
|
||||||
],
|
|
||||||
"X-content-type-options": [
|
|
||||||
"nosniff"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,109 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"response": {
|
|
||||||
"version": "1.1",
|
|
||||||
"status": "200",
|
|
||||||
"reason": "OK",
|
|
||||||
"headers": {
|
|
||||||
"Content-encoding": [
|
|
||||||
"gzip"
|
|
||||||
],
|
|
||||||
"Content-Type": [
|
|
||||||
"text/html; charset=utf-8"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Vary": [
|
|
||||||
"Accept-Encoding"
|
|
||||||
],
|
|
||||||
"X-Frame-Options": [
|
|
||||||
"deny"
|
|
||||||
],
|
|
||||||
"X-XSS-Protection": [
|
|
||||||
"1; mode=block"
|
|
||||||
],
|
|
||||||
"X-content-type-options": [
|
|
||||||
"nosniff"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,165 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"response": {
|
|
||||||
"version": "1.1",
|
|
||||||
"status": "200",
|
|
||||||
"reason": "OK",
|
|
||||||
"headers": {
|
|
||||||
"Content-encoding": [
|
|
||||||
"gzip"
|
|
||||||
],
|
|
||||||
"Content-Type": [
|
|
||||||
"text/html; charset=utf-8"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Vary": [
|
|
||||||
"Accept-Encoding"
|
|
||||||
],
|
|
||||||
"X-Frame-Options": [
|
|
||||||
"deny"
|
|
||||||
],
|
|
||||||
"X-XSS-Protection": [
|
|
||||||
"1; mode=block"
|
|
||||||
],
|
|
||||||
"X-content-type-options": [
|
|
||||||
"nosniff"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "tcp",
|
|
||||||
"tcpSettings": {
|
|
||||||
"header": {
|
|
||||||
"type": "http",
|
|
||||||
"response": {
|
|
||||||
"version": "1.1",
|
|
||||||
"status": "200",
|
|
||||||
"reason": "OK",
|
|
||||||
"headers": {
|
|
||||||
"Content-encoding": [
|
|
||||||
"gzip"
|
|
||||||
],
|
|
||||||
"Content-Type": [
|
|
||||||
"text/html; charset=utf-8"
|
|
||||||
],
|
|
||||||
"Cache-Control": [
|
|
||||||
"no-cache"
|
|
||||||
],
|
|
||||||
"Vary": [
|
|
||||||
"Accept-Encoding"
|
|
||||||
],
|
|
||||||
"X-Frame-Options": [
|
|
||||||
"deny"
|
|
||||||
],
|
|
||||||
"X-XSS-Protection": [
|
|
||||||
"1; mode=block"
|
|
||||||
],
|
|
||||||
"X-content-type-options": [
|
|
||||||
"nosniff"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,75 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp",
|
|
||||||
"kcpSettings": {
|
|
||||||
"mtu": 1350,
|
|
||||||
"tti": 50,
|
|
||||||
"uplinkCapacity": 100,
|
|
||||||
"downlinkCapacity": 100,
|
|
||||||
"congestion": false,
|
|
||||||
"readBufferSize": 2,
|
|
||||||
"writeBufferSize": 2,
|
|
||||||
"header": {
|
|
||||||
"type": "none"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,102 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"transport": {
|
|
||||||
"kcpSettings": {
|
|
||||||
"mtu": 1350,
|
|
||||||
"tti": 50,
|
|
||||||
"uplinkCapacity": 100,
|
|
||||||
"downlinkCapacity": 100,
|
|
||||||
"congestion": false,
|
|
||||||
"readBufferSize": 2,
|
|
||||||
"writeBufferSize": 2,
|
|
||||||
"header": {
|
|
||||||
"type": "none"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,88 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp",
|
|
||||||
"kcpSettings": {
|
|
||||||
"mtu": 1350,
|
|
||||||
"tti": 50,
|
|
||||||
"uplinkCapacity": 100,
|
|
||||||
"downlinkCapacity": 100,
|
|
||||||
"congestion": false,
|
|
||||||
"readBufferSize": 2,
|
|
||||||
"writeBufferSize": 2,
|
|
||||||
"header": {
|
|
||||||
"type": "none"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,113 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "kcp"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"transport": {
|
|
||||||
"kcpSettings": {
|
|
||||||
"mtu": 1350,
|
|
||||||
"tti": 50,
|
|
||||||
"uplinkCapacity": 100,
|
|
||||||
"downlinkCapacity": 100,
|
|
||||||
"congestion": false,
|
|
||||||
"readBufferSize": 2,
|
|
||||||
"writeBufferSize": 2,
|
|
||||||
"header": {
|
|
||||||
"type": "none"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,60 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,82 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,73 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,93 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,63 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,88 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,76 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
]
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
@@ -1,99 +0,0 @@
|
|||||||
{
|
|
||||||
"log": {
|
|
||||||
"access": "/var/log/v2ray/access.log",
|
|
||||||
"error": "/var/log/v2ray/error.log",
|
|
||||||
"loglevel": "warning"
|
|
||||||
},
|
|
||||||
"inbound": {
|
|
||||||
"port": 2333,
|
|
||||||
"protocol": "vmess",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"clients": [
|
|
||||||
{
|
|
||||||
"id": "23332333-2333-2333-2333-233boy233boy",
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 233
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"detour": {
|
|
||||||
"to": "dynamic"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"outbound": {
|
|
||||||
"protocol": "freedom",
|
|
||||||
"settings": {}
|
|
||||||
},
|
|
||||||
"inboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "shadowsocks",
|
|
||||||
"port": 6666,
|
|
||||||
"settings": {
|
|
||||||
"method": "chacha20-ietf",
|
|
||||||
"password": "233blog.com",
|
|
||||||
"udp": true,
|
|
||||||
"level": 1,
|
|
||||||
"ota": false
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"protocol": "vmess",
|
|
||||||
"port": "10000-20000",
|
|
||||||
"tag": "dynamic",
|
|
||||||
"settings": {
|
|
||||||
"udp": true,
|
|
||||||
"default": {
|
|
||||||
"level": 1,
|
|
||||||
"alterId": 32
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"allocate": {
|
|
||||||
"strategy": "random",
|
|
||||||
"concurrency": 2,
|
|
||||||
"refresh": 5
|
|
||||||
},
|
|
||||||
"streamSettings": {
|
|
||||||
"network": "ws"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"outboundDetour": [
|
|
||||||
{
|
|
||||||
"protocol": "blackhole",
|
|
||||||
"settings": {},
|
|
||||||
"tag": "blocked"
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"routing": {
|
|
||||||
"strategy": "rules",
|
|
||||||
"settings": {
|
|
||||||
"rules": [
|
|
||||||
{
|
|
||||||
"type": "field",
|
|
||||||
"ip": [
|
|
||||||
"0.0.0.0/8",
|
|
||||||
"10.0.0.0/8",
|
|
||||||
"100.64.0.0/10",
|
|
||||||
"127.0.0.0/8",
|
|
||||||
"169.254.0.0/16",
|
|
||||||
"172.16.0.0/12",
|
|
||||||
"192.0.0.0/24",
|
|
||||||
"192.0.2.0/24",
|
|
||||||
"192.168.0.0/16",
|
|
||||||
"198.18.0.0/15",
|
|
||||||
"198.51.100.0/24",
|
|
||||||
"203.0.113.0/24",
|
|
||||||
"::1/128",
|
|
||||||
"fc00::/7",
|
|
||||||
"fe80::/10"
|
|
||||||
],
|
|
||||||
"outboundTag": "blocked"
|
|
||||||
}
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
2463
install.sh
2463
install.sh
File diff suppressed because it is too large
Load Diff
20
src/bbr.sh
Normal file
20
src/bbr.sh
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
_open_bbr() {
|
||||||
|
sed -i '/net.ipv4.tcp_congestion_control/d' /etc/sysctl.conf
|
||||||
|
sed -i '/net.core.default_qdisc/d' /etc/sysctl.conf
|
||||||
|
echo "net.ipv4.tcp_congestion_control = bbr" >>/etc/sysctl.conf
|
||||||
|
echo "net.core.default_qdisc = fq" >>/etc/sysctl.conf
|
||||||
|
sysctl -p &>/dev/null
|
||||||
|
echo
|
||||||
|
_green "..已经启用 BBR 优化...."
|
||||||
|
echo
|
||||||
|
}
|
||||||
|
|
||||||
|
_try_enable_bbr() {
|
||||||
|
local _test1=$(uname -r | cut -d\. -f1)
|
||||||
|
local _test2=$(uname -r | cut -d\. -f2)
|
||||||
|
if [[ $_test1 -eq 4 && $_test2 -ge 9 ]] || [[ $_test1 -ge 5 ]]; then
|
||||||
|
_open_bbr
|
||||||
|
else
|
||||||
|
err "不支持启用 BBR 优化."
|
||||||
|
fi
|
||||||
|
}
|
53
src/caddy.sh
Normal file
53
src/caddy.sh
Normal file
@@ -0,0 +1,53 @@
|
|||||||
|
caddy_config() {
|
||||||
|
is_caddy_site_file=$is_caddy_conf/${host}.conf
|
||||||
|
case $1 in
|
||||||
|
new)
|
||||||
|
mkdir -p $is_caddy_dir $is_caddy_dir/sites $is_caddy_conf
|
||||||
|
cat >$is_caddyfile <<-EOF
|
||||||
|
# don't edit this file #
|
||||||
|
# for more info, see https://233boy.com/$is_core/caddy-auto-tls/
|
||||||
|
# 不要编辑这个文件 #
|
||||||
|
# 更多相关请阅读此文章: https://233boy.com/$is_core/caddy-auto-tls/
|
||||||
|
# https://caddyserver.com/docs/caddyfile/options
|
||||||
|
{
|
||||||
|
admin off
|
||||||
|
http_port $is_http_port
|
||||||
|
https_port $is_https_port
|
||||||
|
}
|
||||||
|
import $is_caddy_conf/*.conf
|
||||||
|
import $is_caddy_dir/sites/*.conf
|
||||||
|
EOF
|
||||||
|
;;
|
||||||
|
*ws*)
|
||||||
|
cat >${is_caddy_site_file} <<<"
|
||||||
|
${host}:${is_https_port} {
|
||||||
|
reverse_proxy ${path} 127.0.0.1:${port}
|
||||||
|
import ${is_caddy_site_file}.add
|
||||||
|
}"
|
||||||
|
;;
|
||||||
|
*h2*)
|
||||||
|
cat >${is_caddy_site_file} <<<"
|
||||||
|
${host}:${is_https_port} {
|
||||||
|
reverse_proxy ${path} h2c://127.0.0.1:${port}
|
||||||
|
import ${is_caddy_site_file}.add
|
||||||
|
}"
|
||||||
|
;;
|
||||||
|
*grpc*)
|
||||||
|
cat >${is_caddy_site_file} <<<"
|
||||||
|
${host}:${is_https_port} {
|
||||||
|
reverse_proxy /${path}/* h2c://127.0.0.1:${port}
|
||||||
|
import ${is_caddy_site_file}.add
|
||||||
|
}"
|
||||||
|
;;
|
||||||
|
proxy)
|
||||||
|
|
||||||
|
cat >${is_caddy_site_file}.add <<<"
|
||||||
|
reverse_proxy https://$proxy_site {
|
||||||
|
header_up Host {upstream_hostport}
|
||||||
|
}"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
[[ $1 != "new" && $1 != 'proxy' ]] && {
|
||||||
|
[[ ! -f ${is_caddy_site_file}.add ]] && echo "# see https://233boy.com/$is_core/caddy-auto-tls/" >${is_caddy_site_file}.add
|
||||||
|
}
|
||||||
|
}
|
1924
src/core.sh
Normal file
1924
src/core.sh
Normal file
File diff suppressed because it is too large
Load Diff
56
src/dns.sh
Normal file
56
src/dns.sh
Normal file
@@ -0,0 +1,56 @@
|
|||||||
|
is_dns_list=(
|
||||||
|
1.1.1.1
|
||||||
|
8.8.8.8
|
||||||
|
https://dns.google/dns-query
|
||||||
|
https://cloudflare-dns.com/dns-query
|
||||||
|
https://family.cloudflare-dns.com/dns-query
|
||||||
|
set
|
||||||
|
none
|
||||||
|
)
|
||||||
|
dns_set() {
|
||||||
|
if [[ $1 ]]; then
|
||||||
|
case ${1,,} in
|
||||||
|
11 | 1111)
|
||||||
|
is_dns_use=${is_dns_list[0]}
|
||||||
|
;;
|
||||||
|
88 | 8888)
|
||||||
|
is_dns_use=${is_dns_list[1]}
|
||||||
|
;;
|
||||||
|
gg | google)
|
||||||
|
is_dns_use=${is_dns_list[2]}
|
||||||
|
;;
|
||||||
|
cf | cloudflare)
|
||||||
|
is_dns_use=${is_dns_list[3]}
|
||||||
|
;;
|
||||||
|
nosex | family)
|
||||||
|
is_dns_use=${is_dns_list[4]}
|
||||||
|
;;
|
||||||
|
set)
|
||||||
|
if [[ $2 ]]; then
|
||||||
|
is_dns_use=${2,,}
|
||||||
|
else
|
||||||
|
ask string is_dns_use "请输入 DNS: "
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
none)
|
||||||
|
is_dns_use=none
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
err "无法识别 DNS 参数: $@"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
else
|
||||||
|
is_tmp_list=(${is_dns_list[@]})
|
||||||
|
ask list is_dns_use null "\n请选择 DNS:\n"
|
||||||
|
if [[ $is_dns_use == "set" ]]; then
|
||||||
|
ask string is_dns_use "请输入 DNS: "
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ $is_dns_use == "none" ]]; then
|
||||||
|
cat <<<$(jq '.dns={}' $is_config_json) >$is_config_json
|
||||||
|
else
|
||||||
|
cat <<<$(jq '.dns.servers=["'${is_dns_use/https/https+local}'"]' $is_config_json) >$is_config_json
|
||||||
|
fi
|
||||||
|
manage restart &
|
||||||
|
msg "\n已更新 DNS 为: $(_green $is_dns_use)\n"
|
||||||
|
}
|
82
src/download.sh
Normal file
82
src/download.sh
Normal file
@@ -0,0 +1,82 @@
|
|||||||
|
get_latest_version() {
|
||||||
|
case $1 in
|
||||||
|
core)
|
||||||
|
name=$is_core_name
|
||||||
|
url="https://api.github.com/repos/${is_core_repo}/releases/latest?v=$RANDOM"
|
||||||
|
;;
|
||||||
|
sh)
|
||||||
|
name="$is_core_name 脚本"
|
||||||
|
url="https://api.github.com/repos/$is_sh_repo/releases/latest?v=$RANDOM"
|
||||||
|
;;
|
||||||
|
caddy)
|
||||||
|
name="Caddy"
|
||||||
|
url="https://api.github.com/repos/$is_caddy_repo/releases/latest?v=$RANDOM"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
latest_ver=$(_wget -qO- $url | grep tag_name | egrep -o 'v([0-9.]+)')
|
||||||
|
[[ ! $latest_ver ]] && {
|
||||||
|
err "获取 ${name} 最新版本失败."
|
||||||
|
}
|
||||||
|
unset name url
|
||||||
|
}
|
||||||
|
download() {
|
||||||
|
latest_ver=$2
|
||||||
|
[[ ! $latest_ver && $1 != 'dat' ]] && get_latest_version $1
|
||||||
|
# tmp dir
|
||||||
|
tmpdir=$(mktemp -u)
|
||||||
|
[[ ! $tmpdir ]] && {
|
||||||
|
tmpdir=/tmp/tmp-$RANDOM
|
||||||
|
}
|
||||||
|
mkdir -p $tmpdir
|
||||||
|
case $1 in
|
||||||
|
core)
|
||||||
|
name=$is_core_name
|
||||||
|
tmpfile=$tmpdir/$is_core.zip
|
||||||
|
link="https://github.com/${is_core_repo}/releases/download/${latest_ver}/${is_core}-linux-${is_core_arch}.zip"
|
||||||
|
download_file
|
||||||
|
unzip -qo $tmpfile -d $is_core_dir/bin
|
||||||
|
chmod +x $is_core_bin
|
||||||
|
;;
|
||||||
|
sh)
|
||||||
|
name="$is_core_name 脚本"
|
||||||
|
tmpfile=$tmpdir/sh.zip
|
||||||
|
link="https://github.com/${is_sh_repo}/releases/download/${latest_ver}/code.zip"
|
||||||
|
download_file
|
||||||
|
unzip -qo $tmpfile -d $is_sh_dir
|
||||||
|
chmod +x $is_sh_bin
|
||||||
|
;;
|
||||||
|
dat)
|
||||||
|
name="geoip.dat"
|
||||||
|
tmpfile=$tmpdir/geoip.dat
|
||||||
|
link="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geoip.dat"
|
||||||
|
download_file
|
||||||
|
name="geosite.dat"
|
||||||
|
tmpfile=$tmpdir/geosite.dat
|
||||||
|
link="https://github.com/Loyalsoldier/v2ray-rules-dat/releases/latest/download/geosite.dat"
|
||||||
|
download_file
|
||||||
|
cp -f $tmpdir/*.dat $is_core_dir/bin/
|
||||||
|
;;
|
||||||
|
caddy)
|
||||||
|
name="Caddy"
|
||||||
|
tmpfile=$tmpdir/caddy.tar.gz
|
||||||
|
# https://github.com/caddyserver/caddy/releases/download/v2.6.4/caddy_2.6.4_linux_amd64.tar.gz
|
||||||
|
link="https://github.com/${is_caddy_repo}/releases/download/${latest_ver}/caddy_${latest_ver:1}_linux_${caddy_arch}.tar.gz"
|
||||||
|
download_file
|
||||||
|
[[ ! $(type -P tar) ]] && {
|
||||||
|
rm -rf $tmpdir
|
||||||
|
err "请安装 tar"
|
||||||
|
}
|
||||||
|
tar zxf $tmpfile -C $tmpdir
|
||||||
|
cp -f $tmpdir/caddy $is_caddy_bin
|
||||||
|
chmod +x $is_caddy_bin
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
rm -rf $tmpdir
|
||||||
|
unset latest_ver
|
||||||
|
}
|
||||||
|
download_file() {
|
||||||
|
if ! _wget -t 5 -c $link -O $tmpfile; then
|
||||||
|
rm -rf $tmpdir
|
||||||
|
err "\n下载 ${name} 失败.\n"
|
||||||
|
fi
|
||||||
|
}
|
94
src/help.sh
Normal file
94
src/help.sh
Normal file
@@ -0,0 +1,94 @@
|
|||||||
|
show_help() {
|
||||||
|
case $1 in
|
||||||
|
api | convert | tls | run | uuid | version)
|
||||||
|
$is_core_bin help $1 ${@:2}
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
[[ $1 ]] && warn "未知选项 '$1'"
|
||||||
|
msg "$is_core_name script $is_sh_ver by $author"
|
||||||
|
msg "Usage: $is_core [options]... [args]... "
|
||||||
|
msg
|
||||||
|
help_info=(
|
||||||
|
"基本:"
|
||||||
|
" v, version 显示当前版本"
|
||||||
|
" ip 返回当前主机的 IP"
|
||||||
|
# " pbk 同等于 $is_core x25519"
|
||||||
|
" get-port 返回一个可用的端口\n"
|
||||||
|
# " ss2022 返回一个可用于 Shadowsocks 2022 的密码\n"
|
||||||
|
"一般:"
|
||||||
|
" a, add [protocol] [args... | auto] 添加配置"
|
||||||
|
" c, change [name] [option] [args... | auto] 更改配置"
|
||||||
|
" d, del [name] 删除配置**"
|
||||||
|
" i, info [name] 查看配置"
|
||||||
|
" qr [name] 二维码信息"
|
||||||
|
" url [name] URL 信息"
|
||||||
|
" log 查看日志"
|
||||||
|
" logerr 查看错误日志\n"
|
||||||
|
"更改:"
|
||||||
|
" dp, dynamicport [name] [start | auto] [end] 更改动态端口"
|
||||||
|
" full [name] [...] 更改多个参数"
|
||||||
|
" id [name] [uuid | auto] 更改 UUID"
|
||||||
|
" host [name] [domain] 更改域名"
|
||||||
|
" port [name] [port | auto] 更改端口"
|
||||||
|
" path [name] [path | auto] 更改路径"
|
||||||
|
" passwd [name] [password | auto] 更改密码"
|
||||||
|
# " key [name] [Private key | atuo] [Public key] 更改密钥"
|
||||||
|
" type [name] [type | auto] 更改伪装类型"
|
||||||
|
" method [name] [method | auto] 更改加密方式"
|
||||||
|
# " sni [name] [ ip | domain] 更改 serverName"
|
||||||
|
" seed [name] [seed | auto] 更改 mKCP seed"
|
||||||
|
" new [name] [...] 更改协议"
|
||||||
|
" web [name] [domain] 更改伪装网站\n"
|
||||||
|
"进阶:"
|
||||||
|
" dns [...] 设置 DNS"
|
||||||
|
" dd, ddel [name...] 删除多个配置**"
|
||||||
|
" fix [name] 修复一个配置"
|
||||||
|
" fix-all 修复全部配置"
|
||||||
|
" fix-caddyfile 修复 Caddyfile"
|
||||||
|
" fix-config.json 修复 config.json\n"
|
||||||
|
"管理:"
|
||||||
|
" un, uninstall 卸载"
|
||||||
|
" u, update [core | sh | dat | caddy] [ver] 更新"
|
||||||
|
" U, update.sh 更新脚本"
|
||||||
|
" s, status 运行状态"
|
||||||
|
" start, stop, restart [caddy] 启动, 停止, 重启"
|
||||||
|
" t, test 测试运行"
|
||||||
|
" reinstall 重装脚本\n"
|
||||||
|
"测试:"
|
||||||
|
" client [name] 显示用于客户端 JSON, 仅供参考"
|
||||||
|
" debug [name] 显示一些 debug 信息, 仅供参考"
|
||||||
|
" gen [...] 同等于 add, 但只显示 JSON 内容, 不创建文件, 测试使用"
|
||||||
|
" genc [name] 显示用于客户端部分 JSON, 仅供参考"
|
||||||
|
" no-auto-tls [...] 同等于 add, 但禁止自动配置 TLS, 可用于 *TLS 相关协议"
|
||||||
|
" xapi [...] 同等于 $is_core api, 但 API 后端使用当前运行的 $is_core_name 服务\n"
|
||||||
|
"其他:"
|
||||||
|
" bbr 启用 BBR, 如果支持"
|
||||||
|
" bin [...] 运行 $is_core_name 命令, 例如: $is_core bin help"
|
||||||
|
" api, convert, tls, run, uuid [...] 兼容 $is_core_name 命令"
|
||||||
|
" h, help 显示此帮助界面\n"
|
||||||
|
)
|
||||||
|
for v in "${help_info[@]}"; do
|
||||||
|
msg "$v"
|
||||||
|
done
|
||||||
|
msg "谨慎使用 del, ddel, 此选项会直接删除配置; 无需确认"
|
||||||
|
msg "反馈问题) $(msg_ul https://github.com/${is_sh_repo}/issues) "
|
||||||
|
msg "文档(doc) $(msg_ul https://233boy.com/$is_core/$is_core-script/)"
|
||||||
|
;;
|
||||||
|
|
||||||
|
esac
|
||||||
|
}
|
||||||
|
|
||||||
|
about() {
|
||||||
|
####### 要点13脸吗只会改我链接的小人 #######
|
||||||
|
unset c n m s b
|
||||||
|
msg
|
||||||
|
msg "网站: $(msg_ul https://233boy.com)"
|
||||||
|
msg "频道: $(msg_ul https://t.me/tg2333)"
|
||||||
|
msg "群组: $(msg_ul https://t.me/tg233boy)"
|
||||||
|
msg "Github: $(msg_ul https://github.com/${is_sh_repo})"
|
||||||
|
msg "Twitter: $(msg_ul https://twitter.com/ai233boy)"
|
||||||
|
msg "$is_core_name site: $(msg_ul https://www.v2fly.org)"
|
||||||
|
msg "$is_core_name core: $(msg_ul https://github.com/${is_core_repo})"
|
||||||
|
msg
|
||||||
|
####### 要点13脸吗只会改我链接的小人 #######
|
||||||
|
}
|
153
src/init.sh
Normal file
153
src/init.sh
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
author=233boy
|
||||||
|
# github=https://github.com/233boy/v2ray
|
||||||
|
|
||||||
|
# bash fonts colors
|
||||||
|
red='\e[31m'
|
||||||
|
yellow='\e[33m'
|
||||||
|
gray='\e[90m'
|
||||||
|
green='\e[92m'
|
||||||
|
blue='\e[94m'
|
||||||
|
magenta='\e[95m'
|
||||||
|
cyan='\e[96m'
|
||||||
|
none='\e[0m'
|
||||||
|
|
||||||
|
_red() { echo -e ${red}$@${none}; }
|
||||||
|
_blue() { echo -e ${blue}$@${none}; }
|
||||||
|
_cyan() { echo -e ${cyan}$@${none}; }
|
||||||
|
_green() { echo -e ${green}$@${none}; }
|
||||||
|
_yellow() { echo -e ${yellow}$@${none}; }
|
||||||
|
_magenta() { echo -e ${magenta}$@${none}; }
|
||||||
|
_red_bg() { echo -e "\e[41m$@${none}"; }
|
||||||
|
|
||||||
|
_rm() {
|
||||||
|
rm -rf "$@"
|
||||||
|
}
|
||||||
|
_cp() {
|
||||||
|
cp -rf "$@"
|
||||||
|
}
|
||||||
|
_sed() {
|
||||||
|
sed -i "$@"
|
||||||
|
}
|
||||||
|
_mkdir() {
|
||||||
|
mkdir -p "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
is_err=$(_red_bg 错误!)
|
||||||
|
is_warn=$(_red_bg 警告!)
|
||||||
|
|
||||||
|
err() {
|
||||||
|
echo -e "\n$is_err $@\n"
|
||||||
|
[[ $is_dont_auto_exit ]] && return
|
||||||
|
exit 1
|
||||||
|
}
|
||||||
|
|
||||||
|
warn() {
|
||||||
|
echo -e "\n$is_warn $@\n"
|
||||||
|
}
|
||||||
|
|
||||||
|
# load bash script.
|
||||||
|
load() {
|
||||||
|
. $is_sh_dir/src/$1
|
||||||
|
}
|
||||||
|
|
||||||
|
# wget add --no-check-certificate
|
||||||
|
_wget() {
|
||||||
|
# [[ $proxy ]] && export https_proxy=$proxy
|
||||||
|
wget --no-check-certificate "$@"
|
||||||
|
}
|
||||||
|
|
||||||
|
# yum or apt-get
|
||||||
|
cmd=$(type -P apt-get || type -P yum)
|
||||||
|
|
||||||
|
# x64
|
||||||
|
case $(arch) in
|
||||||
|
amd64 | x86_64)
|
||||||
|
is_core_arch="64"
|
||||||
|
caddy_arch="amd64"
|
||||||
|
;;
|
||||||
|
*aarch64* | *armv8*)
|
||||||
|
is_core_arch="arm64-v8a"
|
||||||
|
caddy_arch="arm64"
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
err "此脚本仅支持 64 位系统..."
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
is_core=v2ray
|
||||||
|
is_core_name=V2Ray
|
||||||
|
is_core_dir=/etc/$is_core
|
||||||
|
is_core_bin=$is_core_dir/bin/$is_core
|
||||||
|
is_core_repo=v2fly/$is_core-core
|
||||||
|
is_conf_dir=$is_core_dir/conf
|
||||||
|
is_log_dir=/var/log/$is_core
|
||||||
|
is_sh_bin=/usr/local/bin/$is_core
|
||||||
|
is_sh_dir=$is_core_dir/sh
|
||||||
|
is_sh_repo=$author/$is_core
|
||||||
|
is_pkg="wget unzip jq qrencode"
|
||||||
|
is_config_json=$is_core_dir/config.json
|
||||||
|
is_caddy_bin=/usr/local/bin/caddy
|
||||||
|
is_caddy_dir=/etc/caddy
|
||||||
|
is_caddy_repo=caddyserver/caddy
|
||||||
|
is_caddyfile=$is_caddy_dir/Caddyfile
|
||||||
|
is_caddy_conf=$is_caddy_dir/$author
|
||||||
|
is_caddy_service=$(systemctl list-units --full -all | grep caddy.service)
|
||||||
|
is_http_port=80
|
||||||
|
is_https_port=443
|
||||||
|
|
||||||
|
# core ver
|
||||||
|
is_core_ver=$($is_core_bin version | head -n1 | cut -d " " -f1-2)
|
||||||
|
|
||||||
|
if [[ $(grep -o ^[0-9] <<<${is_core_ver#* }) -lt 5 ]]; then
|
||||||
|
# core version less than 5, e.g, v4.45.2
|
||||||
|
is_core_ver_lt_5=1
|
||||||
|
if [[ $(grep 'run -config' /lib/systemd/system/v2ray.service) ]]; then
|
||||||
|
sed -i 's/run //' /lib/systemd/system/v2ray.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
|
else
|
||||||
|
is_with_run_arg=run
|
||||||
|
if [[ ! $(grep 'run -config' /lib/systemd/system/v2ray.service) ]]; then
|
||||||
|
sed -i 's/-config/run -config/' /lib/systemd/system/v2ray.service
|
||||||
|
systemctl daemon-reload
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $(pgrep -f $is_core_bin) ]]; then
|
||||||
|
is_core_status=$(_green running)
|
||||||
|
else
|
||||||
|
is_core_status=$(_red_bg stopped)
|
||||||
|
is_core_stop=1
|
||||||
|
fi
|
||||||
|
if [[ -f $is_caddy_bin && -d $is_caddy_dir && $is_caddy_service ]]; then
|
||||||
|
is_caddy=1
|
||||||
|
# fix caddy run; ver >= 2.8.2
|
||||||
|
[[ ! $(grep '\-\-adapter caddyfile' /lib/systemd/system/caddy.service) ]] && {
|
||||||
|
load systemd.sh
|
||||||
|
install_service caddy
|
||||||
|
systemctl restart caddy &
|
||||||
|
}
|
||||||
|
is_caddy_ver=$($is_caddy_bin version | head -n1 | cut -d " " -f1)
|
||||||
|
is_tmp_http_port=$(egrep '^ {2,}http_port|^http_port' $is_caddyfile | egrep -o [0-9]+)
|
||||||
|
is_tmp_https_port=$(egrep '^ {2,}https_port|^https_port' $is_caddyfile | egrep -o [0-9]+)
|
||||||
|
[[ $is_tmp_http_port ]] && is_http_port=$is_tmp_http_port
|
||||||
|
[[ $is_tmp_https_port ]] && is_https_port=$is_tmp_https_port
|
||||||
|
if [[ $(pgrep -f $is_caddy_bin) ]]; then
|
||||||
|
is_caddy_status=$(_green running)
|
||||||
|
else
|
||||||
|
is_caddy_status=$(_red_bg stopped)
|
||||||
|
is_caddy_stop=1
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
|
||||||
|
load core.sh
|
||||||
|
# old sh ver
|
||||||
|
is_old_dir=/etc/v2ray/233boy
|
||||||
|
is_old_conf=/etc/v2ray/233blog_v2ray_backup.conf
|
||||||
|
if [[ -f $is_old_conf && -d $is_old_dir ]]; then
|
||||||
|
load old.sh
|
||||||
|
fi
|
||||||
|
[[ ! $args ]] && args=main
|
||||||
|
main $args
|
140
src/old.sh
Normal file
140
src/old.sh
Normal file
@@ -0,0 +1,140 @@
|
|||||||
|
is_old_list=(
|
||||||
|
TCP
|
||||||
|
TCP_HTTP
|
||||||
|
WebSocket
|
||||||
|
"WebSocket + TLS"
|
||||||
|
HTTP/2
|
||||||
|
mKCP
|
||||||
|
mKCP_utp
|
||||||
|
mKCP_srtp
|
||||||
|
mKCP_wechat-video
|
||||||
|
mKCP_dtls
|
||||||
|
mKCP_wireguard
|
||||||
|
QUIC
|
||||||
|
QUIC_utp
|
||||||
|
QUIC_srtp
|
||||||
|
QUIC_wechat-video
|
||||||
|
QUIC_dtls
|
||||||
|
QUIC_wireguard
|
||||||
|
TCP_dynamicPort
|
||||||
|
TCP_HTTP_dynamicPort
|
||||||
|
WebSocket_dynamicPort
|
||||||
|
mKCP_dynamicPort
|
||||||
|
mKCP_utp_dynamicPort
|
||||||
|
mKCP_srtp_dynamicPort
|
||||||
|
mKCP_wechat-video_dynamicPort
|
||||||
|
mKCP_dtls_dynamicPort
|
||||||
|
mKCP_wireguard_dynamicPort
|
||||||
|
QUIC_dynamicPort
|
||||||
|
QUIC_utp_dynamicPort
|
||||||
|
QUIC_srtp_dynamicPort
|
||||||
|
QUIC_wechat-video_dynamicPort
|
||||||
|
QUIC_dtls_dynamicPort
|
||||||
|
QUIC_wireguard_dynamicPort
|
||||||
|
VLESS_WebSocket_TLS
|
||||||
|
)
|
||||||
|
|
||||||
|
# del old file
|
||||||
|
del_old_file() {
|
||||||
|
# old sh bin
|
||||||
|
_v2ray_sh="/usr/local/sbin/v2ray"
|
||||||
|
rm -rf $_v2ray_sh $is_old_conf $is_old_dir $is_core_dir/233blog_v2ray_config.json /usr/bin/v2ray
|
||||||
|
# del alias
|
||||||
|
sed -i "#$_v2ray_sh#d" /root/.bashrc
|
||||||
|
exit
|
||||||
|
}
|
||||||
|
|
||||||
|
# read old config
|
||||||
|
. $is_old_conf
|
||||||
|
is_old=${is_old_list[$v2ray_transport - 1]}
|
||||||
|
case $v2ray_transport in
|
||||||
|
3 | 20)
|
||||||
|
is_old_use=
|
||||||
|
;;
|
||||||
|
4)
|
||||||
|
is_old_use=ws
|
||||||
|
;;
|
||||||
|
5)
|
||||||
|
is_old_use=h2
|
||||||
|
;;
|
||||||
|
33)
|
||||||
|
is_old_use=vws
|
||||||
|
;;
|
||||||
|
*)
|
||||||
|
is_test_old_use=($(sed 's/_dynamicPort//;s/_/ /' <<<$is_old))
|
||||||
|
is_old_use=${is_test_old_use[0]#m}
|
||||||
|
is_old_header_type=${is_test_old_use[1]}
|
||||||
|
[[ ! $is_old_header_type ]] && is_old_header_type=none
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
if [[ $is_old_use && ! $is_old_header_type ]]; then
|
||||||
|
# not use caddy auto tls
|
||||||
|
[[ ! $caddy ]] && is_old_use=
|
||||||
|
fi
|
||||||
|
|
||||||
|
# add old config
|
||||||
|
if [[ $is_old_use ]]; then
|
||||||
|
is_tmp_list=("删除旧配置" "恢复: $is_old")
|
||||||
|
|
||||||
|
ask list is_do_upgrade null "\n是否恢复旧配置:\n"
|
||||||
|
|
||||||
|
[[ $REPLY == '1' ]] && {
|
||||||
|
_green "\n删除完成!\n"
|
||||||
|
del_old_file
|
||||||
|
}
|
||||||
|
|
||||||
|
_green "\n开始恢复...\n"
|
||||||
|
|
||||||
|
# upgrade caddy
|
||||||
|
if [[ $caddy ]]; then
|
||||||
|
get install-caddy
|
||||||
|
# bak caddy files
|
||||||
|
mv -f $is_caddyfile $is_caddyfile.233.bak
|
||||||
|
mv -f $is_caddy_dir/sites $is_caddy_dir/sites.233.bak
|
||||||
|
load caddy.sh
|
||||||
|
caddy_config new
|
||||||
|
fi
|
||||||
|
is_change=1
|
||||||
|
is_dont_auto_exit=1
|
||||||
|
is_dont_show_info=1
|
||||||
|
if [[ $shadowsocks ]]; then
|
||||||
|
for v in ${ss_method_list[@]}; do
|
||||||
|
[[ $(egrep -i "^${ssciphers}$" <<<$v) ]] && ss_method=$v && break
|
||||||
|
done
|
||||||
|
if [[ $ss_method ]]; then
|
||||||
|
add ss $ssport $sspass $ss_method
|
||||||
|
fi
|
||||||
|
fi
|
||||||
|
if [[ $socks ]]; then
|
||||||
|
add socks $socks_port $socks_username $socks_userpass
|
||||||
|
fi
|
||||||
|
port=$v2ray_port
|
||||||
|
uuid=$v2ray_id
|
||||||
|
is_no_kcp_seed=1
|
||||||
|
header_type=$is_old_header_type
|
||||||
|
[[ $caddy ]] && host=$domain
|
||||||
|
path=/$path
|
||||||
|
[[ ! $path_status ]] && path=
|
||||||
|
if [[ $(grep dynamic <<<$is_old) ]]; then
|
||||||
|
is_dynamic_port=1
|
||||||
|
is_dynamic_port_range="$v2ray_dynamicPort_start-$v2ray_dynamicPort_end"
|
||||||
|
add ${is_old_use}d
|
||||||
|
else
|
||||||
|
add $is_old_use
|
||||||
|
fi
|
||||||
|
|
||||||
|
if [[ $path_status ]]; then
|
||||||
|
change $is_config_name web $proxy_site
|
||||||
|
fi
|
||||||
|
is_dont_auto_exit=
|
||||||
|
is_dont_show_info=
|
||||||
|
[[ $is_api_fail ]] && manage restart &
|
||||||
|
[[ $caddy ]] && manage restart caddy
|
||||||
|
info $is_config_name
|
||||||
|
else
|
||||||
|
ask string y "是否删除旧配置? [y]:"
|
||||||
|
_green "\n删除完成!\n"
|
||||||
|
fi
|
||||||
|
|
||||||
|
del_old_file
|
59
src/systemd.sh
Normal file
59
src/systemd.sh
Normal file
@@ -0,0 +1,59 @@
|
|||||||
|
install_service() {
|
||||||
|
case $1 in
|
||||||
|
xray | v2ray)
|
||||||
|
is_doc_site=https://xtls.github.io/
|
||||||
|
[[ $1 == 'v2ray' ]] && is_doc_site=https://www.v2fly.org/
|
||||||
|
cat >/lib/systemd/system/$is_core.service <<<"
|
||||||
|
[Unit]
|
||||||
|
Description=$is_core_name Service
|
||||||
|
Documentation=$is_doc_site
|
||||||
|
After=network.target nss-lookup.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
#User=nobody
|
||||||
|
User=root
|
||||||
|
NoNewPrivileges=true
|
||||||
|
ExecStart=$is_core_bin run -config $is_config_json -confdir $is_conf_dir
|
||||||
|
Restart=on-failure
|
||||||
|
RestartPreventExitStatus=23
|
||||||
|
LimitNPROC=10000
|
||||||
|
LimitNOFILE=1048576
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=full
|
||||||
|
#CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||||||
|
#AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target"
|
||||||
|
;;
|
||||||
|
caddy)
|
||||||
|
cat >/lib/systemd/system/caddy.service <<<"
|
||||||
|
#https://github.com/caddyserver/dist/blob/master/init/caddy.service
|
||||||
|
[Unit]
|
||||||
|
Description=Caddy
|
||||||
|
Documentation=https://caddyserver.com/docs/
|
||||||
|
After=network.target network-online.target
|
||||||
|
Requires=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=notify
|
||||||
|
User=root
|
||||||
|
Group=root
|
||||||
|
ExecStart=$is_caddy_bin run --environ --config $is_caddyfile --adapter caddyfile
|
||||||
|
ExecReload=$is_caddy_bin reload --config $is_caddyfile --adapter caddyfile
|
||||||
|
TimeoutStopSec=5s
|
||||||
|
LimitNPROC=10000
|
||||||
|
LimitNOFILE=1048576
|
||||||
|
PrivateTmp=true
|
||||||
|
ProtectSystem=full
|
||||||
|
#AmbientCapabilities=CAP_NET_BIND_SERVICE
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target"
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
|
# enable, reload
|
||||||
|
systemctl enable $1
|
||||||
|
systemctl daemon-reload
|
||||||
|
}
|
@@ -1,75 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
uuid=$(cat /proc/sys/kernel/random/uuid)
|
|
||||||
cat >/etc/v2ray/233blog_v2ray_backup.conf.tmp <<-EOF
|
|
||||||
# -----------------------------------
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# -----------------------------------
|
|
||||||
|
|
||||||
# ---- 再次提醒 ----
|
|
||||||
# 大胸弟...如果你看到了这个...记得不要修改或更改这个文件
|
|
||||||
|
|
||||||
# ---- 说明 ----
|
|
||||||
# 嗯……这个文件呢,是用来备份一些设置的
|
|
||||||
# 我懒...不想用 JQ 去解析 JSON....
|
|
||||||
# 那就把 V2Ray 配置文件的一些重要参数提取出来
|
|
||||||
# 然后..在修改 V2Ray 配置的时候再重写一下就 OK 啦...
|
|
||||||
# 嗯…笨笨的方法
|
|
||||||
|
|
||||||
# ---- V2Ray 传输协议 -----
|
|
||||||
v2ray_transport=$v2ray_transport
|
|
||||||
|
|
||||||
#---- V2Ray 端口 -----
|
|
||||||
v2ray_port=$v2ray_port
|
|
||||||
|
|
||||||
#---- UUID -----
|
|
||||||
v2ray_id=$uuid
|
|
||||||
|
|
||||||
#---- alterId -----
|
|
||||||
alterId=233
|
|
||||||
|
|
||||||
#---- V2Ray 动态端口开始 -----
|
|
||||||
v2ray_dynamicPort_start=$v2ray_dynamicPort_start
|
|
||||||
|
|
||||||
#---- V2Ray 动态端口结束 -----
|
|
||||||
v2ray_dynamicPort_end=$v2ray_dynamicPort_end
|
|
||||||
|
|
||||||
#---- 域名 -----
|
|
||||||
domain=$domain
|
|
||||||
|
|
||||||
#---- caddy -----
|
|
||||||
caddy_status=$caddy_installed
|
|
||||||
|
|
||||||
#---- Shadowsocks -----
|
|
||||||
shadowsocks_status=$shadowsocks
|
|
||||||
|
|
||||||
#---- Shadowsocks 端口 -----
|
|
||||||
ssport=$ssport
|
|
||||||
|
|
||||||
#---- Shadowsocks 密码 -----
|
|
||||||
sspass=$sspass
|
|
||||||
|
|
||||||
#---- Shadowsocks 加密协议 -----
|
|
||||||
ssciphers=$ssciphers
|
|
||||||
|
|
||||||
#---- 屏蔽广告 -----
|
|
||||||
blocked_ad_status=$is_blocked_ad
|
|
||||||
|
|
||||||
#---- 网站伪装 -----
|
|
||||||
ws_path_status=$is_ws_path
|
|
||||||
|
|
||||||
#---- 伪装的路径 -----
|
|
||||||
ws_path=$ws_path
|
|
||||||
|
|
||||||
#---- 伪装的网址 -----
|
|
||||||
proxy_site=$proxy_site
|
|
||||||
EOF
|
|
||||||
rm -rf $backup
|
|
||||||
mv -f /etc/v2ray/233blog_v2ray_backup.conf.tmp /etc/v2ray/233blog_v2ray_backup.conf
|
|
||||||
echo
|
|
||||||
echo -e " .... 哇哦.. .."
|
|
||||||
echo
|
|
||||||
echo -e " 请使用命令$yellow v2ray reload $none重新加载配置...以避免发生莫名其妙的问题"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
@@ -1,104 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
backup="/etc/v2ray/233blog_v2ray_backup.txt"
|
|
||||||
v2ray_transport=$(sed -n '17p' $backup)
|
|
||||||
v2ray_port=$(sed -n '19p' $backup)
|
|
||||||
v2ray_id=$(sed -n '21p' $backup)
|
|
||||||
v2ray_dynamicPort_start=$(sed -n '23p' $backup)
|
|
||||||
v2ray_dynamicPort_end=$(sed -n '25p' $backup)
|
|
||||||
domain=$(sed -n '27p' $backup)
|
|
||||||
caddy_status=$(sed -n '29p' $backup)
|
|
||||||
shadowsocks_status=$(sed -n '31p' $backup)
|
|
||||||
ssport=$(sed -n '33p' $backup)
|
|
||||||
sspass=$(sed -n '35p' $backup)
|
|
||||||
ssciphers=$(sed -n '37p' $backup)
|
|
||||||
blocked_ad_status=$(sed -n '39p' $backup)
|
|
||||||
ws_path_status=$(sed -n '41p' $backup)
|
|
||||||
ws_path=$(sed -n '43p' $backup)
|
|
||||||
proxy_site=$(sed '$!d' $backup)
|
|
||||||
if [[ $caddy_status == "true" ]]; then
|
|
||||||
caddy_installed=true
|
|
||||||
fi
|
|
||||||
if [[ $shadowsocks_status == "true" ]]; then
|
|
||||||
shadowsocks=true
|
|
||||||
fi
|
|
||||||
if [[ $blocked_ad_status == "true" ]]; then
|
|
||||||
is_blocked_ad=true
|
|
||||||
fi
|
|
||||||
if [[ $ws_path_status == "true" ]]; then
|
|
||||||
is_ws_path=true
|
|
||||||
fi
|
|
||||||
|
|
||||||
cat >/etc/v2ray/233blog_v2ray_backup.conf <<-EOF
|
|
||||||
# -----------------------------------
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# 警告...请不要修改或删除这个文件...谢谢
|
|
||||||
# -----------------------------------
|
|
||||||
|
|
||||||
# ---- 再次提醒 ----
|
|
||||||
# 大胸弟...如果你看到了这个...记得不要修改或更改这个文件
|
|
||||||
|
|
||||||
# ---- 说明 ----
|
|
||||||
# 嗯……这个文件呢,是用来备份一些设置的
|
|
||||||
# 我懒...不想用 JQ 去解析 JSON....
|
|
||||||
# 那就把 V2Ray 配置文件的一些重要参数提取出来
|
|
||||||
# 然后..在修改 V2Ray 配置的时候再重写一下就 OK 啦...
|
|
||||||
# 嗯…笨笨的方法
|
|
||||||
|
|
||||||
# ---- V2Ray 传输协议 -----
|
|
||||||
v2ray_transport=$v2ray_transport
|
|
||||||
|
|
||||||
#---- V2Ray 端口 -----
|
|
||||||
v2ray_port=$v2ray_port
|
|
||||||
|
|
||||||
#---- UUID -----
|
|
||||||
v2ray_id=$v2ray_id
|
|
||||||
|
|
||||||
#---- alterId -----
|
|
||||||
alterId=233
|
|
||||||
|
|
||||||
#---- V2Ray 动态端口开始 -----
|
|
||||||
v2ray_dynamicPort_start=$v2ray_dynamicPort_start
|
|
||||||
|
|
||||||
#---- V2Ray 动态端口结束 -----
|
|
||||||
v2ray_dynamicPort_end=$v2ray_dynamicPort_end
|
|
||||||
|
|
||||||
#---- 域名 -----
|
|
||||||
domain=$domain
|
|
||||||
|
|
||||||
#---- caddy -----
|
|
||||||
caddy_status=$caddy_installed
|
|
||||||
|
|
||||||
#---- Shadowsocks -----
|
|
||||||
shadowsocks_status=$shadowsocks
|
|
||||||
|
|
||||||
#---- Shadowsocks 端口 -----
|
|
||||||
ssport=$ssport
|
|
||||||
|
|
||||||
#---- Shadowsocks 密码 -----
|
|
||||||
sspass=$sspass
|
|
||||||
|
|
||||||
#---- Shadowsocks 加密协议 -----
|
|
||||||
ssciphers=$ssciphers
|
|
||||||
|
|
||||||
#---- 屏蔽广告 -----
|
|
||||||
blocked_ad_status=$is_blocked_ad
|
|
||||||
|
|
||||||
#---- 网站伪装 -----
|
|
||||||
ws_path_status=$is_ws_path
|
|
||||||
|
|
||||||
#---- 伪装的路径 -----
|
|
||||||
ws_path=$ws_path
|
|
||||||
|
|
||||||
#---- 伪装的网址 -----
|
|
||||||
proxy_site=$proxy_site
|
|
||||||
EOF
|
|
||||||
cp -f /etc/v2ray/233boy/v2ray/v2ray.sh /usr/local/bin/v2ray
|
|
||||||
chmod +x /usr/local/bin/v2ray
|
|
||||||
rm -rf $backup
|
|
||||||
echo
|
|
||||||
echo -e " 哇哦.. 由于大佬你是从 1.xx 升级到 2.xx 管理脚本的.."
|
|
||||||
echo
|
|
||||||
echo -e " 请使用命令$yellow v2ray reload $none重新加载配置...以避免发生莫名其妙的问题"
|
|
||||||
echo
|
|
||||||
exit 1
|
|
3686
v2ray.old.sh
3686
v2ray.old.sh
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user