How to get access to host wifi interface from docker container

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











up vote
0
down vote

favorite












I have docker container of debian-based OS(I'm using kalilinux/kali-linux-docker image). How can I gain access to my host wifi adapter from that container?



I'm using:



  • Docker CE 17.06.0-ce-win19 (12801)

  • Laptop is on Windows 10

  • USB wifi adapter

  • Start container using this command docker run -it --privileged --net="host" --rm kalilinux/kali-linux-docker bash

Here is iwconfig output:



root@moby:/# iwconfig
br-bddc8b9f6f97 no wireless extensions.
eth0 no wireless extensions.
gre0 no wireless extensions.
br-b83648b3ccb6 no wireless extensions.
ip6tnl0 no wireless extensions.
br-ce31ec8a7751 no wireless extensions.
bond0 no wireless extensions.
lo no wireless extensions.
dummy0 no wireless extensions.
teql0 no wireless extensions.
ip6_vti0 no wireless extensions.
ip_vti0 no wireless extensions.
tunl0 no wireless extensions.
docker0 no wireless extensions.
ip6gre0 no wireless extensions.
gretap0 no wireless extensions.
hvint0 no wireless extensions.
sit0 no wireless extensions.


So, there are neither integrated nor USB wifi adapter in the list










share|improve this question



















  • 1




    Maybe, this might help you : wiki : Container-access-to-wireless-network-interface
    – Hunter.S.Thompson
    Jul 22 '17 at 19:37














up vote
0
down vote

favorite












I have docker container of debian-based OS(I'm using kalilinux/kali-linux-docker image). How can I gain access to my host wifi adapter from that container?



I'm using:



  • Docker CE 17.06.0-ce-win19 (12801)

  • Laptop is on Windows 10

  • USB wifi adapter

  • Start container using this command docker run -it --privileged --net="host" --rm kalilinux/kali-linux-docker bash

Here is iwconfig output:



root@moby:/# iwconfig
br-bddc8b9f6f97 no wireless extensions.
eth0 no wireless extensions.
gre0 no wireless extensions.
br-b83648b3ccb6 no wireless extensions.
ip6tnl0 no wireless extensions.
br-ce31ec8a7751 no wireless extensions.
bond0 no wireless extensions.
lo no wireless extensions.
dummy0 no wireless extensions.
teql0 no wireless extensions.
ip6_vti0 no wireless extensions.
ip_vti0 no wireless extensions.
tunl0 no wireless extensions.
docker0 no wireless extensions.
ip6gre0 no wireless extensions.
gretap0 no wireless extensions.
hvint0 no wireless extensions.
sit0 no wireless extensions.


So, there are neither integrated nor USB wifi adapter in the list










share|improve this question



















  • 1




    Maybe, this might help you : wiki : Container-access-to-wireless-network-interface
    – Hunter.S.Thompson
    Jul 22 '17 at 19:37












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have docker container of debian-based OS(I'm using kalilinux/kali-linux-docker image). How can I gain access to my host wifi adapter from that container?



I'm using:



  • Docker CE 17.06.0-ce-win19 (12801)

  • Laptop is on Windows 10

  • USB wifi adapter

  • Start container using this command docker run -it --privileged --net="host" --rm kalilinux/kali-linux-docker bash

Here is iwconfig output:



root@moby:/# iwconfig
br-bddc8b9f6f97 no wireless extensions.
eth0 no wireless extensions.
gre0 no wireless extensions.
br-b83648b3ccb6 no wireless extensions.
ip6tnl0 no wireless extensions.
br-ce31ec8a7751 no wireless extensions.
bond0 no wireless extensions.
lo no wireless extensions.
dummy0 no wireless extensions.
teql0 no wireless extensions.
ip6_vti0 no wireless extensions.
ip_vti0 no wireless extensions.
tunl0 no wireless extensions.
docker0 no wireless extensions.
ip6gre0 no wireless extensions.
gretap0 no wireless extensions.
hvint0 no wireless extensions.
sit0 no wireless extensions.


So, there are neither integrated nor USB wifi adapter in the list










share|improve this question















I have docker container of debian-based OS(I'm using kalilinux/kali-linux-docker image). How can I gain access to my host wifi adapter from that container?



I'm using:



  • Docker CE 17.06.0-ce-win19 (12801)

  • Laptop is on Windows 10

  • USB wifi adapter

  • Start container using this command docker run -it --privileged --net="host" --rm kalilinux/kali-linux-docker bash

Here is iwconfig output:



root@moby:/# iwconfig
br-bddc8b9f6f97 no wireless extensions.
eth0 no wireless extensions.
gre0 no wireless extensions.
br-b83648b3ccb6 no wireless extensions.
ip6tnl0 no wireless extensions.
br-ce31ec8a7751 no wireless extensions.
bond0 no wireless extensions.
lo no wireless extensions.
dummy0 no wireless extensions.
teql0 no wireless extensions.
ip6_vti0 no wireless extensions.
ip_vti0 no wireless extensions.
tunl0 no wireless extensions.
docker0 no wireless extensions.
ip6gre0 no wireless extensions.
gretap0 no wireless extensions.
hvint0 no wireless extensions.
sit0 no wireless extensions.


So, there are neither integrated nor USB wifi adapter in the list







wifi kali-linux docker






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 23 '17 at 13:14









Jeff Schaller

32.7k849110




32.7k849110










asked Jul 22 '17 at 18:40









Slava Nikulin

112




112







  • 1




    Maybe, this might help you : wiki : Container-access-to-wireless-network-interface
    – Hunter.S.Thompson
    Jul 22 '17 at 19:37












  • 1




    Maybe, this might help you : wiki : Container-access-to-wireless-network-interface
    – Hunter.S.Thompson
    Jul 22 '17 at 19:37







1




1




Maybe, this might help you : wiki : Container-access-to-wireless-network-interface
– Hunter.S.Thompson
Jul 22 '17 at 19:37




Maybe, this might help you : wiki : Container-access-to-wireless-network-interface
– Hunter.S.Thompson
Jul 22 '17 at 19:37










1 Answer
1






active

oldest

votes

















up vote
0
down vote













First install this three tools,
apt-get install kali-linux kali-linux-wireless kali-linux-top10



Now commit changes to image,
docker commit <CONTAINER ID> <IMAGE NAME>



Find image id of newly created docker image,
docker images



Time for magic,
docker run -it --net="host" --privileged <IMAGE NAME> /bin/bash



Source: Run Airmon-ng from VM without external “USB Wireless card”






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%2f381155%2fhow-to-get-access-to-host-wifi-interface-from-docker-container%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
    0
    down vote













    First install this three tools,
    apt-get install kali-linux kali-linux-wireless kali-linux-top10



    Now commit changes to image,
    docker commit <CONTAINER ID> <IMAGE NAME>



    Find image id of newly created docker image,
    docker images



    Time for magic,
    docker run -it --net="host" --privileged <IMAGE NAME> /bin/bash



    Source: Run Airmon-ng from VM without external “USB Wireless card”






    share|improve this answer
























      up vote
      0
      down vote













      First install this three tools,
      apt-get install kali-linux kali-linux-wireless kali-linux-top10



      Now commit changes to image,
      docker commit <CONTAINER ID> <IMAGE NAME>



      Find image id of newly created docker image,
      docker images



      Time for magic,
      docker run -it --net="host" --privileged <IMAGE NAME> /bin/bash



      Source: Run Airmon-ng from VM without external “USB Wireless card”






      share|improve this answer






















        up vote
        0
        down vote










        up vote
        0
        down vote









        First install this three tools,
        apt-get install kali-linux kali-linux-wireless kali-linux-top10



        Now commit changes to image,
        docker commit <CONTAINER ID> <IMAGE NAME>



        Find image id of newly created docker image,
        docker images



        Time for magic,
        docker run -it --net="host" --privileged <IMAGE NAME> /bin/bash



        Source: Run Airmon-ng from VM without external “USB Wireless card”






        share|improve this answer












        First install this three tools,
        apt-get install kali-linux kali-linux-wireless kali-linux-top10



        Now commit changes to image,
        docker commit <CONTAINER ID> <IMAGE NAME>



        Find image id of newly created docker image,
        docker images



        Time for magic,
        docker run -it --net="host" --privileged <IMAGE NAME> /bin/bash



        Source: Run Airmon-ng from VM without external “USB Wireless card”







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Sep 18 '17 at 19:44









        Gaurav Gandhi

        1013




        1013



























             

            draft saved


            draft discarded















































             


            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f381155%2fhow-to-get-access-to-host-wifi-interface-from-docker-container%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?

            Bahrain

            Postfix configuration issue with fips on centos 7; mailgun relay