Skip to content

Commit

Permalink
feat(脚本): 屏蔽BT
Browse files Browse the repository at this point in the history
  • Loading branch information
mack-a committed Dec 1, 2020
1 parent 045e15b commit c08bd8b
Showing 1 changed file with 114 additions and 1 deletion.
115 changes: 114 additions & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -1651,12 +1651,30 @@ initV2RayConfig(){
}
}
],
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"tag":"direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"dns": {
Expand Down Expand Up @@ -1813,12 +1831,30 @@ EOF
}
}
],
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"tag":"direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"dns": {
Expand Down Expand Up @@ -1853,9 +1889,30 @@ EOF
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}
EOF
cat << EOF > /etc/v2ray-agent/v2ray/conf/09_routing.json
{
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
}
}
EOF
# dns
cat << EOF > /etc/v2ray-agent/v2ray/conf/11_dns.json
Expand Down Expand Up @@ -2268,12 +2325,30 @@ initXrayConfig(){
}
}
],
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
},
"outbounds": [
{
"tag":"direct",
"protocol": "freedom",
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
],
"dns": {
Expand All @@ -2299,6 +2374,23 @@ EOF
}
}
EOF
cat << EOF > /etc/v2ray-agent/xray/conf/09_routing.json
{
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
}
}
EOF

# outbounds
cat << EOF > /etc/v2ray-agent/xray/conf/10_outbounds.json
{
Expand All @@ -2308,9 +2400,30 @@ EOF
"settings": {
"domainStrategy": "UseIPv4"
}
},
{
"tag": "blocked",
"protocol": "blackhole",
"settings": {}
}
]
}
EOF
cat << EOF > /etc/v2ray-agent/v2ray/conf/09_routing.json
{
"routing":{
"domainStrategy": "AsIs",
"rules": [
{
"type": "field",
"protocol": [
"bittorrent"
],
"outboundTag": "blocked"
}
]
}
}
EOF
# dns
cat << EOF > /etc/v2ray-agent/xray/conf/11_dns.json
Expand Down Expand Up @@ -3550,7 +3663,7 @@ menu(){
cd
echoContent red "\n=============================================================="
echoContent green "作者:mack-a"
echoContent green "当前版本:v2.1.17"
echoContent green "当前版本:v2.1.18"
echoContent green "Github:https://github.com/mack-a/v2ray-agent"
echoContent green "描述:七合一共存脚本"
echoContent red "=============================================================="
Expand Down

0 comments on commit c08bd8b

Please sign in to comment.