Am Wed, 19 Jun 2024 10:14:32 +0800 schrieb Jeff Peng <j...@tls-mail.com>:
> when my server is a vps who has floating IP (that means, the server's > iP is an internal IP, the public ip is bond on provider's > router/firewall devices), then my ssh client connecting to the server > will never disconnect even if I changed my local gateway (for example > switching VPN). If you enable a VPN tunnel traffic may go through, but it is also possible to bind it to a specific interface tat doesn't care about the tunnel. Use a network sniffer to investigate that. > if the vps is a normal IPv4 box then switching localnet will always > disconnect. Please specify exactly what are you doing here.