- scripts/3x-ui.sh: официальная 3X-UI v3.8.5 её установщиком, сертификат Let's Encrypt на IP для панели, подключение VLESS REALITY через API, подбор сайта для маскировки, ufw, ссылка и QR-код - scripts/hysteria2.sh: официальный Hysteria 2.12.3 с проверкой sha256, Let's Encrypt или самоподписанный сертификат с pinSHA256, сайт-заглушка, ufw, команда hy2 для управления пользователями - Инструкции переписаны под скрипты, старые (x-ui-pro, Blitz) удалены Проверено: сквозные тесты в контейнерах с systemd и подключение через интернет к тестовому серверу (VLESS REALITY и Hysteria2).
1 line
4.1 KiB
XML
1 line
4.1 KiB
XML
<svg xmlns="http://www.w3.org/2000/svg" width="860" height="368" viewBox="0 0 860 368" role="img" aria-label="root@vps: ~"><title>root@vps: ~</title><style>.s{font-family:Inter, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif}.m{font-family:'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace}</style><rect x="0.5" y="0.5" width="859" height="367" rx="14" fill="#0d1117" stroke="#30363d" stroke-width="1" /><path d="M1 44 H859" stroke="#30363d"/><circle cx="22" cy="22" r="6" fill="#ff5f57"/><circle cx="40" cy="22" r="6" fill="#febc2e"/><circle cx="58" cy="22" r="6" fill="#28c840"/><text x="430.0" y="27" class="m" font-size="13" fill="#8b949e" font-weight="500" text-anchor="middle">root@vps: ~</text><text x="22" y="70" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve"># </text><text x="38.260000000000005" y="70" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">bash <(curl -fsSL https://raw.githubusercontent.com/PinkmanXXX/…/hysteria2.sh)</text><text x="22" y="91" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve"></text><text x="22" y="112" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Установка Hysteria2</text><rect x="10" y="118" width="840" height="22" rx="5" fill="#3fb95022" stroke="#3fb950" stroke-width="1" /><circle cx="832" cy="128.5" r="11" fill="#3fb950"/><text x="832" y="133.0" class="s" font-size="12" fill="#0d1117" font-weight="700" text-anchor="middle">1</text><text x="22" y="133" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Домен (Enter — без домена): </text><text x="249.64000000000001" y="133" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">hy.example.com</text><rect x="10" y="139" width="840" height="22" rx="5" fill="#3fb95022" stroke="#3fb950" stroke-width="1" /><circle cx="832" cy="149.5" r="11" fill="#3fb950"/><text x="832" y="154.0" class="s" font-size="12" fill="#0d1117" font-weight="700" text-anchor="middle">1</text><text x="22" y="154" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Почта для Let's Encrypt: </text><text x="225.25000000000003" y="154" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">you@example.com</text><text x="22" y="175" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">==> </text><text x="54.52" y="175" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Скачиваю Hysteria 2.12.3 (amd64) с GitHub</text><text x="22" y="196" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">==> </text><text x="54.52" y="196" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Контрольная сумма совпала: 8c7a68a906998b74…</text><text x="22" y="217" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">==> </text><text x="54.52" y="217" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Настраиваю ufw: SSH 22/tcp, Hysteria 443/udp, сайт 80/tcp и 443/tcp</text><text x="22" y="238" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">==> </text><text x="54.52" y="238" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">Запускаю Hysteria и получаю сертификат для hy.example.com</text><text x="22" y="259" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve"></text><text x="22" y="280" class="m" font-size="13.5" fill="#3fb950" xml:space="preserve">Готово! Hysteria2 работает.</text><text x="22" y="301" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve"></text><rect x="10" y="307" width="840" height="22" rx="5" fill="#3fb95022" stroke="#3fb950" stroke-width="1" /><circle cx="832" cy="317.5" r="11" fill="#3fb950"/><text x="832" y="322.0" class="s" font-size="12" fill="#0d1117" font-weight="700" text-anchor="middle">2</text><text x="22" y="322" class="m" font-size="13.5" fill="#e6edf3" xml:space="preserve">hy2://admin:9c1e…@hy.example.com:443/?sni=hy.example.com#admin</text><text x="22" y="343" class="m" font-size="13.5" fill="#8b949e" xml:space="preserve">[ здесь QR-код — отсканируйте его телефоном ]</text></svg> |