No web access without gateway

Jul 11, 2024
3
0
1
Have an interesting one that I don't quite understand. On all our PVE installs I've found that unless I have a gateway specified that web interface will not work.

I have a few PVE hosts that exist on subnets that are private and not routing outside the subnet. If I remove the gateway from the interface or bridge the web interface will no longer respond. I can still SSH in and manage from the shell but the web interface will not respond. Put the gateway back in, take the interface down/up and boom it instantly works again. I am not opposed to having the gateway in there just curious what the issue is here without it.
 
Are you sure? Out of curiosity, I tried removing gateway on a fresh 8.2.2 install and the web proxy is just fine, also after reboot. Outside of the subnet, as expected, destination unreachable.

What's your /etc/network/interfaces like?