[SOLVED] Proxmox server access through VPN/different subnet

polouis

New Member
Jul 8, 2025
2
0
1
Hello,
I have a Proxmox server on my local network. Everything works from my local network but not when I’m connected through VPN.
Here is /etc/hosts file of proxmox server :
Bash:
127.0.0.1 localhost.localdomain localhost
192.168.1.2 pve.polouis.com pve

# The following lines are desirable for IPv6 capable hosts

::1     ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts
and /etc/network/interfaces :
Code:
auto lo
iface lo inet loopback

iface enp1s0 inet manual

auto vmbr0
iface vmbr0 inet static
        address 192.168.1.2/24
        gateway 192.168.1.1
        bridge-ports enp1s0
        bridge-stp off
        bridge-fd 0

iface wlo1 inet manual

source /etc/network/interfaces.d/*
Everything works perfectly when I try to access my admin interface https://192.168.1.2:8006 from my local network.

I configured a Wireguard VPN server on my Internet router. When I connect through this VPN, I have this IP : 192.168.27.65. I have access to different machines on my network. I can even ssh to the VM I created on proxmox which has IP 192.168.1.195. But I cannot connect to proxmox admin interface. The connection timeouts in my web browser, 100% packet loss with ping...

What can I do to investigate ?
 
I found my error, my gateway was not the default value 192.168.1.1 but 192.168.1.254 instead. After fixing the gateway, proxmox was accessible from the other subnet but my VM was not working anymore. After recreating the VM, everything is working perfectly from every subnet !