From 02bbb89dd7b6b0b3206059f23d1be7d5721a9647 Mon Sep 17 00:00:00 2001 From: Valeriy Manzhos <47538801+InvisibleRain@users.noreply.github.com> Date: Mon, 6 Apr 2026 14:16:59 +0300 Subject: [PATCH] Add routing table to rt_tables --- package-debian.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/package-debian.sh b/package-debian.sh index 54f62b0f..2949dcfc 100644 --- a/package-debian.sh +++ b/package-debian.sh @@ -574,6 +574,10 @@ set -e useradd --no-create-home --uid 785 --system v2rayn-core groupadd v2rayn # Users in this group are allowed to use TUN id -u 1000 && gpasswd -a $(id -un 1000) v2rayn +if [ ! -d /etc/iproute2/rt_tables]; then + mkdir -p /etc/iproute2/ +fi +grep '^6418 ' /etc/iproute2/rt_tables || echo '6418 v2rayn-tun' >> /etc/iproute2/rt_tables exit 0 EOF