From 455d5bc2197c157a06d5a5851a11797fcbe71d95 Mon Sep 17 00:00:00 2001 From: xVRVx <63975481+xVRVx@users.noreply.github.com> Date: Sat, 7 Feb 2026 12:40:38 +0300 Subject: [PATCH] Add files via upload --- old/autoXRAYselfstealConfRUbrEU.sh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/old/autoXRAYselfstealConfRUbrEU.sh b/old/autoXRAYselfstealConfRUbrEU.sh index e51f48b..e76fd28 100644 --- a/old/autoXRAYselfstealConfRUbrEU.sh +++ b/old/autoXRAYselfstealConfRUbrEU.sh @@ -97,12 +97,20 @@ 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/999-autoXRAY.conf + echo "net.core.default_qdisc=fq" > /etc/sysctl.d/999-autoXRAY.conf echo "net.ipv4.tcp_congestion_control=bbr" >> /etc/sysctl.d/999-autoXRAY.conf sysctl --system echo "BBR активирован" fi +cat < /etc/security/limits.d/99-autoXRAY.conf +* soft nofile 65535 +* hard nofile 65535 +root soft nofile 65535 +root hard nofile 65535 +EOF +ulimit -n 65535 +echo -e "Лимиты применены. Текущий ulimit -n: $(ulimit -n)" apt install nginx -y