Wifi bridge

Jessedw

New Member
Aug 29, 2022
6
0
1
Hello,

I am struggling using my Wifi card to set up a bridge towards my vm, providing them with an internet connection.

I found a post on a debian forum regarding wifi setup with wpa_supplicant. Trying this added with the existing wlp7s0 following conf:
Code:
auto wlp7s0
iface wlp7s0 inet manual
    wpa-driver madwifi
    wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp

and the wpa_supplicant.conf
Code:
ctrl_interface=/var/run/wpa_supplicant
ap_scan=1
network={
        ssid="Mothership"
        psk=42455b0e021387a3681a436bb7eb77bac40b478ac93f2241fbf6effc3efa0e59 #from Wpa_passphrase
        key_mgmt=WPA-PSK
        proto=WPA2
        pairwise=CCMP
        group=CCMP
        priority=5
}

trying the ifup wlp7s0 i got following error:
Code:
error: wlp7s0 : wlp7s0: pre-up cmd '/etc/network/if-pre-up.d/wpasupplicant' failed: returned 1 (wpa_supplicant: wpa-roam can only be used with the "manual" inet METHOD
)

What am I doing wrong here?
Thanks in advance!
 
Last edited:
Hi,

a bit of an old guide :). I would try changing "wpa-roam" to "wpa-conf". Maybe this works.
 
Hi,

Thanks for your reply!

after changing to wpa-confand performing a reset using ifdown -a, ifup -a,
It does seem to bring me further but now i recieve an error about the madwifi driver being unsupported...

I am struggling lately with the networking in general,
for some reason the webinterface doesn't work nor does the ssh...

on the welcome screen in the cli the ip also changed and does not correspond anymore to the value i setup in the interfaces file.
I was wondering if me tempering with the wpa_supplicant and interfaces could have something to do with that?

When checking the /var/log/deamon.log I observe entries about trying to lease a certain ip and lots of permission denied of if_rout...
 
Last edited:
Update, I reinstalled proxmox to start clean.

I applied the same changes and got this error when performing an ifup:
Code:
ifup wlp7s0
error: wlp7s0 : wlp7s0: pre-up cmd '/etc/network/if-pre-up.d/wpasupplicant' failed: returned 1 (wpa_supplicant: "madwifi" wpa-driver is unsupported
wpa_supplicant: using "nl80211,wext" wpa-driver instead ...
wpa_supplicant: /sbin/wpa_supplicant daemon failed to start

For reference here is the interface configuration file:
Code:
# network interface settings; autogenerated
# Please do NOT modify this file directly, unless you know what
# you're doing.
#
# If you want to manage parts of the network configuration manually,
# please utilize the 'source' or 'source-directory' directives to do
# so.
# PVE will preserve these directives, but will NOT read its network
# configuration from sourced files, so do not attempt to move any of
# the PVE managed interfaces into external files!

auto lo
iface lo inet loopback

auto enp5s0
iface enp5s0 inet manual
#mobo p1

iface enp6s0 inet manual
#mobo p2

auto enp179s0f0
iface enp179s0f0 inet manual
#Intel p1

iface enp179s0f1 inet manual
#Intel p2

auto vmbr0
iface vmbr0 inet static
    address 192.168.0.100/24
    gateway 192.168.0.1
    bridge-ports enp5s0
    bridge-stp off
    bridge-fd 0
#VM net

auto wlp7s0
iface wlp7s0 inet manual
    wpa-driver madwifi
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
#Wi-fi

auto vmbr1
iface vmbr1 inet manual
    bridge-ports wlp7s0
    bridge-stp off
    bridge-fd 0
#Wi-fi net