1
General Discussion / SSH to VMs disconnect after 1 minute
« on: October 13, 2024, 09:32:29 pm »
Hello all this is my first post. Please be gentle
I have a flat network in my house with OpnSense being my primary firewall, coming from a Sophos XG Appliance that went EOL. On my Arm server I do all my virtualization stuff (containers, virtual machines, etc.). It is running a standard routed virtual network on 192.168.x.x, and my LAN is on a 10.x.x.x subnet.
Pretty sure I am just missing a setting here, because using the same knowledge carried over from my time with the Sophos where this did work; I created the custom gateway pointing at my server's IP, then created a static route for the virtual network using that gateway. I was thinking that should be it, but unfortunately what happens is this: I can reach the VM IP with SSH, I get prompted for my password and can log in and even start 'top' or a 'ping' - within a minute the connection times out and is disconnected.
trace route from each endpoint, including my server, shows that the return traffic from the VM is hitting its gateway, but since the server IP and my MacBook (the client) IP are on the same subnet the server is just sending directly to my MacBook, skipping OpnSense and skipping what I believe to be network routing standards.
So I ask the community, the gurus, and the admins...what is missing from my configuration? Please tell me I don't have to set static routes on every client too? Is there a magic setting I didn't set?
Thanks in advance...
J
I have a flat network in my house with OpnSense being my primary firewall, coming from a Sophos XG Appliance that went EOL. On my Arm server I do all my virtualization stuff (containers, virtual machines, etc.). It is running a standard routed virtual network on 192.168.x.x, and my LAN is on a 10.x.x.x subnet.
Pretty sure I am just missing a setting here, because using the same knowledge carried over from my time with the Sophos where this did work; I created the custom gateway pointing at my server's IP, then created a static route for the virtual network using that gateway. I was thinking that should be it, but unfortunately what happens is this: I can reach the VM IP with SSH, I get prompted for my password and can log in and even start 'top' or a 'ping' - within a minute the connection times out and is disconnected.
trace route from each endpoint, including my server, shows that the return traffic from the VM is hitting its gateway, but since the server IP and my MacBook (the client) IP are on the same subnet the server is just sending directly to my MacBook, skipping OpnSense and skipping what I believe to be network routing standards.
So I ask the community, the gurus, and the admins...what is missing from my configuration? Please tell me I don't have to set static routes on every client too? Is there a magic setting I didn't set?
Thanks in advance...
J