[ xray ] 优化xray部分,新增搬瓦工-洛杉矶节点

This commit is contained in:
zeaslity
2024-04-16 15:44:33 +08:00
parent 714ff01639
commit 907474ebf3
23 changed files with 106 additions and 665 deletions

View File

@@ -1,7 +1,8 @@
#!/bin/bash
kernel_config_file=/etc/sysctl.d/import_kernel.conf
cat >>/etc/sysctl.d/import_kernel.conf <<EOF
cat >> ${kernel_config_file} <<EOF
# 开启bbr
net.ipv4.tcp_fastopen = 3
net.core.default_qdisc = fq
@@ -29,4 +30,6 @@ net.ipv4.route.flush=1
net.ipv4.neigh.default.gc_stale_time = 120
# 增加哈希表大小可以提高路由查找性能。
net.ipv4.neigh.default.hash_buckets = 1024
EOF
EOF
sysctl -p ${kernel_config_file}