[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: KVM Bridge wlan0



	Hi.

On Sun, 06 Mar 2016 12:33:57 -0500
timothy.marion@marion.systems wrote:

> I can only find 1 reference to using wlan0 for bridging.
> https://wiki.debian.org/BridgeNetworkConnections This WEB Site and it
> talks about using ebtable. Is ebtable the only way to have a bridge for
> KVM with wlan0 ?

No. ebtables come after the bridge is set up. Consider ebtables a form
of access control. It's not mandatory to use them by any means.


> I refuse to believe I am the only human on earth trying to do KVM on a
> laptop with wlan0. Somebody must have done this already. I cannot be 
> the first person to want to bridge an wlan0 interface.

Of course you're not the first. So...


> wpa-psk	<pre-shared-key was here>

First, I suggest you to change your WPA authentication right away, as
you've just shared your WPA key with all the world.

Second,


> auto br0
> iface br0 inet static
<some usual interface stanzas>
>       bridge_ports eth0

This part is wrong. You want to bridge some interfaces to wlan0 via
br0, yet you don't include wlan0 into the bridge.
The correct way of doing this should be:

bridge_ports eth0 wlan0

Assuming, of course, that you'll never want to have different IPs on
eth0 and wlan0.


Third, 

> Mar 06 12:08:43 beeker networking[2344]: Configuring network
> interfaces...can't add wlan0 to bridge br0: Operation not supported

something strange goes here. You've told interfaces(5) not to add wlan0
to br0, yet there's someone who tries to do it. Is it the manual
invocation of "brctl addif"?

"can't add wlan0 to bridge br0: Operation not supported" should be
easily defeated with good old:

iw dev wlan0 set 4addr on

I.e. edit your /etc/network/interfaces like this:

auto wlan0
iface wlan0 inet manual
      wpa_ssid 	XXX
      wpa-psk	YYY
      pre-up /sbin/iw dev wlan0 set 4addr on

Reco


Reply to: