[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: