I have 2 hosts (linux) on my home LAN. Host A makes an SSH connection to the host B. Now, when I connect A to a VPN, I am still able to work with the SSH terminal from A to B. As a simple proof, I checked the public ip from the SSH conn to B with curl, and it is different from the A's ip (that is inside the VPN now)
Is this expected? Is it a bug? As I understand, connecting to the VPN should kill the SSH connection from A to B as A 'should not be visible' in the LAN anymore. Right?