[GH-ISSUE #2549] route to VPS not added when using hosted solution and PC has secondary route tables #1154

Open
opened 2026-10-13 20:35:24 +00:00 by bsakaguchi · 1 comment
Owner

Originally created by @rgalexey on GitHub (Apr 30, 2026).
Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2549

I was playing with ip_route2 while using Amnezia Client with VPS.

So noticed following thing.
For example IP of my VPS is 5.6.7.8
So when Amnezia connected to VPN it always add route like
ip r add 5.6.7.8 via MY_ROUTER_IP dev eth0

But if I will add some route to other routing table
For example
ip r add 1.1.1.1 via MY_OTHER_ROUER dev eth0 table myroutetable

Amnezia in that case will fail to add route
ip r add 5.6.7.8 via MY_ROUTER_IP dev eth0

So basically VPN wil not work.
I had add in such case that route manualy.

Somehow Amnezia confused when any other route tables exist.
And shows error 'Amnezia LinuxRouteMonitor : No default gateway available, skipping exclusion route'

OS: Fedora 44
Amnezia Client: AmneziaVPN_4.8.15.4

Here is log while fail is happaning:
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.519Z] [DEBUG] Amnezia LinuxRouteMonitor : Adding exclusion route for 5.6.7.8/32
Apr 30 22:56:27 phantom kernel: amn0: entered promiscuous mode
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [WARNING] Amnezia LinuxRouteMonitor : No default gateway available, skipping exclusion route
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [DEBUG] Amnezia WireguardUtilsLinux : Configuring peer ****************/NmFckHlkvDcowQ= via 5.6.7.8
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [DEBUG] Amnezia LinuxRouteMonitor : Adding exclusion route for 5.6.7.8/32
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [WARNING] Amnezia LinuxRouteMonitor : No default gateway available, skipping exclusion route
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [DEBUG] Amnezia LinuxRouteMonitor : Adding exclusion route for /999999
Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [WARNING] Amnezia LinuxRouteMonitor : Invalid destination prefix

Originally created by @rgalexey on GitHub (Apr 30, 2026). Original GitHub issue: https://github.com/amnezia-vpn/amnezia-client/issues/2549 I was playing with ip_route2 while using Amnezia Client with VPS. So noticed following thing. For example IP of my VPS is 5.6.7.8 So when Amnezia connected to VPN it always add route like ip r add 5.6.7.8 via MY_ROUTER_IP dev eth0 But if I will add some route to other routing table For example ip r add 1.1.1.1 via MY_OTHER_ROUER dev eth0 table myroutetable Amnezia in that case will fail to add route ip r add 5.6.7.8 via MY_ROUTER_IP dev eth0 So basically VPN wil not work. I had add in such case that route manualy. Somehow Amnezia confused when any other route tables exist. And shows error 'Amnezia LinuxRouteMonitor : No default gateway available, skipping exclusion route' OS: Fedora 44 Amnezia Client: AmneziaVPN_4.8.15.4 Here is log while fail is happaning: Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.519Z] [DEBUG] Amnezia LinuxRouteMonitor : Adding exclusion route for 5.6.7.8/32 Apr 30 22:56:27 phantom kernel: amn0: entered promiscuous mode Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [WARNING] Amnezia LinuxRouteMonitor : No default gateway available, skipping exclusion route Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [DEBUG] Amnezia WireguardUtilsLinux : Configuring peer ****************/NmFckHlkvDcowQ= via 5.6.7.8 Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [DEBUG] Amnezia LinuxRouteMonitor : Adding exclusion route for 5.6.7.8/32 Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [WARNING] Amnezia LinuxRouteMonitor : No default gateway available, skipping exclusion route Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [DEBUG] Amnezia LinuxRouteMonitor : Adding exclusion route for /999999 Apr 30 22:56:27 phantom AmneziaVPN-service.sh[281087]: [2026-04-30 19:56:27.520Z] [WARNING] Amnezia LinuxRouteMonitor : Invalid destination prefix
Author
Owner

@rgalexey commented on GitHub (Sep 14, 2026):

Installed 5.0.2 client
Issue is not there anymore

<!-- gh-comment-id:5662465230 --> @rgalexey commented on GitHub (Sep 14, 2026): Installed 5.0.2 client Issue is not there anymore
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
amnezia-vpn/amnezia-client#1154
No description provided.