[ clash ] 新增clash-sub

This commit is contained in:
zeaslity
2024-03-21 11:39:46 +08:00
parent 02022603ed
commit 7883ddeba5
11 changed files with 395 additions and 739 deletions

View File

@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="dataSourceStorageLocal" created-in="IU-233.11799.241">
<component name="dataSourceStorageLocal" created-in="IU-233.14475.28">
<data-source name="腾讯云-成都" uuid="79c9466f-d8a3-418a-b54a-f6e314306a0c">
<database-info product="MySQL" version="8.0.27" jdbc-version="4.2" driver-name="MySQL Connector/J" driver-version="mysql-connector-java-8.0.25 (Revision: 08be9e9b4cba6aa115f9b27b215887af40b159e0)" dbms="MYSQL" exact-version="8.0.27" exact-driver-version="8.0">
<extra-name-characters>#@</extra-name-characters>

View File

@@ -323,12 +323,12 @@ get_ipv4_info() {
FunctionStart "开始收集服务器IP信息"
# public ip info
net_provider="$(wget -q -T10 -O- ipinfo.io/org)"
city="$(wget -q -T10 -O- ipinfo.io/city)"
country="$(wget -q -T10 -O- ipinfo.io/country)"
region="$(wget -q -T10 -O- ipinfo.io/region)"
public_ipv4="$(wget -q -T10 -O- ipinfo.io/ip)"
public_ipv6="$(curl -q --max-time 5 -6 https://ifconfig.co/ip)"
net_provider="$(wget -q --timeout=2 -O- ipinfo.io/org)"
city="$(wget -q --timeout=2 -O- ipinfo.io/city)"
country="$(wget -q --timeout=2 -O- ipinfo.io/country)"
region="$(wget -q --timeout=2 -O- ipinfo.io/region)"
public_ipv4="$(wget -q --timeout=2 -O- ipinfo.io/ip)"
public_ipv6="$(curl -q --max-time 2 -6 https://ifconfig.co/ip)"
if [[ $city -eq "" ]]; then
city="Chengdu"

View File

@@ -0,0 +1,28 @@
#!/bin/bash
target_minio="http://42.192.52.227:9000"
local_minio="http://localhost:9000"
minio_user_name="cmii"
minio_user_pass="B#923fC7mk"
bucket_name="octopus"
main() {
# alies
# mc alias set local ${local_minio} ${minio_user_name} ${minio_user_pass}
# mc alias set public ${target_minio} ${minio_user_name} ${minio_user_pass}
mc mb public/${bucket_name}
echo ""
# ls
local file
for file in $(mc ls local/${bucket_name}/ | awk '{print$6}')
do
echo "the current file is ${file}"
mc cp local/$bucket_name/"$file" public/$bucket_name/"$file"
done
}
main

View File

@@ -0,0 +1,23 @@
#!/bin/bash
install_pre_binary(){
apt-get update
sudo apt-get install -y apt-transport-https ca-certificates curl
curl -fsSL https://pkgs.k8s.io/core:/stable:/v1.24/deb/Release.key | sudo gpg --dearmor -o /etc/apt/keyrings/kubernetes-apt-keyring.gpg
echo 'deb [signed-by=/etc/apt/keyrings/kubernetes-apt-keyring.gpg] https://pkgs.k8s.io/core:/stable:/v1.24/deb/ /' | sudo tee /etc/apt/sources.list.d/kubernetes.list
sudo apt-get update
sudo apt-get install -y kubelet kubeadm kubectl
apt-mark hold kubelet kubeadm kubectl
}
boot_up_cluster(){
kubeadm init --apiserver-advertise-address=10.250.0.183 --kubernetes-version v1.24.8 --image-repository=registry.aliyuncs.com/google_containers --service-cidr=10.96.0.0/16 --control-plane-endpoint=master-node --upload-certs --v=6
}
kubeadm init --kubernetes-version v1.24.8 --image-repository=registry.aliyuncs.com/google_containers

View File

@@ -0,0 +1,8 @@
vmess://eyJ2IjoiMiIsInBzIjoidXMtY2VudGUtZnJlZSIsImFkZCI6Im5vcnRoZmxhbmsuMTA3NDIxLnh5eiIsInBvcnQiOjQ0MywiaWQiOiJkZTA0YWRkOS01YzY4LThiYWItOTUwYy0wOGNkNTMyMGRmMTgiLCJhaWQiOjAsInNjeSI6ImF1dG8iLCJuZXQiOiJ3cyIsInBhdGgiOiIvdm1lc3MiLCJ0bHMiOiJ0bHMifQ==
trojan://V2ryStr0ngP0ss@140.238.14.103:443?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Seoul-Trojan
trojan://V2ryStr0ngP0ss@140.238.14.103:19997?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Osaka-Trojan
trojan://V2ryStr0ngP0ss@140.238.14.103:19999?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Tokyo-Trojan
trojan://V2ryStr0ngP0ss@140.238.14.103:19998?type=tcp&sni=xx.s4.cc.hh.107421.xyz&allowInsecure=0&host=xx.s4.cc.hh.107421.xyzh2,http/1.1#Pheonix-Trojan
trojan://V2ryStr0ngP0ss@146.56.147.12:30000?type=tcp&sni=xx.s0.yy.ac.107421.xyz&allowInsecure=0&host=xx.s0.yy.ac.107421.xyzh2,http/1.1#Seoul-arm64-01-Trojan
trojan://V2ryStr0ngP0ss@43.154.83.213:443?type=tcp&sni=xx.tc.hk.go.107421.xyz&allowInsecure=0h2,http/1.1#Tencent-Hkong-Trojan
vless://fc903f5d-a007-482b-928c-570da9a851f9@43.154.83.213:29999?security=reality&flow=xtls-rprx-vision&type=tcp&sni=xx.tc.hk.go.107421.xyz&fp=chrome&pbk=IBKk7cbbpnarU9sxJx84tXztytBFH2oCNfy7FlLVjDg&sid=ad570cbfab&encryption=none&headerType=none#Tencent-HK-11.24

View File

@@ -1,207 +0,0 @@
{
"log": {
"access": "/var/log/xray/access.log",
"error": "/var/log/xray/error.log",
"loglevel": "warning"
},
"inbounds": [
{
"protocol": "trojan",
"listen": "0.0.0.0",
"port": 443,
"settings": {
"clients": [
{
"password": "V2ryStr0ngP0ss",
"email": "love@v2fly.org"
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
}
]
}
},
"tag": "Seoul-amd64-04"
},
{
"protocol": "trojan",
"listen": "0.0.0.0",
"port": 19999,
"settings": {
"clients": [
{
"password": "V2ryStr0ngP0ss",
"email": "love@v2fly.org"
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
}
]
}
},
"tag": "Seoul-amd64-04->Tokyo-amd64-02"
},
{
"protocol": "trojan",
"listen": "0.0.0.0",
"port": 19998,
"settings": {
"clients": [
{
"password": "V2ryStr0ngP0ss",
"email": "love@v2fly.org"
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
}
]
}
},
"tag": "Seoul-amd64-04->Phoenix-amd64-02"
},
{
"protocol": "trojan",
"listen": "0.0.0.0",
"port": 19997,
"settings": {
"clients": [
{
"password": "V2ryStr0ngP0ss",
"email": "love@v2fly.org"
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"alpn": [
"http/1.1"
],
"certificates": [
{
"certificateFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/fullchain.cer",
"keyFile": "/root/.acme.sh/xx.s4.cc.hh.107421.xyz_ecc/xx.s4.cc.hh.107421.xyz.key"
}
]
}
},
"tag": "Seoul-amd64-04->London-amd64-01"
}
],
"outbounds": [
{
"protocol": "freedom"
},
{
"protocol": "freedom",
"tag": "Seoul-amd64-04"
},
{
"protocol": "blackhole",
"tag": "block"
},
{
"tag": "Seoul-amd64-04->Tokyo-amd64-02",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "140.238.52.228",
"port": 1234
}
]
}
},
{
"tag": "Seoul-amd64-04->Phoenix-amd64-02",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "129.146.171.163",
"port": 1234
}
]
}
},
{
"tag": "Seoul-amd64-04->London-amd64-01",
"protocol": "socks",
"settings": {
"servers": [
{
"address": "141.147.99.91",
"port": 1234
}
]
}
}
],
"routing": {
"domainStrategy": "IPIfNonMatch",
"rules": [
{
"type": "field",
"inboundTag": [
"Seoul-amd64-04"
],
"outboundTag": "Seoul-amd64-04"
},
{
"type": "field",
"inboundTag": [
"Seoul-amd64-04->Tokyo-amd64-02"
],
"outboundTag": "Seoul-amd64-04->Tokyo-amd64-02"
},
{
"type": "field",
"inboundTag": [
"Seoul-amd64-04->Phoenix-amd64-02"
],
"outboundTag": "Seoul-amd64-04->Phoenix-amd64-02"
},
{
"type": "field",
"inboundTag": [
"Seoul-amd64-04->London-amd64-01"
],
"outboundTag": "Seoul-amd64-04->London-amd64-01"
}
]
}
}

View File

@@ -0,0 +1,93 @@
{
"inbounds": [
{
"tag": "socks",
"port": 22888,
"listen": "0.0.0.0",
"protocol": "socks",
"sniffing": {
"enabled": true,
"destOverride": [
"http",
"tls"
],
"routeOnly": false
},
"settings": {
"auth": "password",
"accounts": [
{
"user": "zeaslity",
"pass": "lovemm.23"
}
],
"udp": true,
"allowTransparent": false
}
}
],
"outbounds": [
{
"tag": "proxy",
"protocol": "trojan",
"settings": {
"servers": [
{
"address": "140.238.14.103",
"method": "chacha20",
"ota": false,
"password": "V2ryStr0ngP0ss",
"port": 443,
"level": 1
}
]
},
"streamSettings": {
"network": "tcp",
"security": "tls",
"tlsSettings": {
"allowInsecure": false,
"serverName": "xx.s4.cc.hh.107421.xyz",
"show": false
}
},
"mux": {
"enabled": false,
"concurrency": -1
}
},
{
"tag": "direct",
"protocol": "freedom",
"settings": {}
},
{
"tag": "block",
"protocol": "blackhole",
"settings": {
"response": {
"type": "http"
}
}
}
],
"dns": {
"servers": [
"1.1.1.1",
"8.8.8.8"
]
},
"routing": {
"domainStrategy": "IPIfNonMatch",
"domainMatcher": "mph",
"rules": [
{
"type": "field",
"outboundTag": "direct",
"inboundTag": [
"proxy"
]
}
]
}
}

View File

@@ -1,8 +0,0 @@
vmess://ew0KICAidiI6ICIyIiwNCiAgInBzIjogInVzLWNlbnRlLWZyZWUiLA0KICAiYWRkIjogIm5vcnRoZmxhbmsuMTA3NDIxLnh5eiIsDQogICJwb3J0IjogIjQ0MyIsDQogICJpZCI6ICJkZTA0YWRkOS01YzY4LThiYWItOTUwYy0wOGNkNTMyMGRmMTgiLA0KICAiYWlkIjogIjAiLA0KICAic2N5IjogImF1dG8iLA0KICAibmV0IjogIndzIiwNCiAgInR5cGUiOiAibm9uZSIsDQogICJob3N0IjogIiIsDQogICJwYXRoIjogIi92bWVzcyIsDQogICJ0bHMiOiAidGxzIiwNCiAgInNuaSI6ICIiLA0KICAiYWxwbiI6ICIiDQp9
trojan://V2ryStr0ngP0ss@140.238.14.103:443?security=tls&sni=xx.s4.cc.hh.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=chrome&type=tcp&headerType=none&host=xx.s4.cc.hh.107421.xyz#Seoul-Trojan
trojan://V2ryStr0ngP0ss@140.238.14.103:19997?security=tls&sni=xx.s4.cc.hh.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=chrome&type=tcp&headerType=none&host=xx.s4.cc.hh.107421.xyz#Osaka-Trojan
trojan://V2ryStr0ngP0ss@140.238.14.103:19999?security=tls&sni=xx.s4.cc.hh.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=chrome&type=tcp&headerType=none&host=xx.s4.cc.hh.107421.xyz#Tokyo-Trojan
trojan://V2ryStr0ngP0ss@140.238.14.103:19998?security=tls&sni=xx.s4.cc.hh.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=chrome&type=tcp&headerType=none&host=xx.s4.cc.hh.107421.xyz#Pheonix-Trojan
trojan://V2ryStr0ngP0ss@146.56.147.12:30000?security=tls&sni=xx.s0.yy.ac.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=firefox&type=tcp&headerType=none&host=xx.s0.yy.ac.107421.xyz#Seoul-arm64-01-Trojan
trojan://V2ryStr0ngP0ss@43.154.83.213:443?security=tls&sni=xx.tc.hk.go.107421.xyz&alpn=h2%2Chttp%2F1.1&fp=firefox&type=tcp&headerType=none#Tencent-Hkong-Trojan
vless://fc903f5d-a007-482b-928c-570da9a851f9@43.154.83.213:29999?encryption=none&flow=xtls-rprx-vision&security=reality&sni=xx.tc.hk.go.107421.xyz&fp=chrome&pbk=IBKk7cbbpnarU9sxJx84tXztytBFH2oCNfy7FlLVjDg&sid=ad570cbfab&type=tcp&headerType=none#Tencent-HK-11.24

View File

@@ -0,0 +1,32 @@
#!/bin/bash
cat >>/etc/sysctl.d/import_kernel.conf <<EOF
# 开启bbr
net.ipv4.tcp_fastopen = 3
net.core.default_qdisc = fq
net.ipv4.tcp_congestion_control = bbr
#增加缓冲区大小可以提高吞吐量
net.core.rmem_max = 16777216
net.core.wmem_max = 16777216
#缩短超时时间可以提高响应速度。
net.ipv4.tcp_fin_timeout = 15
net.ipv4.tcp_keepalive_time = 1200
net.ipv4.tcp_keepalive_probes = 5
net.ipv4.tcp_keepalive_intvl = 15
# 避免IP碎片化可以提高性能。
net.ipv4.ipfrag_low_thresh = 65536
net.ipv4.ipfrag_high_thresh = 131072
# TCP SACK选择确认在路由器环境中通常不必要。
net.ipv4.tcp_sack = 0
# 快速转发可以提高转发性能。
net.ipv4.ip_forward_fast_path = 1
# 禁用日志记录可以节省资源。
net.ipv4.conf.all.log_martians = 0
net.ipv4.conf.default.log_martians = 0
net.ipv4.route.flush=1
# 缩短ARP超时时间可以提高ARP响应速度。
net.ipv4.neigh.default.gc_stale_time = 120
# 增加哈希表大小可以提高路由查找性能。
net.ipv4.neigh.default.hash_buckets = 1024
EOF

View File

@@ -0,0 +1,6 @@
{
"时间": "[receive_time]",
"来源": "[card_slot]",
"发件人": "[from]",
"内容": "[org_content]"
}