'bridged' wifi for qemu kvm (ebtables / parprouted / etc)

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
1
down vote

favorite












I'm trying to set up a virtual machine with a Linux Mint 18.3 host and Win10 x64 guest.



I need this VM accessible from my network. Unfortunately, snaking an Ethernet cable into my room is not an option, and my wifi's chipset (BCM4360) does not support WDS (sudo iw dev wlp6s0 set 4addr on gives an error). So I can't create a real bridge.



I've spent the past 3 days trying a variety of solutions, attempting to get this to work. The best solution I've found so far puts the VM behind a NAT, but at least the VM is able to ping other machines on the network and I get virtio performance gains. https://bbs.archlinux.org/viewtopic.php?id=207907



Unfortunately, this makes my VM invisible to the rest of the network.



I've tried using this: https://wiki.debian.org/BridgeNetworkConnections#Bridging_with_a_wireless_NIC



But far as I am able to tell, ebtables hasn't done anything.



I also tried using parprouted as described here:
https://wiki.debian.org/BridgeNetworkConnectionsProxyArp



However it doesn't seem to work even though the description says




"Reboot, and hosts connected to the bridge's ethernet should acquire a
DHCP address and have full IP connectivity!"




So maybe I just don't have this hooked up right in my VM config?







share|improve this question


























    up vote
    1
    down vote

    favorite












    I'm trying to set up a virtual machine with a Linux Mint 18.3 host and Win10 x64 guest.



    I need this VM accessible from my network. Unfortunately, snaking an Ethernet cable into my room is not an option, and my wifi's chipset (BCM4360) does not support WDS (sudo iw dev wlp6s0 set 4addr on gives an error). So I can't create a real bridge.



    I've spent the past 3 days trying a variety of solutions, attempting to get this to work. The best solution I've found so far puts the VM behind a NAT, but at least the VM is able to ping other machines on the network and I get virtio performance gains. https://bbs.archlinux.org/viewtopic.php?id=207907



    Unfortunately, this makes my VM invisible to the rest of the network.



    I've tried using this: https://wiki.debian.org/BridgeNetworkConnections#Bridging_with_a_wireless_NIC



    But far as I am able to tell, ebtables hasn't done anything.



    I also tried using parprouted as described here:
    https://wiki.debian.org/BridgeNetworkConnectionsProxyArp



    However it doesn't seem to work even though the description says




    "Reboot, and hosts connected to the bridge's ethernet should acquire a
    DHCP address and have full IP connectivity!"




    So maybe I just don't have this hooked up right in my VM config?







    share|improve this question
























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm trying to set up a virtual machine with a Linux Mint 18.3 host and Win10 x64 guest.



      I need this VM accessible from my network. Unfortunately, snaking an Ethernet cable into my room is not an option, and my wifi's chipset (BCM4360) does not support WDS (sudo iw dev wlp6s0 set 4addr on gives an error). So I can't create a real bridge.



      I've spent the past 3 days trying a variety of solutions, attempting to get this to work. The best solution I've found so far puts the VM behind a NAT, but at least the VM is able to ping other machines on the network and I get virtio performance gains. https://bbs.archlinux.org/viewtopic.php?id=207907



      Unfortunately, this makes my VM invisible to the rest of the network.



      I've tried using this: https://wiki.debian.org/BridgeNetworkConnections#Bridging_with_a_wireless_NIC



      But far as I am able to tell, ebtables hasn't done anything.



      I also tried using parprouted as described here:
      https://wiki.debian.org/BridgeNetworkConnectionsProxyArp



      However it doesn't seem to work even though the description says




      "Reboot, and hosts connected to the bridge's ethernet should acquire a
      DHCP address and have full IP connectivity!"




      So maybe I just don't have this hooked up right in my VM config?







      share|improve this question














      I'm trying to set up a virtual machine with a Linux Mint 18.3 host and Win10 x64 guest.



      I need this VM accessible from my network. Unfortunately, snaking an Ethernet cable into my room is not an option, and my wifi's chipset (BCM4360) does not support WDS (sudo iw dev wlp6s0 set 4addr on gives an error). So I can't create a real bridge.



      I've spent the past 3 days trying a variety of solutions, attempting to get this to work. The best solution I've found so far puts the VM behind a NAT, but at least the VM is able to ping other machines on the network and I get virtio performance gains. https://bbs.archlinux.org/viewtopic.php?id=207907



      Unfortunately, this makes my VM invisible to the rest of the network.



      I've tried using this: https://wiki.debian.org/BridgeNetworkConnections#Bridging_with_a_wireless_NIC



      But far as I am able to tell, ebtables hasn't done anything.



      I also tried using parprouted as described here:
      https://wiki.debian.org/BridgeNetworkConnectionsProxyArp



      However it doesn't seem to work even though the description says




      "Reboot, and hosts connected to the bridge's ethernet should acquire a
      DHCP address and have full IP connectivity!"




      So maybe I just don't have this hooked up right in my VM config?









      share|improve this question













      share|improve this question




      share|improve this question








      edited Mar 23 at 22:49

























      asked Mar 23 at 13:54









      user3534080

      62




      62




















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          1
          down vote













          Options:



          1) Does your BCM4360 support two stations at once? (Look at valid interface combinations in iw phy). If yes, make a second station and pass the network interface through to the VM.



          2) If you can control your router (via OpenWRT etc.), try a tunnel for a second network interface. You'll need to add the tunnel endpoint to the LAN/WLAN client bridge on the router.



          3) If none of these work, and as you don't have four-address-mode, keep in mind that in this case the wifi interface will only work with a single MAC address. Which means you either connect the host to the network, or the VM guest, but not both.



          If you can live with the host not being visible on the network, have a look at wlan_kabel. It uses a raw socket to basically steal all packets from the host, and pass it on to some other interface.



          I tried proxy arp once, but never got it working properly.



          4) If you really need both the host and the VM on the network, I'd think buying a cheap WLAN dongle would be simplest option.






          share|improve this answer




















            Your Answer







            StackExchange.ready(function()
            var channelOptions =
            tags: "".split(" "),
            id: "106"
            ;
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function()
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled)
            StackExchange.using("snippets", function()
            createEditor();
            );

            else
            createEditor();

            );

            function createEditor()
            StackExchange.prepareEditor(
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: false,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            );



            );








             

            draft saved


            draft discarded


















            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433075%2fbridged-wifi-for-qemu-kvm-ebtables-parprouted-etc%23new-answer', 'question_page');

            );

            Post as a guest






























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            1
            down vote













            Options:



            1) Does your BCM4360 support two stations at once? (Look at valid interface combinations in iw phy). If yes, make a second station and pass the network interface through to the VM.



            2) If you can control your router (via OpenWRT etc.), try a tunnel for a second network interface. You'll need to add the tunnel endpoint to the LAN/WLAN client bridge on the router.



            3) If none of these work, and as you don't have four-address-mode, keep in mind that in this case the wifi interface will only work with a single MAC address. Which means you either connect the host to the network, or the VM guest, but not both.



            If you can live with the host not being visible on the network, have a look at wlan_kabel. It uses a raw socket to basically steal all packets from the host, and pass it on to some other interface.



            I tried proxy arp once, but never got it working properly.



            4) If you really need both the host and the VM on the network, I'd think buying a cheap WLAN dongle would be simplest option.






            share|improve this answer
























              up vote
              1
              down vote













              Options:



              1) Does your BCM4360 support two stations at once? (Look at valid interface combinations in iw phy). If yes, make a second station and pass the network interface through to the VM.



              2) If you can control your router (via OpenWRT etc.), try a tunnel for a second network interface. You'll need to add the tunnel endpoint to the LAN/WLAN client bridge on the router.



              3) If none of these work, and as you don't have four-address-mode, keep in mind that in this case the wifi interface will only work with a single MAC address. Which means you either connect the host to the network, or the VM guest, but not both.



              If you can live with the host not being visible on the network, have a look at wlan_kabel. It uses a raw socket to basically steal all packets from the host, and pass it on to some other interface.



              I tried proxy arp once, but never got it working properly.



              4) If you really need both the host and the VM on the network, I'd think buying a cheap WLAN dongle would be simplest option.






              share|improve this answer






















                up vote
                1
                down vote










                up vote
                1
                down vote









                Options:



                1) Does your BCM4360 support two stations at once? (Look at valid interface combinations in iw phy). If yes, make a second station and pass the network interface through to the VM.



                2) If you can control your router (via OpenWRT etc.), try a tunnel for a second network interface. You'll need to add the tunnel endpoint to the LAN/WLAN client bridge on the router.



                3) If none of these work, and as you don't have four-address-mode, keep in mind that in this case the wifi interface will only work with a single MAC address. Which means you either connect the host to the network, or the VM guest, but not both.



                If you can live with the host not being visible on the network, have a look at wlan_kabel. It uses a raw socket to basically steal all packets from the host, and pass it on to some other interface.



                I tried proxy arp once, but never got it working properly.



                4) If you really need both the host and the VM on the network, I'd think buying a cheap WLAN dongle would be simplest option.






                share|improve this answer












                Options:



                1) Does your BCM4360 support two stations at once? (Look at valid interface combinations in iw phy). If yes, make a second station and pass the network interface through to the VM.



                2) If you can control your router (via OpenWRT etc.), try a tunnel for a second network interface. You'll need to add the tunnel endpoint to the LAN/WLAN client bridge on the router.



                3) If none of these work, and as you don't have four-address-mode, keep in mind that in this case the wifi interface will only work with a single MAC address. Which means you either connect the host to the network, or the VM guest, but not both.



                If you can live with the host not being visible on the network, have a look at wlan_kabel. It uses a raw socket to basically steal all packets from the host, and pass it on to some other interface.



                I tried proxy arp once, but never got it working properly.



                4) If you really need both the host and the VM on the network, I'd think buying a cheap WLAN dongle would be simplest option.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Mar 24 at 8:31









                dirkt

                14k2930




                14k2930






















                     

                    draft saved


                    draft discarded


























                     


                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function ()
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f433075%2fbridged-wifi-for-qemu-kvm-ebtables-parprouted-etc%23new-answer', 'question_page');

                    );

                    Post as a guest













































































                    Popular posts from this blog

                    How to check contact read email or not when send email to Individual?

                    Displaying single band from multi-band raster using QGIS

                    How many registers does an x86_64 CPU actually have?