Skip to content

Instantly share code, notes, and snippets.

@brunopk
Last active April 14, 2026 03:36
Show Gist options
  • Select an option

  • Save brunopk/e16db5bb2bcf97ba7439e229d1e865eb to your computer and use it in GitHub Desktop.

Select an option

Save brunopk/e16db5bb2bcf97ba7439e229d1e865eb to your computer and use it in GitHub Desktop.
Proxmox

Configuring WiFi

  1. Install Proxmox as described in this blog.
  2. In the Proxmox machine (through the web GUI):
    1. Install wpa-supplicant :
      apt-get install wpa-supplicant
    2. Create the /etc/wpa_supplicant/wpa_supplicant.conf with this:
      ctrl_interface=/run/wpa_supplicant
      update_config=1
    3. Find the corresponding Wi-Fi interface :
      ip link
    4. Assuming the corresponding Wi-Fi interface is named wlp1s0, start wpa_supplicant :
      wpa_supplicant -B -i wlp1s0 -c /etc/wpa_supplicant/wpa_supplicant.conf
    5. Use the scan feature of wpa_cli to find the SSID for your Wi-Fi network.
    6. Follow steps 1 to 3 in this blog with previous SSID and your Wi-Fi password and using this configuration for static IP:
      auto lo
      iface lo inet loopback
      
      # Wifi interface autoconnect using wpa_supplicant.conf
      auto wlp1s0
      iface wlp1s0 inet static
              address 192.168.0.2
              netmask 255.255.255.0
              gateway 192.168.0.1
              dns-nameservers 1.1.1.1 8.8.8.8
              wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
      
      # Virtual bridge network
      auto vmbr0
      iface vmbr0 inet static
              address 10.1.1.1/24
              bridge-ports none
              bridge-stp off
              bridge-fd 0
      
              post-up echo 1 > /proc/sys/net/ipv4/ip_forward
              post-up iptables -t nat -A POSTROUTING -s '10.1.1.0/24' -o wlp1s0 -j MASQUERADE
              post-down iptables -t nat -D POSTROUTING -s '10.1.1.0/24' -o wlp1s0 -j MASQUERADE
              post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
              post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
      
      source /etc/network/interfaces.d/*
      
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment