A small CLI for managing xray proxy
  • Rust 97.8%
  • Shell 2.2%
Find a file
2026-10-10 16:05:58 +03:00
.woodpecker Bump v0.6.1 2026-10-03 21:13:34 +03:00
aur Update aur 2026-10-10 16:05:58 +03:00
src Add suppress_prefixlength 2026-10-10 15:22:02 +03:00
.gitignore Initial commit 2026-06-23 17:46:45 +03:00
.gitmodules Add aur submodules 2026-06-24 00:14:09 +03:00
Cargo.lock Bump v0.6.2 2026-10-10 15:22:30 +03:00
Cargo.toml Bump v0.6.2 2026-10-10 15:22:30 +03:00
codebook.toml Add all vless variants 2026-10-03 19:24:49 +03:00
install.sh Revert "Remove systemd unit" 2026-07-25 21:34:13 +09:00
LICENSE Create LICENSE 2026-06-23 20:09:53 +03:00
PKGBUILD Revert "Remove systemd unit" 2026-07-25 21:34:13 +09:00
README.md Fixes 2026-10-03 20:33:55 +03:00
v2rs.service Fixes 2026-10-03 20:33:55 +03:00

v2rs

A small CLI for managing xray proxy.

It fetches subscription links, generates the Xray config, sets up a v2rs TUN interface with policy routing, and runs xray as a transient systemd unit (v2rs-xray).

Installation

1. Add the repository

Import the signing key:

wget -O sign.gpg https://git.igorek.dev/api/packages/igorechek06/arch/repository.key
pacman-key --add sign.gpg
pacman-key --lsign-key 'igorechek06@noreply.git.igorek.dev'

Add the repo to /etc/pacman.conf:

[v2rs]
SigLevel = Required
Server = https://git.igorek.dev/api/packages/igorechek06/arch/v2rs/$arch

2. Install xray

v2rs needs an xray backend, which lives in the AUR. Install either xray or xray-bin first (e.g. with an AUR helper):

paru -S xray   # or: paru -S xray-bin

3. Install v2rs

pacman -Sy v2rs

Usage

v2rs sub add url <name> <link>   # add a subscription and fetch its configs
v2rs cfg list                    # list configs
v2rs cfg sel <number>            # pick the active config
v2rs start                       # route traffic through the proxy
v2rs status                      # show state
v2rs stop                        # restore direct traffic

Run v2rs --help for the full command list.

To start the proxy on boot, enable the bundled unit:

systemctl enable v2rs