mirror of
https://github.com/2dust/v2rayN.git
synced 2026-04-16 12:35:46 +00:00
Add routing table to rt_tables
This commit is contained in:
parent
e196ea2fe0
commit
02bbb89dd7
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue