Virtual Wireless Access Point












5















Basically, I want to be able to connect to a wireless network from my laptop. Then, I want my virtual machine to acquire internet access via a bridged connection from ETH0 of the VM to the host’s primary wireless adapter.I have already successfully accomplished this much.



Now, I have eth1 configured as a DHCP server on the virtual machine (aka DEBIAN Router). Currently, I have this bridged to the physical 10/100 nic on my laptop (for now, Ill address the wifi part of this connection later). The NIC itself obtains IP from the VM, which is fine, i assume. I connected my netbook to the physical 10/100 port; it receives an IP address from ETH1 just fine, but fails to connect to the internet. I have ip forwarding enabled, but don't know how to route internet requests outside of the LAN the VM is hosting, to the WAN the laptops physical wifi nic is connected to.



I can access the virtual machines web server, but no resources outside of the virtual LAN. So this is where I am stuck. In the end, I want to configure a second wireless NIC on the Host machine as “virtual access point”, not ad-hoc. A client computer will see the virtual ap listed in wireless connections as a standard wireless router, connect to it, and be online. My ultimate goal is to set up traffic analyzing for any clients connected through the “virtual access point” by routing all wireless traffic connected to the second wifi nic, through the internet connection of the primary wireless connection on the host machine.










share|improve this question














bumped to the homepage by Community 27 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.




















    5















    Basically, I want to be able to connect to a wireless network from my laptop. Then, I want my virtual machine to acquire internet access via a bridged connection from ETH0 of the VM to the host’s primary wireless adapter.I have already successfully accomplished this much.



    Now, I have eth1 configured as a DHCP server on the virtual machine (aka DEBIAN Router). Currently, I have this bridged to the physical 10/100 nic on my laptop (for now, Ill address the wifi part of this connection later). The NIC itself obtains IP from the VM, which is fine, i assume. I connected my netbook to the physical 10/100 port; it receives an IP address from ETH1 just fine, but fails to connect to the internet. I have ip forwarding enabled, but don't know how to route internet requests outside of the LAN the VM is hosting, to the WAN the laptops physical wifi nic is connected to.



    I can access the virtual machines web server, but no resources outside of the virtual LAN. So this is where I am stuck. In the end, I want to configure a second wireless NIC on the Host machine as “virtual access point”, not ad-hoc. A client computer will see the virtual ap listed in wireless connections as a standard wireless router, connect to it, and be online. My ultimate goal is to set up traffic analyzing for any clients connected through the “virtual access point” by routing all wireless traffic connected to the second wifi nic, through the internet connection of the primary wireless connection on the host machine.










    share|improve this question














    bumped to the homepage by Community 27 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.


















      5












      5








      5








      Basically, I want to be able to connect to a wireless network from my laptop. Then, I want my virtual machine to acquire internet access via a bridged connection from ETH0 of the VM to the host’s primary wireless adapter.I have already successfully accomplished this much.



      Now, I have eth1 configured as a DHCP server on the virtual machine (aka DEBIAN Router). Currently, I have this bridged to the physical 10/100 nic on my laptop (for now, Ill address the wifi part of this connection later). The NIC itself obtains IP from the VM, which is fine, i assume. I connected my netbook to the physical 10/100 port; it receives an IP address from ETH1 just fine, but fails to connect to the internet. I have ip forwarding enabled, but don't know how to route internet requests outside of the LAN the VM is hosting, to the WAN the laptops physical wifi nic is connected to.



      I can access the virtual machines web server, but no resources outside of the virtual LAN. So this is where I am stuck. In the end, I want to configure a second wireless NIC on the Host machine as “virtual access point”, not ad-hoc. A client computer will see the virtual ap listed in wireless connections as a standard wireless router, connect to it, and be online. My ultimate goal is to set up traffic analyzing for any clients connected through the “virtual access point” by routing all wireless traffic connected to the second wifi nic, through the internet connection of the primary wireless connection on the host machine.










      share|improve this question














      Basically, I want to be able to connect to a wireless network from my laptop. Then, I want my virtual machine to acquire internet access via a bridged connection from ETH0 of the VM to the host’s primary wireless adapter.I have already successfully accomplished this much.



      Now, I have eth1 configured as a DHCP server on the virtual machine (aka DEBIAN Router). Currently, I have this bridged to the physical 10/100 nic on my laptop (for now, Ill address the wifi part of this connection later). The NIC itself obtains IP from the VM, which is fine, i assume. I connected my netbook to the physical 10/100 port; it receives an IP address from ETH1 just fine, but fails to connect to the internet. I have ip forwarding enabled, but don't know how to route internet requests outside of the LAN the VM is hosting, to the WAN the laptops physical wifi nic is connected to.



      I can access the virtual machines web server, but no resources outside of the virtual LAN. So this is where I am stuck. In the end, I want to configure a second wireless NIC on the Host machine as “virtual access point”, not ad-hoc. A client computer will see the virtual ap listed in wireless connections as a standard wireless router, connect to it, and be online. My ultimate goal is to set up traffic analyzing for any clients connected through the “virtual access point” by routing all wireless traffic connected to the second wifi nic, through the internet connection of the primary wireless connection on the host machine.







      debian wifi router dnsmasq






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Dec 9 '12 at 17:04









      jaypiratejaypirate

      261




      261





      bumped to the homepage by Community 27 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 27 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          2 Answers
          2






          active

          oldest

          votes


















          0














          Use the route command in your VM - eg, check out man route.






          share|improve this answer































            0














            You need to set up ip masquerading.






            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',
              autoActivateHeartbeat: false,
              convertImagesToLinks: false,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: null,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              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%2f58026%2fvirtual-wireless-access-point%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              0














              Use the route command in your VM - eg, check out man route.






              share|improve this answer




























                0














                Use the route command in your VM - eg, check out man route.






                share|improve this answer


























                  0












                  0








                  0







                  Use the route command in your VM - eg, check out man route.






                  share|improve this answer













                  Use the route command in your VM - eg, check out man route.







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Mar 28 '13 at 13:04









                  hunter2hunter2

                  227215




                  227215

























                      0














                      You need to set up ip masquerading.






                      share|improve this answer




























                        0














                        You need to set up ip masquerading.






                        share|improve this answer


























                          0












                          0








                          0







                          You need to set up ip masquerading.






                          share|improve this answer













                          You need to set up ip masquerading.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Sep 9 '13 at 14:07









                          psusipsusi

                          13.7k22539




                          13.7k22539






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Unix & Linux Stack Exchange!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f58026%2fvirtual-wireless-access-point%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Accessing regular linux commands in Huawei's Dopra Linux

                              Can't connect RFCOMM socket: Host is down

                              Kernel panic - not syncing: Fatal Exception in Interrupt