[TUTORIAL] HOWTO - Proxmox VE 8-1.2 Wifi w/ SNAT

@jeenam
Hello,
since I am new to Proxmox, I wanted to ask what I have to understand by Prerequisites: (2)? What do I have to set in my router (FRITZ!Box) so that I can use VMs and co via WLAN?

I look forward to your help!
 
@jeenam
Hello,
since I am new to Proxmox, I wanted to ask what I have to understand by Prerequisites: (2)? What do I have to set in my router (FRITZ!Box) so that I can use VMs and co via WLAN?

I look forward to your help!

https://en.avm.de/service/knowledge...nfiguring-a-static-IP-route-in-the-FRITZ-Box/

Configure your wifi router to route to networks that will be associated with wifi adapter. The link above explains how to configure static routes on your specific router. Example for /24 network:

Destination = 192.168.3.0
Netmask = 255.255.255.0
Gateway = 192.168.1.100 (specify IP address of wifi adapter)
 
Last edited:
Question: Why do you define vnet1 both in /etc/network/interfaces and through SDN (which ends up in /etc/network/interfaces.d/sdn?

The systemd networking service reads its configuration from /etc/network/interfaces. If you don't define it there it will not bring up the network interface. The reason for the existence of the SDN config should be self-explanatory.
 
The systemd networking service reads its configuration from /etc/network/interfaces. If you don't define it there it will not bring up the network interface. The reason for the existence of the SDN config should be self-explanatory.
Huh? /etc/network/interfaces has as last line source /etc/network/interfaces.d/* so there is no need to duplicate definitions that are included in any file in that directory. The SDN config is activated by and integrated with systemd in this way. And without that source line, SDN won't work.
 
What does vmbr0 do in this configuration?

Nothing. The Proxmox web UI listens on all addresses so you may be able safely remove it. I've never bothered because the physical network interface vmbr0 is bridged to is unused.
 
Huh? /etc/network/interfaces has as last line source /etc/network/interfaces.d/* so there is no need to duplicate definitions that are included in any file in that directory. The SDN config is activated by and integrated with systemd in this way. And without that source line, SDN won't work.

I'd never even bothered to look in that directory and didn't realize there was a configuration file in there until you mentioned it. You can obviously port the interface config into the file in that directory instead. One item of note is that if source /etc/network/interfaces.d/* is not the last line in /etc/network/interfaces SDN will be completely disabled in Proxmox.

https://pve.proxmox.com/pve-docs/chapter-pvesdn.html

Screenshot 2024-12-19 at 10.54.04 PM.png
 
Last edited:
Many thanks for this.
But i am not able to complete all steps. Blocked on "STEP 12".
Under "datacenter>SDN" I found and configured my "zone" and "vnet" but I can't find the "subnet" option in the SDN option.
Need help me to complete the configuration.

I am using PVE 8.3.3 and I am a new user.

Thanks in advance
 
Many thanks for this.
But i am not able to complete all steps. Blocked on "STEP 12".
Under "datacenter>SDN" I found and configured my "zone" and "vnet" but I can't find the "subnet" option in the SDN option.
Need help me to complete the configuration.

I am using PVE 8.3.3 and I am a new user.

Thanks in advance

I checked the web UI for my server and could not find the SDN section. Read the following post for a fix. Seems this issue popped up with the recent web UI revamp. You'll need to run apt-get dist-upgrade. I haven't tested this myself yet, but will report back later after I can reboot my server.

 
Last edited:
Many thanks for this.
But i am not able to complete all steps. Blocked on "STEP 12".
Under "datacenter>SDN" I found and configured my "zone" and "vnet" but I can't find the "subnet" option in the SDN option.
Need help me to complete the configuration.

I am using PVE 8.3.3 and I am a new user.

Thanks in advance

Finally got around to "fixing" my web UI so SDN appeared again (had to run apt dist-upgrade). Here's a screenshot showing where Subnets appears. You must click on the name of the vnet you've created for the Subnets to actually appear.


subnets.png
 
Hello,
i have follow this tutorial and work fine, i'm able to reach proxmox server and internal vm from my lan using a windows laptop. But i have a question for understand how can be the virtual machines accessed using the name.

My lan use 192.168.1/24 network and i have this situation

client machine ------------> router (dns server + with static route to proxmox) -----------------> proxmox server ---------------> virtual machine (home assistant os)
192.168.1.33 ------------------------------------>192.168.1.1---------------------------------------------------> 192.168.1.225 ------------------------------->192.168.2.10

when from my client try to contact http://192.168.2.10:8123 all work fine and i'm able to reach HA.

But how can do this using dns resolution and so using http://myvirtualmachinename:8123 from my client machine ?

Any suggestion is appreciated, thanks.
 
Last edited: