AdguardTeam / AdGuardVPNCLI

AdGuard VPN command-line version
https://adguard-vpn.com/
68 stars 1 forks source link

SSH connections to a server is broken when it runs AG VPN client with default settings #7

Closed ameshkov closed 5 months ago

ameshkov commented 7 months ago

Imagine a situation like this:

  1. I run the VPN client on a cloud server.
  2. It is configured to operate in VPN mode and add routes automatically.
  3. I run adguardvpn-cli connect, it sets up routing rules and it immediately breaks my SSH session to the server.
  4. So incoming SSH connections to the server stay broken.

Can we use some solutions from this thread automatically? https://www.reddit.com/r/WireGuard/comments/nglt05/ssh_tunnel_breaks_when_connecting_to_vpn/

ghost commented 7 months ago

These example configs may be of some use to you, specifically regarding PersistentKeepalive and AllowedIP.