diff --git a/README.md b/README.md index b208596e..c6327abd 100644 --- a/README.md +++ b/README.md @@ -1,71 +1,238 @@ -# v2rayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/v2rayA/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/v2rayA/v2rayA?label=travis-ci%20build)](https://travis-ci.org/v2rayA/v2rayA) +
-[**English**](https://github.com/v2rayA/v2rayA/blob/main/README.md)   [**简体中文**](https://github.com/v2rayA/v2rayA/blob/main/README_zh.md)   [**Русский**](https://github.com/v2rayA/v2rayA/blob/main/README_ru.md) +v2rayA -v2rayA is a web client for its own Xray-based core with global transparent proxy on Linux, Windows and macOS. It speaks VMess, VLESS, Shadowsocks, Trojan, Hysteria2, TUIC, [Juicity](https://github.com/juicity), AnyTLS, WireGuard, SOCKS5 and HTTP(S) proxy links; ShadowsocksR is no longer supported. +# v2rayA -We are committed to providing the simplest operation and meet most needs. +**A web client for its own Xray-based core, with transparent proxy on Linux, Windows and macOS.** -Thanks to the advantages of Web GUI, you can not only use it on your local computer, but also easily deploy it on a router or NAS. +English · [简体中文](README_zh.md) · [Русский](README_ru.md) -Project:https://github.com/v2rayA/v2rayA +[Requirements](#requirements) • [Install](#install) • [First run](#first-run) • [Transparent proxy](#transparent-proxy) • [Data and upgrades](#data-and-upgrades) • [Support](#support) +
-## Usage +v2rayA runs as a service and is used from a browser, on the machine itself or on a router or NAS. It imports subscriptions and share links for VMess, VLESS, Shadowsocks, Trojan, Hysteria2, TUIC, [Juicity](https://github.com/juicity), AnyTLS, WireGuard, SOCKS5 and HTTP(S), groups nodes and selects the member with the lowest measured latency or a pinned one, and splits traffic with rules written in RoutingA. ShadowsocksR is not supported. -v2rayA mainly provides the following methods of installation: +## Requirements -1. Install from apt-source or AUR -2. Docker -3. Our self-built [scoop bucket](https://github.com/v2rayA/v2raya-scoop) (for Windows users) -4. Our self-built [homebrew tap](https://github.com/v2rayA/homebrew-v2raya) -5. Our self-built [OpenWrt repo](https://github.com/v2rayA/v2raya-openwrt) and OpenWrt's official repo(from OpenWrt version 22.03) -6. Microsoft winget: https://winstall.app/apps/v2rayA.v2rayA -7. Ubuntu Snap: https://snapcraft.io/v2raya -8. Binary file and installation package from GitHub releases +| Component | Requirement | +| --- | --- | +| Core | `v2raya_core` of the **same version** as `v2raya`, next to it or in `PATH`. The packages and installers below ship both; a hand-installed pair must match. | +| Rule data | `geoip.dat` and `geosite.dat` in `/usr/share/v2raya` or `/usr/local/share/v2raya`. The packages ship them; a hand install downloads them from GitHub on the first start and exits if that fails. | +| Linux transparent proxy | root; `iptables` or `nftables` for `redirect` and `tproxy`; `/dev/net/tun` and `ip` from iproute2 for `tun` | +| Windows | Windows 10 build 14393 or later; administrator for `tun`; `--lite` runs unprivileged and can still set the current user's system proxy | +| macOS | root for `tun`; `--lite` runs unprivileged and offers the system proxy instead | +| Browser | a current Chrome, Edge, Firefox or Safari | -See [**v2rayA - Docs**](https://v2raya.org/en/docs/prologue/introduction/) +## Install +The packages below install `v2raya` and `v2raya_core` together with a service definition. Enable the service with the command shown for the platform. + +
+Debian, Ubuntu and other APT distributions + +The packages come from the [Dae Universe repository](https://github.com/daeuniverse/repo-for-linux). + +```sh +sudo apt update +sudo apt install curl +``` + +APT 3.0 or later: + +```sh +sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sources +``` + +APT older than 3.0: + +```sh +sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.list https://daeuniverse.pages.dev/daeuniverse.list +``` + +Then the key and the package: + +```sh +sudo curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpg +sudo apt update +sudo apt install v2raya +sudo systemctl enable --now v2raya +``` + +Change the unit with `sudo systemctl edit --full v2raya.service`; an edit of the installed file is overwritten by the next upgrade. + +
+ +
+Fedora, RHEL, openSUSE and other RPM distributions + +Fedora, RHEL and derivatives: + +```sh +sudo curl -fsSL -o /etc/yum.repos.d/daeuniverse.repo https://daeuniverse.pages.dev/daeuniverse.repo +sudo dnf install v2raya +``` + +openSUSE: + +```sh +sudo curl -fsSL -o /etc/zypp/repos.d/daeuniverse.repo https://daeuniverse.pages.dev/daeuniverse.repo +sudo zypper install v2raya +``` + +Then: + +```sh +sudo systemctl enable --now v2raya +``` + +
+ +
+Arch Linux + +`v2raya` builds from source, `v2raya-bin` uses the release binaries; both are in the AUR. The release page also carries `installer_archlinux__.pkg.tar.zst` for `pacman -U`. + +```sh +paru -S v2raya-bin +sudo systemctl enable --now v2raya +``` + +
+ +
+Gentoo, Alpine and other OpenRC systems + +On Gentoo, install from the [gentoo-zh](https://github.com/gentoo-zh/overlay) overlay, then enable the service: + +```sh +sudo emerge net-proxy/v2rayA +sudo rc-update add v2raya default +sudo rc-service v2raya start +``` + +Elsewhere, download the two binaries for the architecture from the [releases](https://github.com/v2rayA/v2rayA/releases) and use the OpenRC files from [`install/universal/`](install/universal/). Run this from a checkout of the repository, with `VERSION` set to the release number without the leading `v`; the example is for x64: + +```sh +sudo install -m755 "v2raya_linux_x64_${VERSION}" /usr/bin/v2raya +sudo install -m755 "v2raya_core_linux_x64_${VERSION}" /usr/bin/v2raya_core +sudo install -m755 install/universal/v2raya.initd /etc/init.d/v2raya +sudo install -m644 install/universal/v2raya.confd /etc/conf.d/v2raya +sudo rc-update add v2raya default +sudo rc-service v2raya start +``` + +
+ +
+Docker + +The image is `ghcr.io/v2raya/v2raya` (also `mzz2017/v2raya` on Docker Hub). This example is for a Linux host and gives the container the host network and privileges, which transparent proxy needs: + +```sh +docker run -d --restart=always --privileged --network=host --name v2raya \ + -e V2RAYA_LOG_FILE=/tmp/v2raya.log \ + -v /lib/modules:/lib/modules:ro \ + -v /etc/resolv.conf:/etc/resolv.conf \ + -v /etc/v2raya:/etc/v2raya \ + ghcr.io/v2raya/v2raya +``` + +With bridge networking instead, publish port 2017 and the inbound ports you use, and turn on port sharing in the settings; the inbounds listen on the container's loopback otherwise. Transparent proxy is not available in that setup. + +
+ +
+Windows + +`installer_windows_inno_x64_.exe` (or `arm64`) from the [releases](https://github.com/v2rayA/v2rayA/releases) installs both binaries and registers a service. The same installer is behind `winget install --id v2rayA.v2rayA` and the [scoop bucket](https://github.com/v2rayA/v2raya-scoop) (`scoop bucket add v2raya https://github.com/v2rayA/v2raya-scoop && scoop install v2raya-np`). + +
+ +
+macOS + +The [tap](https://github.com/v2rayA/homebrew-v2raya) installs both binaries. Its service runs `v2raya --lite`, as the user, with the system proxy but no `tun`: + +```sh +brew tap v2raya/v2raya +brew install v2raya/v2raya/v2raya +brew services start v2raya +``` + +For `tun`, stop that service and run the binary as root instead: `sudo "$(brew --prefix v2raya)/bin/v2raya"`. + +
+ +
+OpenWrt + +The [v2raya-openwrt](https://github.com/v2rayA/v2raya-openwrt) feed and the official packages feed currently package 2.2.7.x with a separate `xray-core`, not the release described here. Until they are updated, install the `mips32`, `mips32le`, `arm64` or `x64` release binaries by hand, as in the next section, with the init script of your choice. + +
+ +
+Other Linux, without a package + +Download `v2raya_linux__` and `v2raya_core_linux__` from the [releases](https://github.com/v2rayA/v2rayA/releases) (`x86`, `x64`, `arm64`, `armv7`, `riscv64`, `loongarch64`, `mips32`, `mips32le`, `mips64`, `mips64le`), check them against the `.sha256.txt` next to each, and install both into `/usr/bin`. With systemd: + +```sh +sudo install -m644 install/universal/v2raya.service /etc/systemd/system/v2raya.service +sudo systemctl daemon-reload +sudo systemctl enable --now v2raya +``` + +With OpenRC, use the files from the section above. There is also a [snap](https://snapcraft.io/v2raya) maintained separately. + +
+ +## First run + +The service listens on `0.0.0.0:2017`, so on a router or NAS the interface is at `http://:2017`. The first account registered becomes the administrator and registration needs no login, so restrict access before registering on a shared network, or start with `--address 127.0.0.1:2017` for local use only. + +Open the interface and create the administrator. The tutorial then walks through importing a subscription or a share link, adding the nodes to a group and choosing the routing rules; start the core with Start on the dashboard or the status button at the top of the page. + +Once the core runs, point an application at SOCKS5 `127.0.0.1:20170` or HTTP `127.0.0.1:20171` (`20172` applies the routing rules to HTTP), or turn on transparent proxy on the dashboard and pick a mode from the table below. A group with several connected members uses the one with the lowest measured latency; pinning a member routes the group through it alone. Subscriptions update from the subscriptions page or on the interval set in the settings. + +The dashboard, light and dark ## Transparent proxy -On Linux, transparent proxy is available as `redirect`, `tproxy` or `tun`; on Windows and macOS as `tun` or the system proxy. +| Platform | Modes | +| --- | --- | +| Linux | `redirect`, `tproxy`, `tun`; with `--lite`, the system proxy on GNOME and KDE | +| macOS | `tun`; with `--lite`, the system proxy | +| Windows | `tun`, system proxy | -`tun` is built into the core: the core opens a TUN device, assigns its address and takes the default route. Its own connections, the direct outbound and the DNS module's upstream queries never enter the TUN (by socket mark on Linux, by binding to the physical interface on Windows and macOS), and every DNS query an application sends to a public resolver is answered by the core's DNS module. v2rayA and the core are always excluded; other processes can be excluded by executable name in the settings. Connected and static routes always bypass the TUN. +The system proxy modes set the desktop's proxy settings and cover applications that honour them. The other modes intercept traffic. -Known limitation: on Windows and macOS an application that queries a LAN resolver directly still bypasses the TUN. The system resolver is pointed at the TUN and is covered. +With `tun`, the core opens a TUN device and assigns its address; with automatic routing on (the default), v2rayA installs the routes and the DNS setting, otherwise your own script does. The core's own connections, the direct outbound and the DNS module's upstream queries never enter the TUN (by socket mark on Linux, by binding to the physical interface on Windows and macOS). Plain DNS on port 53 that reaches the TUN is answered by the core's DNS module; encrypted DNS is not intercepted. v2rayA and the core are always excluded, and other processes can be excluded by executable name in the settings. More specific connected and static routes bypass the TUN. -## Screenshots +Known limitation: on Windows and macOS an application that queries a LAN resolver directly still bypasses the TUN. The system resolver is covered: Windows points it at the TUN gateway, macOS at the core's listener on `127.0.0.1`, which needs port 53 free. -The dashboard: the core, the node in use, live traffic, the transparent proxy and splitting modes, the members' latency and the subscriptions, each a tile. +## Routing rules -v2rayA dashboard, light and dark +The RoutingA editor, light and dark -The RoutingA editor: rules as a list with a rule editor, or as text with line numbers, colouring and per-line checks; the syntax at hand; import and export. +RoutingA has a list mode with a form per rule and a text mode with line numbers, colouring and per-line checks. The syntax reference sits beside the editor. Import or export rules as a text file. -the RoutingA editor, light and dark +## Data and upgrades -## Statement +The SQLite database `v2raya.db` and the generated core config live in the configuration directory: `/etc/v2raya` on Linux and macOS, `%ProgramData%\SYSTEM\v2rayA` for the Windows service, the user's config directory with `--lite`, or the path given by `--config`. Logs go to `/var/log/v2raya/v2raya.log` under the systemd and OpenRC units, or to `--log-file` / `V2RAYA_LOG_FILE`. Network requests are made only for subscription updates, rule-data downloads, latency probes and DNS. -1. The program does not store any user data in the cloud, and all user data is stored in local. -2. **Do not use this project for illegal purposes.** +Stop the service and back up the configuration directory before upgrading. Upgrading from a release before 2.4 migrates the BoltDB database on the first start; the old file is kept as `bolt.db.bak` (`bolt.db.bak.1` and up when that name is taken), and accounts have to be registered again. Upgrade `v2raya` and `v2raya_core` together: the dashboard shows the core version, and a mismatch is reported in a banner. + +## Support + +Ask questions in the [discussions](https://github.com/v2rayA/v2rayA/discussions) and report bugs in the [issues](https://github.com/v2rayA/v2rayA/issues). + +Do not use this project for anything illegal. ## Credits -[hq450/fancyss](https://github.com/hq450/fancyss) - -[ToutyRater/v2ray-guide](https://github.com/ToutyRater/v2ray-guide/blob/master/routing/sitedata.md) - -[nadoo/glider](https://github.com/nadoo/glider) - -[Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) - -[zfl9/ss-tproxy](https://github.com/zfl9/ss-tproxy/blob/master/ss-tproxy) - -## Stargazers over time - -[![Stargazers over time](https://starchart.cc/v2rayA/v2rayA.svg)](https://starchart.cc/v2rayA/v2rayA) +Founded by [@mzz2017](https://github.com/mzz2017). The Material Design 3 interface, the in-core TUN and the 2.5 service rework are by [@Zakkaus](https://github.com/Zakkaus). The OpenRC files come from the [gentoo-zh community](https://gentoozh.org). Routing data from [v2fly/domain-list-community](https://github.com/v2fly/domain-list-community), [v2fly/geoip](https://github.com/v2fly/geoip) and, for the GFWList mode, [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat); the transparent-proxy rules were learnt from [zfl9/ss-tproxy](https://github.com/zfl9/ss-tproxy) and [hq450/fancyss](https://github.com/hq450/fancyss). ## License -[![License: AGPL v3-only](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) +[AGPL-3.0-only](LICENSE). The core is a fork of [Xray-core](https://github.com/XTLS/Xray-core) (MPL-2.0). diff --git a/README_ru.md b/README_ru.md index df9f10a4..a116692a 100644 --- a/README_ru.md +++ b/README_ru.md @@ -1,71 +1,238 @@ -# v2rayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/v2rayA/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/v2rayA/v2rayA?label=travis-ci%20build)](https://travis-ci.org/v2rayA/v2rayA) +
-[**English**](https://github.com/v2rayA/v2rayA/blob/main/README.md)   [**简体中文**](https://github.com/v2rayA/v2rayA/blob/main/README_zh.md)   [**Русский**](https://github.com/v2rayA/v2rayA/blob/main/README_ru.md) +v2rayA -v2rayA — веб-клиент для собственного ядра на базе Xray с глобальным прозрачным прокси в Linux, Windows и macOS. Он поддерживает ссылки на прокси VMess, VLESS, Shadowsocks, Trojan, Hysteria2, TUIC, [Juicity](https://github.com/juicity), AnyTLS, WireGuard, SOCKS5 и HTTP(S); ShadowsocksR больше не поддерживается. +# v2rayA -Мы стремимся сделать управление как можно проще и учесть большинство сценариев использования. +**Веб-клиент для собственного ядра на базе Xray с прозрачным прокси в Linux, Windows и macOS.** -Веб-интерфейс позволяет использовать v2rayA не только на локальном компьютере, но и без труда развернуть его на маршрутизаторе или NAS. +[English](README.md) · [简体中文](README_zh.md) · Русский -Проект: https://github.com/v2rayA/v2rayA +[Требования](#требования) • [Установка](#установка) • [Первый запуск](#первый-запуск) • [Прозрачный прокси](#прозрачный-прокси) • [Данные и обновления](#данные-и-обновления) • [Поддержка](#поддержка) +
-## Использование +v2rayA работает как служба и управляется из браузера — на самом компьютере, на маршрутизаторе или NAS. Он импортирует подписки и ссылки VMess, VLESS, Shadowsocks, Trojan, Hysteria2, TUIC, [Juicity](https://github.com/juicity), AnyTLS, WireGuard, SOCKS5 и HTTP(S), объединяет узлы в группы, выбирает узел с наименьшей измеренной задержкой или закреплённый узел и разделяет трафик по правилам RoutingA. ShadowsocksR не поддерживается. -Основные способы установки v2rayA: +## Требования -1. Из репозитория APT или AUR -2. Docker -3. Собственный [репозиторий scoop](https://github.com/v2rayA/v2raya-scoop) (для пользователей Windows) -4. Собственный [репозиторий homebrew](https://github.com/v2rayA/homebrew-v2raya) -5. Собственный [репозиторий OpenWrt](https://github.com/v2rayA/v2raya-openwrt) или официальный репозиторий OpenWrt (начиная с OpenWrt 22.03) -6. Microsoft winget: https://winstall.app/apps/v2rayA.v2rayA -7. Ubuntu Snap: https://snapcraft.io/v2raya -8. Бинарный файл или установочный пакет из выпусков на GitHub +| Компонент | Требование | +| --- | --- | +| Ядро | `v2raya_core` **той же версии**, что и `v2raya`, рядом с ним или в `PATH`. Пакеты и установщики ниже ставят оба файла; при ручной установке версии должны совпадать | +| Данные правил | `geoip.dat` и `geosite.dat` в `/usr/share/v2raya` или `/usr/local/share/v2raya`. Пакеты содержат их; при ручной установке они скачиваются с GitHub при первом запуске, и при неудаче служба завершается | +| Прозрачный прокси в Linux | root; `iptables` или `nftables` для `redirect` и `tproxy`; `/dev/net/tun` и команда `ip` из iproute2 для `tun` | +| Windows | Windows 10 сборки 14393 или новее; права администратора для `tun`; `--lite` работает без привилегий и всё же может настроить системный прокси текущего пользователя | +| macOS | root для `tun`; `--lite` работает без привилегий и вместо него предлагает системный прокси | +| Браузер | актуальный Chrome, Edge, Firefox или Safari | -Подробнее: [**v2rayA - Docs**](https://v2raya.org/en/docs/prologue/introduction/) +## Установка +Пакеты ниже устанавливают `v2raya` и `v2raya_core` вместе с описанием службы. Включите службу командой, указанной для платформы. + +
+Debian, Ubuntu и другие дистрибутивы с APT + +Пакеты берутся из [репозитория Dae Universe](https://github.com/daeuniverse/repo-for-linux). + +```sh +sudo apt update +sudo apt install curl +``` + +APT 3.0 и новее: + +```sh +sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sources +``` + +APT версии ниже 3.0: + +```sh +sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.list https://daeuniverse.pages.dev/daeuniverse.list +``` + +Затем ключ и пакет: + +```sh +sudo curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpg +sudo apt update +sudo apt install v2raya +sudo systemctl enable --now v2raya +``` + +Юнит меняйте через `sudo systemctl edit --full v2raya.service`: правку установленного файла перезапишет следующее обновление. + +
+ +
+Fedora, RHEL, openSUSE и другие дистрибутивы с RPM + +Fedora, RHEL и производные: + +```sh +sudo curl -fsSL -o /etc/yum.repos.d/daeuniverse.repo https://daeuniverse.pages.dev/daeuniverse.repo +sudo dnf install v2raya +``` + +openSUSE: + +```sh +sudo curl -fsSL -o /etc/zypp/repos.d/daeuniverse.repo https://daeuniverse.pages.dev/daeuniverse.repo +sudo zypper install v2raya +``` + +Затем: + +```sh +sudo systemctl enable --now v2raya +``` + +
+ +
+Arch Linux + +В AUR `v2raya` собирается из исходников, `v2raya-bin` использует готовые бинарные файлы. На странице выпусков есть и `installer_archlinux__.pkg.tar.zst` для `pacman -U`. + +```sh +paru -S v2raya-bin +sudo systemctl enable --now v2raya +``` + +
+ +
+Gentoo, Alpine и другие системы с OpenRC + +В Gentoo установите пакет из оверлея [gentoo-zh](https://github.com/gentoo-zh/overlay) и включите службу: + +```sh +sudo emerge net-proxy/v2rayA +sudo rc-update add v2raya default +sudo rc-service v2raya start +``` + +В остальных системах скачайте оба бинарных файла для своей архитектуры со [страницы выпусков](https://github.com/v2rayA/v2rayA/releases) и возьмите файлы OpenRC из [`install/universal/`](install/universal/). Команды выполняются из клона репозитория; `VERSION` — номер выпуска без ведущей `v`; пример для x64: + +```sh +sudo install -m755 "v2raya_linux_x64_${VERSION}" /usr/bin/v2raya +sudo install -m755 "v2raya_core_linux_x64_${VERSION}" /usr/bin/v2raya_core +sudo install -m755 install/universal/v2raya.initd /etc/init.d/v2raya +sudo install -m644 install/universal/v2raya.confd /etc/conf.d/v2raya +sudo rc-update add v2raya default +sudo rc-service v2raya start +``` + +
+ +
+Docker + +Образ — `ghcr.io/v2raya/v2raya` (на Docker Hub — `mzz2017/v2raya`). Пример для хоста Linux: контейнер получает сеть хоста и привилегии, без которых прозрачный прокси не работает: + +```sh +docker run -d --restart=always --privileged --network=host --name v2raya \ + -e V2RAYA_LOG_FILE=/tmp/v2raya.log \ + -v /lib/modules:/lib/modules:ro \ + -v /etc/resolv.conf:/etc/resolv.conf \ + -v /etc/v2raya:/etc/v2raya \ + ghcr.io/v2raya/v2raya +``` + +При сети bridge опубликуйте порт 2017 и используемые входящие порты и включите общий доступ к портам в настройках, иначе входящие подключения принимаются только на loopback контейнера. Прозрачный прокси в такой схеме недоступен. + +
+ +
+Windows + +`installer_windows_inno_x64_.exe` (или `arm64`) со [страницы выпусков](https://github.com/v2rayA/v2rayA/releases) устанавливает оба бинарных файла и регистрирует службу. Тот же установщик стоит за `winget install --id v2rayA.v2rayA` и за [scoop bucket](https://github.com/v2rayA/v2raya-scoop) (`scoop bucket add v2raya https://github.com/v2rayA/v2raya-scoop && scoop install v2raya-np`). + +
+ +
+macOS + +[Tap](https://github.com/v2rayA/homebrew-v2raya) устанавливает оба бинарных файла. Его служба запускает `v2raya --lite` от имени пользователя: с системным прокси, но без `tun`: + +```sh +brew tap v2raya/v2raya +brew install v2raya/v2raya/v2raya +brew services start v2raya +``` + +Для `tun` остановите эту службу и запустите бинарный файл от root: `sudo "$(brew --prefix v2raya)/bin/v2raya"`. + +
+ +
+OpenWrt + +Репозиторий [v2raya-openwrt](https://github.com/v2rayA/v2raya-openwrt) и официальный репозиторий packages сейчас содержат 2.2.7.x с отдельным `xray-core`, а не описанный здесь выпуск. Пока они не обновлены, установите бинарные файлы выпуска для `mips32`, `mips32le`, `arm64` или `x64` вручную, как в следующем разделе, с собственным init-скриптом. + +
+ +
+Другой Linux, без пакета + +Скачайте `v2raya_linux__` и `v2raya_core_linux__` со [страницы выпусков](https://github.com/v2rayA/v2rayA/releases) (`x86`, `x64`, `arm64`, `armv7`, `riscv64`, `loongarch64`, `mips32`, `mips32le`, `mips64`, `mips64le`), сверьте их с соседним `.sha256.txt` и установите оба в `/usr/bin`. Для systemd: + +```sh +sudo install -m644 install/universal/v2raya.service /etc/systemd/system/v2raya.service +sudo systemctl daemon-reload +sudo systemctl enable --now v2raya +``` + +Для OpenRC используйте файлы из раздела выше. Есть и отдельно поддерживаемый [snap](https://snapcraft.io/v2raya). + +
+ +## Первый запуск + +Служба слушает `0.0.0.0:2017`, поэтому на маршрутизаторе или NAS интерфейс доступен по адресу `http://<адрес-устройства>:2017`. Первая зарегистрированная учётная запись становится администратором, а регистрация не требует входа, поэтому в общей сети сначала ограничьте доступ, либо для локального использования запустите службу с `--address 127.0.0.1:2017`. + +Откройте интерфейс и создайте администратора. Затем мастер проведёт через импорт подписки или ссылки, добавление узлов в группу и выбор правил маршрутизации; ядро запускается кнопкой запуска на панели или кнопкой состояния вверху страницы. + +Когда ядро работает, укажите приложению SOCKS5 `127.0.0.1:20170` или HTTP `127.0.0.1:20171` (`20172` применяет к HTTP правила маршрутизации) либо включите прозрачный прокси на панели и выберите режим из таблицы ниже. Группа с несколькими подключёнными узлами использует узел с наименьшей измеренной задержкой; после закрепления узла весь трафик группы направляется через него. Подписки обновляются со страницы подписок или с интервалом, заданным в настройках. + +Панель управления в светлой и тёмной темах ## Прозрачный прокси -В Linux прозрачный прокси доступен в режимах `redirect`, `tproxy` и `tun`; в Windows и macOS — в режиме `tun` или как системный прокси. +| Платформа | Режимы | +| --- | --- | +| Linux | `redirect`, `tproxy`, `tun`; с `--lite` — системный прокси в GNOME и KDE | +| macOS | `tun`; с `--lite` — системный прокси | +| Windows | `tun`, системный прокси | -`tun` встроен в ядро: ядро открывает устройство TUN, назначает ему адрес и берёт на себя маршрут по умолчанию. Собственные соединения ядра, прямой исходящий трафик и запросы DNS-модуля к вышестоящим серверам никогда не попадают в TUN: в Linux для этого используются метки сокетов, а в Windows и macOS — привязка к физическому интерфейсу. На все DNS-запросы приложений к публичным серверам отвечает DNS-модуль ядра. v2rayA и ядро исключаются всегда; другие процессы можно исключить в настройках по имени исполняемого файла. Маршруты подключённых сетей и статические маршруты всегда обходят TUN. +Режимы системного прокси меняют настройки прокси рабочего стола и охватывают только приложения, которые их соблюдают. Остальные режимы перехватывают трафик. -Известное ограничение: в Windows и macOS приложение, которое обращается напрямую к DNS-серверу в локальной сети, по-прежнему обходит TUN. Системный DNS-резолвер направлен в TUN и этим ограничением не затронут. +В режиме `tun` ядро открывает устройство TUN и назначает ему адрес; при включённой автоматической маршрутизации (по умолчанию) маршруты и настройку DNS устанавливает v2rayA, иначе — ваш собственный скрипт. Собственные соединения ядра, прямой исходящий трафик и запросы DNS-модуля к вышестоящим серверам не попадают в TUN (в Linux — метки сокетов, в Windows и macOS — привязка к физическому интерфейсу). На незашифрованные DNS-запросы на порт 53, попавшие в TUN, отвечает DNS-модуль ядра; зашифрованный DNS не перехватывается. v2rayA и ядро исключаются всегда; другие процессы можно исключить в настройках по имени исполняемого файла. Более специфичные маршруты подключённых сетей и статические маршруты обходят TUN. -## Снимки экрана +Известное ограничение: в Windows и macOS приложение, которое обращается напрямую к DNS-серверу в локальной сети, по-прежнему обходит TUN. Системный резолвер охвачен: Windows направляет его на шлюз TUN, macOS — на слушатель ядра на `127.0.0.1`, для которого порт 53 должен быть свободен. -Панель управления: ядро, текущий узел, трафик в реальном времени, режимы прозрачного прокси и маршрутизации, задержка узлов и подписки — каждый элемент на отдельной плитке. - -Панель управления v2rayA в светлой и тёмной темах - -Редактор RoutingA: правила можно редактировать списком с помощью редактора правил или как текст с номерами строк, подсветкой и построчной проверкой; синтаксис всегда под рукой; доступны импорт и экспорт. +## Правила маршрутизации Редактор RoutingA в светлой и тёмной темах -## Примечания +У RoutingA два режима: список с формой для каждого правила и текст с номерами строк, подсветкой и построчной проверкой. Справка по синтаксису находится рядом с редактором. Правила можно импортировать из файла и экспортировать в файл. -1. Программа не хранит пользовательские данные в облаке: все они хранятся локально. -2. **Не используйте этот проект в противоправных целях.** +## Данные и обновления + +База SQLite `v2raya.db` и сгенерированная конфигурация ядра лежат в каталоге конфигурации: `/etc/v2raya` в Linux и macOS, `%ProgramData%\SYSTEM\v2rayA` для службы Windows, каталог конфигурации пользователя при `--lite` или путь из `--config`. Журналы пишутся в `/var/log/v2raya/v2raya.log` юнитами systemd и OpenRC либо в `--log-file` / `V2RAYA_LOG_FILE`. Сетевые запросы выполняются только для обновления подписок, загрузки данных правил, измерения задержки и DNS. + +Перед обновлением остановите службу и сделайте резервную копию каталога конфигурации. При обновлении с версии ниже 2.4 база BoltDB переносится при первом запуске; старый файл сохраняется как `bolt.db.bak` (`bolt.db.bak.1` и далее, если это имя занято), учётные записи нужно зарегистрировать заново. Обновляйте `v2raya` и `v2raya_core` вместе: панель показывает версию ядра, а о несовпадении сообщает баннер. + +## Поддержка + +Задавайте вопросы в [Discussions](https://github.com/v2rayA/v2rayA/discussions) и сообщайте об ошибках в [Issues](https://github.com/v2rayA/v2rayA/issues). + +Не используйте этот проект в противоправных целях. ## Благодарности -[hq450/fancyss](https://github.com/hq450/fancyss) - -[ToutyRater/v2ray-guide](https://github.com/ToutyRater/v2ray-guide/blob/master/routing/sitedata.md) - -[nadoo/glider](https://github.com/nadoo/glider) - -[Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) - -[zfl9/ss-tproxy](https://github.com/zfl9/ss-tproxy/blob/master/ss-tproxy) - -## Динамика звёзд - -[![Stargazers over time](https://starchart.cc/v2rayA/v2rayA.svg)](https://starchart.cc/v2rayA/v2rayA) +Основан [@mzz2017](https://github.com/mzz2017). Интерфейс на Material Design 3, встроенный в ядро TUN и переработка службы в 2.5 — [@Zakkaus](https://github.com/Zakkaus). Файлы OpenRC предоставлены [сообществом gentoo-zh](https://gentoozh.org). Данные маршрутизации — [v2fly/domain-list-community](https://github.com/v2fly/domain-list-community) и [v2fly/geoip](https://github.com/v2fly/geoip), для режима GFWList — [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat); правила прозрачного прокси основаны на опыте [zfl9/ss-tproxy](https://github.com/zfl9/ss-tproxy) и [hq450/fancyss](https://github.com/hq450/fancyss). ## Лицензия -[![License: AGPL v3-only](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) +[AGPL-3.0-only](LICENSE). Ядро — форк [Xray-core](https://github.com/XTLS/Xray-core) (MPL-2.0). diff --git a/README_zh.md b/README_zh.md index 5546170a..aadbdfa6 100644 --- a/README_zh.md +++ b/README_zh.md @@ -1,69 +1,238 @@ -# v2rayA [![Docker Cloud Build Status](https://img.shields.io/docker/cloud/build/v2rayA/v2raya)](https://hub.docker.com/r/mzz2017/v2raya) [![Travis (.org)](https://img.shields.io/travis/v2rayA/v2rayA?label=travis-ci%20build)](https://travis-ci.org/v2rayA/v2rayA) +
-[**English**](https://github.com/v2rayA/v2rayA/blob/main/README.md)   [**简体中文**](https://github.com/v2rayA/v2rayA/blob/main/README_zh.md)   [**Русский**](https://github.com/v2rayA/v2rayA/blob/main/README_ru.md) +v2rayA -v2rayA 是一个基于自带 Xray 内核的 Web 客户端,在 Linux、Windows、macOS 上支持全局透明代理,支持 VMess、VLESS、Shadowsocks、Trojan、Hysteria2、TUIC、[Juicity](https://github.com/juicity)、AnyTLS、WireGuard、SOCKS5 与 HTTP(S) 代理节点;不再支持 ShadowsocksR。 +# v2rayA -v2rayA 致力于提供最简单的操作,满足绝大部分需求。 +**基于自带 Xray 内核的 Web 客户端,在 Linux、Windows 与 macOS 上提供透明代理。** -得益于 Web 客户端的优势,你不仅可以将其用于本地计算机,还可以轻松地将它部署在路由器或 NAS 上。 +[English](README.md) · 简体中文 · [Русский](README_ru.md) -项目地址:https://github.com/v2rayA/v2rayA +[运行环境](#运行环境) • [安装](#安装) • [首次运行](#首次运行) • [透明代理](#透明代理) • [数据与升级](#数据与升级) • [支持](#支持) +
-## 使用方法 +v2rayA 以服务形式运行,通过浏览器操作,可部署在本机、路由器或 NAS 上。它导入 VMess、VLESS、Shadowsocks、Trojan、Hysteria2、TUIC、[Juicity](https://github.com/juicity)、AnyTLS、WireGuard、SOCKS5 与 HTTP(S) 的订阅和分享链接。节点编成组后,由实测延迟最低的成员或固定的成员出站,分流由 RoutingA 规则决定。不支持 ShadowsocksR。 -v2rayA 主要提供了下述使用方法: +## 运行环境 -1. 从 APT 软件源或者 AUR 安装 -2. Docker -3. 自建 [scoop bucket](https://github.com/v2rayA/v2raya-scoop) (Windows 用户) -4. 自建 [homebrew tap](https://github.com/v2rayA/homebrew-v2raya) -5. 自建 [OpenWrt 仓库](https://github.com/v2rayA/v2raya-openwrt) 和 OpenWrt 官方软件源(从 OpenWrt 22.03 版本开始提供) -6. 微软 winget: https://winstall.app/apps/v2rayA.v2rayA -7. Ubuntu Snap: https://snapcraft.io/v2raya -8. 从 GitHub releases 下载二进制与安装包 +| 组件 | 要求 | +| --- | --- | +| 内核 | 与 `v2raya` **版本相同**的 `v2raya_core`,放在同一目录或 `PATH` 中。下列软件包和安装程序都同时安装两者;手动安装时两者版本必须一致 | +| 规则数据 | `/usr/share/v2raya` 或 `/usr/local/share/v2raya` 中的 `geoip.dat` 与 `geosite.dat`。软件包自带;手动安装时首次启动从 GitHub 下载,下载失败则退出 | +| Linux 透明代理 | root 权限;`redirect` 与 `tproxy` 需要 `iptables` 或 `nftables`;`tun` 需要 `/dev/net/tun` 与 iproute2 的 `ip` 命令 | +| Windows | Windows 10 build 14393 及以上;`tun` 需要管理员权限;`--lite` 以普通用户运行,仍可设置当前用户的系统代理 | +| macOS | `tun` 需要 root 权限;`--lite` 以普通用户运行,改为提供系统代理 | +| 浏览器 | 当前版本的 Chrome、Edge、Firefox 或 Safari | -详见 [**v2rayA - Docs**](https://v2raya.org/docs/prologue/introduction/) +## 安装 +下列软件包同时安装 `v2raya`、`v2raya_core` 与服务定义。安装后按各平台给出的命令启用服务。 + +
+Debian、Ubuntu 与其他 APT 发行版 + +软件包由 [Dae Universe 软件源](https://github.com/daeuniverse/repo-for-linux)提供。 + +```sh +sudo apt update +sudo apt install curl +``` + +APT 3.0 及以上: + +```sh +sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.sources https://daeuniverse.pages.dev/daeuniverse.sources +``` + +APT 3.0 以下: + +```sh +sudo curl -fsSL -o /etc/apt/sources.list.d/daeuniverse.list https://daeuniverse.pages.dev/daeuniverse.list +``` + +然后导入密钥并安装: + +```sh +sudo curl -fsSL -o /usr/share/keyrings/daeuniverse-archive-goose.gpg https://daeuniverse.pages.dev/daeuniverse-archive-goose.gpg +sudo apt update +sudo apt install v2raya +sudo systemctl enable --now v2raya +``` + +修改服务单元请用 `sudo systemctl edit --full v2raya.service`;直接修改已安装的文件会在下次升级时被覆盖。 + +
+ +
+Fedora、RHEL、openSUSE 与其他 RPM 发行版 + +Fedora、RHEL 及其衍生版: + +```sh +sudo curl -fsSL -o /etc/yum.repos.d/daeuniverse.repo https://daeuniverse.pages.dev/daeuniverse.repo +sudo dnf install v2raya +``` + +openSUSE: + +```sh +sudo curl -fsSL -o /etc/zypp/repos.d/daeuniverse.repo https://daeuniverse.pages.dev/daeuniverse.repo +sudo zypper install v2raya +``` + +然后启用服务: + +```sh +sudo systemctl enable --now v2raya +``` + +
+ +
+Arch Linux + +AUR 中的 `v2raya` 从源码构建,`v2raya-bin` 使用发布的二进制文件。发布页也提供 `installer_archlinux__.pkg.tar.zst`,可用 `pacman -U` 安装。 + +```sh +paru -S v2raya-bin +sudo systemctl enable --now v2raya +``` + +
+ +
+Gentoo、Alpine 与其他 OpenRC 系统 + +在 Gentoo 上,从 [gentoo-zh](https://github.com/gentoo-zh/overlay) overlay 安装,再启用服务: + +```sh +sudo emerge net-proxy/v2rayA +sudo rc-update add v2raya default +sudo rc-service v2raya start +``` + +其他系统从[发布页](https://github.com/v2rayA/v2rayA/releases)下载对应架构的两个二进制文件,并使用 [`install/universal/`](install/universal/) 中的 OpenRC 文件。以下命令在仓库检出目录中执行,`VERSION` 为不带前缀 `v` 的版本号,示例为 x64: + +```sh +sudo install -m755 "v2raya_linux_x64_${VERSION}" /usr/bin/v2raya +sudo install -m755 "v2raya_core_linux_x64_${VERSION}" /usr/bin/v2raya_core +sudo install -m755 install/universal/v2raya.initd /etc/init.d/v2raya +sudo install -m644 install/universal/v2raya.confd /etc/conf.d/v2raya +sudo rc-update add v2raya default +sudo rc-service v2raya start +``` + +
+ +
+Docker + +镜像为 `ghcr.io/v2raya/v2raya`,Docker Hub 上是 `mzz2017/v2raya`。以下示例针对 Linux 宿主机,赋予容器宿主机网络与特权,透明代理需要这两项: + +```sh +docker run -d --restart=always --privileged --network=host --name v2raya \ + -e V2RAYA_LOG_FILE=/tmp/v2raya.log \ + -v /lib/modules:/lib/modules:ro \ + -v /etc/resolv.conf:/etc/resolv.conf \ + -v /etc/v2raya:/etc/v2raya \ + ghcr.io/v2raya/v2raya +``` + +改用桥接网络时,需要映射 2017 端口和使用的入站端口,并在设置中开启端口共享,否则入站只监听容器的回环地址。这种方式不提供透明代理。 + +
+ +
+Windows + +[发布页](https://github.com/v2rayA/v2rayA/releases)的 `installer_windows_inno_x64_.exe`(或 `arm64`)安装两个二进制文件并注册服务。`winget install --id v2rayA.v2rayA` 与 [scoop bucket](https://github.com/v2rayA/v2raya-scoop)(`scoop bucket add v2raya https://github.com/v2rayA/v2raya-scoop && scoop install v2raya-np`)使用同一个安装程序。 + +
+ +
+macOS + +[tap](https://github.com/v2rayA/homebrew-v2raya) 安装两个二进制文件。它的服务以当前用户执行 `v2raya --lite`,提供系统代理,不提供 `tun`: + +```sh +brew tap v2raya/v2raya +brew install v2raya/v2raya/v2raya +brew services start v2raya +``` + +需要 `tun` 时,停止该服务,改以 root 运行二进制文件:`sudo "$(brew --prefix v2raya)/bin/v2raya"`。 + +
+ +
+OpenWrt + +[v2raya-openwrt](https://github.com/v2rayA/v2raya-openwrt) 软件源与官方 packages 源目前打包的是 2.2.7.x,搭配独立的 `xray-core`,不是本文描述的版本。在它们更新之前,按下一节的方式手动安装 `mips32`、`mips32le`、`arm64` 或 `x64` 的发布二进制文件,并自行编写 init 脚本。 + +
+ +
+其他 Linux,不使用软件包 + +从[发布页](https://github.com/v2rayA/v2rayA/releases)下载 `v2raya_linux__` 与 `v2raya_core_linux__`(`x86`、`x64`、`arm64`、`armv7`、`riscv64`、`loongarch64`、`mips32`、`mips32le`、`mips64`、`mips64le`),用同名的 `.sha256.txt` 校验,两者都安装到 `/usr/bin`。使用 systemd 时: + +```sh +sudo install -m644 install/universal/v2raya.service /etc/systemd/system/v2raya.service +sudo systemctl daemon-reload +sudo systemctl enable --now v2raya +``` + +使用 OpenRC 时,参照上一节的文件。另有单独维护的 [snap](https://snapcraft.io/v2raya)。 + +
+ +## 首次运行 + +服务监听 `0.0.0.0:2017`,部署在路由器或 NAS 上时,界面地址为 `http://<设备地址>:2017`。第一个注册的账户就是管理员,注册无需登录,因此在共享网络中先限制访问再注册,或者只在本机使用时以 `--address 127.0.0.1:2017` 启动。 + +打开界面并创建管理员。随后的引导流程依次导入订阅或分享链接、把节点加入组、选择路由规则;内核由仪表板的启动按钮或页面顶部的状态按钮启动。 + +内核运行后,把应用指向 SOCKS5 `127.0.0.1:20170` 或 HTTP `127.0.0.1:20171`(`20172` 对 HTTP 应用路由规则),或者在仪表板开启透明代理并从下表选择模式。组内有多个已连接成员时,使用实测延迟最低的成员;固定某个成员后,该组只经它出站。订阅可在订阅页手动更新,也可按设置中的间隔自动更新。 + +仪表板,明暗两种主题 ## 透明代理 -Linux 上透明代理有 `redirect`、`tproxy`、`tun` 三种;Windows 与 macOS 上有 `tun` 与系统代理。 +| 平台 | 模式 | +| --- | --- | +| Linux | `redirect`、`tproxy`、`tun`;`--lite` 下为 GNOME 与 KDE 的系统代理 | +| macOS | `tun`;`--lite` 下为系统代理 | +| Windows | `tun`、系统代理 | -`tun` 内建在核心里:核心打开 TUN 设备、配置地址并接管默认路由。核心自己的连接、direct 出站与 DNS 模块的上游查询不会进入 TUN(Linux 靠 socket 标记,Windows 与 macOS 靠绑定物理网卡);应用发往公网 DNS 的查询由核心的 DNS 模块回答。v2rayA 与核心始终被排除,其他进程可在设置里按可执行文件名排除。直连路由与静态路由始终不经过 TUN。 +系统代理模式修改桌面的代理设置,只覆盖遵守该设置的应用;其他模式拦截流量。 -已知限制:Windows 与 macOS 上直接向局域网 DNS 查询的应用仍会绕过 TUN;系统解析器指向 TUN,不受影响。 +`tun` 模式下,内核打开 TUN 设备并配置地址;自动路由(默认开启)时由 v2rayA 安装路由和 DNS 设置,否则由用户自己的脚本完成。内核自己的连接、direct 出站与 DNS 模块的上游查询不会进入 TUN(Linux 通过套接字标记,Windows 与 macOS 通过绑定物理网卡)。到达 TUN 的 53 端口明文 DNS 由内核的 DNS 模块回答,加密 DNS 不被拦截。v2rayA 与内核始终被排除,其他进程可在设置里按可执行文件名排除。更精确的直连路由与静态路由不经过 TUN。 -## 界面截图 +已知限制:Windows 与 macOS 上直接向局域网 DNS 查询的应用仍会绕过 TUN。系统解析器不受影响:Windows 指向 TUN 网关,macOS 指向内核在 `127.0.0.1` 上的监听,后者要求 53 端口空闲。 -仪表板:核心状态、当前节点、实时流量、透明代理与分流模式、成员延迟、订阅,各占一格。 +## 路由规则 -v2rayA 仪表板(明暗) +RoutingA 编辑器,明暗两种主题 -RoutingA 编辑器:规则以列表编辑,或以带行号、着色和逐行检查的文本编辑;语法速查在旁;可导入导出。 +RoutingA 支持列表和文本两种编辑模式。列表模式为每条规则提供表单;文本模式提供行号、着色和逐行检查。编辑器旁有语法参考,规则可导入导出为文本文件。 -RoutingA 编辑器(明暗) +## 数据与升级 +SQLite 数据库 `v2raya.db` 与生成的内核配置位于配置目录:Linux 与 macOS 为 `/etc/v2raya`,Windows 服务为 `%ProgramData%\SYSTEM\v2rayA`,`--lite` 为用户配置目录,也可用 `--config` 指定。systemd 与 OpenRC 单元把日志写到 `/var/log/v2raya/v2raya.log`,也可用 `--log-file` 或 `V2RAYA_LOG_FILE` 指定。程序只在更新订阅、下载规则数据、测量延迟和解析 DNS 时发起网络请求。 -## 注意 +升级前先停止服务并备份配置目录。从 2.4 以下版本升级时,首次启动会迁移 BoltDB 数据库,旧文件保留为 `bolt.db.bak`(该名称已存在时为 `bolt.db.bak.1` 及后续编号),账户需要重新注册。`v2raya` 与 `v2raya_core` 必须一起升级:仪表板显示内核版本,版本不一致时显示横幅提示。 -1. 程序不会将任何用户数据保存在云端,所有用户数据存放在用户本地配置文件中。 +## 支持 -2. **不要将本项目用于不合法用途。** +问题请到 [Discussions](https://github.com/v2rayA/v2rayA/discussions) 提问,缺陷请到 [Issues](https://github.com/v2rayA/v2rayA/issues) 报告。 -## 感谢 +不要将本项目用于不合法用途。 -[hq450/fancyss](https://github.com/hq450/fancyss) +## 致谢 -[ToutyRater/v2ray-guide](https://github.com/ToutyRater/v2ray-guide/blob/master/routing/sitedata.md) +由 [@mzz2017](https://github.com/mzz2017) 创立。Material Design 3 界面、内核内建的 TUN 与 2.5 的服务端重构由 [@Zakkaus](https://github.com/Zakkaus) 完成。OpenRC 文件来自 [Gentoo 中文社区](https://gentoozh.org)。路由数据来自 [v2fly/domain-list-community](https://github.com/v2fly/domain-list-community) 与 [v2fly/geoip](https://github.com/v2fly/geoip),GFWList 模式使用 [Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat)。透明代理规则参考了 [zfl9/ss-tproxy](https://github.com/zfl9/ss-tproxy) 与 [hq450/fancyss](https://github.com/hq450/fancyss)。 -[nadoo/glider](https://github.com/nadoo/glider) +## 许可证 -[Loyalsoldier/v2ray-rules-dat](https://github.com/Loyalsoldier/v2ray-rules-dat) - -[zfl9/ss-tproxy](https://github.com/zfl9/ss-tproxy/blob/master/ss-tproxy) - -## 协议 - -[![License: AGPL v3-only](https://img.shields.io/badge/License-AGPL%20v3-blue.svg)](https://www.gnu.org/licenses/agpl-3.0) +[AGPL-3.0-only](LICENSE)。内核是 [Xray-core](https://github.com/XTLS/Xray-core) 的分支,采用 MPL-2.0。