dnk: add ip to route table

This commit is contained in:
Daniil Firsov 2022-11-09 17:40:53 +03:00
parent 7ae9f27a9f
commit f162300f0f

View File

@ -89,6 +89,8 @@ PublicKey = ${USER_PUB_KEY}
AllowedIPs = ${USER_IP}
# END ${USER}
EOF
ip -4 route add ${USER_IP}/32 dev ${SERVER_NAME}
}
function remove_user_from_server {