From 3fafa3fc21e8fa0da16471a5722d75ac43c31890 Mon Sep 17 00:00:00 2001 From: xVRVx <63975481+xVRVx@users.noreply.github.com> Date: Tue, 3 Feb 2026 23:01:04 +0300 Subject: [PATCH] Add files via upload --- autoXRAY1.sh | 14 +++++++++++++- autoXRAYselfRUbrEUxhttp.sh | 14 +++++++++++++- 2 files changed, 26 insertions(+), 2 deletions(-) diff --git a/autoXRAY1.sh b/autoXRAY1.sh index c166eca..ab84f00 100644 --- a/autoXRAY1.sh +++ b/autoXRAY1.sh @@ -8,7 +8,7 @@ if [ -z "$DOMAIN" ]; then fi echo "Обновление и установка необходимых пакетов..." -apt update && apt install -y jq dnsutils +apt update && apt install curl jq dnsutils -y LOCAL_IP=$(hostname -I | awk '{print $1}') @@ -27,6 +27,18 @@ if [ "$LOCAL_IP" != "$DNS_IP" ]; then fi +# Включаем BBR +bbr=$(sysctl -a | grep net.ipv4.tcp_congestion_control) +if [ "$bbr" = "net.ipv4.tcp_congestion_control = bbr" ]; then +echo "BBR уже запущен" +else +echo "net.core.default_qdisc=fq" >> /etc/sysctl.d/99-autoXRAY.conf +echo "net.ipv4.tcp_congestion_control=bbr" /etc/sysctl.d/99-autoXRAY.conf +sysctl --system +echo "BBR активирован" +fi + + apt install nginx -y systemctl enable --now nginx diff --git a/autoXRAYselfRUbrEUxhttp.sh b/autoXRAYselfRUbrEUxhttp.sh index 03924f4..117e477 100644 --- a/autoXRAYselfRUbrEUxhttp.sh +++ b/autoXRAYselfRUbrEUxhttp.sh @@ -81,7 +81,7 @@ SPX="${params[spx]}"; echo "SPX=$SPX" echo "Обновление и установка необходимых пакетов..." -apt update && apt install -y jq dnsutils +apt update && apt install curl jq dnsutils -y LOCAL_IP=$(hostname -I | awk '{print $1}') @@ -100,6 +100,18 @@ if [ "$LOCAL_IP" != "$DNS_IP" ]; then fi +# Включаем BBR +bbr=$(sysctl -a | grep net.ipv4.tcp_congestion_control) +if [ "$bbr" = "net.ipv4.tcp_congestion_control = bbr" ]; then +echo "BBR уже запущен" +else +echo "net.core.default_qdisc=fq" >> /etc/sysctl.d/99-autoXRAY.conf +echo "net.ipv4.tcp_congestion_control=bbr" /etc/sysctl.d/99-autoXRAY.conf +sysctl --system +echo "BBR активирован" +fi + + apt install nginx -y systemctl enable --now nginx