I can't use ufw on WSL-Ubuntu












0















I use Windows 10 home (build 17134.471) with WSL-Ubuntu 16.04 (xenial).



I executed apt update -y && ufw --force enable and got the following trace (I don't know what it means - maybe some kernel functions missing thus some failed syscalls).



Is there any way to use WSL-Ubuntu as for today anyway?



Trace:



ERROR: problem running ufw-init
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/4.4.0-17134-Microsoft
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 12
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.
iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

Error occurred at line: 1
Try `iptables-restore -h' or 'iptables-restore --help' for more information.

Problem loading ipv6 (skipping)
Problem running '/etc/ufw/before.rules'
Problem running '/etc/ufw/after.rules'
Problem running '/etc/ufw/user.rules'









share|improve this question





























    0















    I use Windows 10 home (build 17134.471) with WSL-Ubuntu 16.04 (xenial).



    I executed apt update -y && ufw --force enable and got the following trace (I don't know what it means - maybe some kernel functions missing thus some failed syscalls).



    Is there any way to use WSL-Ubuntu as for today anyway?



    Trace:



    ERROR: problem running ufw-init
    modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
    modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
    modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
    modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
    modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
    modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/4.4.0-17134-Microsoft
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 12
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 12
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.
    iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

    Error occurred at line: 1
    Try `iptables-restore -h' or 'iptables-restore --help' for more information.

    Problem loading ipv6 (skipping)
    Problem running '/etc/ufw/before.rules'
    Problem running '/etc/ufw/after.rules'
    Problem running '/etc/ufw/user.rules'









    share|improve this question



























      0












      0








      0


      1






      I use Windows 10 home (build 17134.471) with WSL-Ubuntu 16.04 (xenial).



      I executed apt update -y && ufw --force enable and got the following trace (I don't know what it means - maybe some kernel functions missing thus some failed syscalls).



      Is there any way to use WSL-Ubuntu as for today anyway?



      Trace:



      ERROR: problem running ufw-init
      modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
      modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
      modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
      modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
      modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
      modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/4.4.0-17134-Microsoft
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 12
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 12
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.

      Problem loading ipv6 (skipping)
      Problem running '/etc/ufw/before.rules'
      Problem running '/etc/ufw/after.rules'
      Problem running '/etc/ufw/user.rules'









      share|improve this question
















      I use Windows 10 home (build 17134.471) with WSL-Ubuntu 16.04 (xenial).



      I executed apt update -y && ufw --force enable and got the following trace (I don't know what it means - maybe some kernel functions missing thus some failed syscalls).



      Is there any way to use WSL-Ubuntu as for today anyway?



      Trace:



      ERROR: problem running ufw-init
      modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
      modprobe: FATAL: Module nf_conntrack_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
      modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
      modprobe: FATAL: Module nf_nat_ftp not found in directory /lib/modules/4.4.0-17134-Microsoft
      modprobe: ERROR: ../libkmod/libkmod.c:586 kmod_search_moddep() could not open moddep file '/lib/modules/4.4.0-17134-Microsoft/modules.dep.bin'
      modprobe: FATAL: Module nf_conntrack_netbios_ns not found in directory /lib/modules/4.4.0-17134-Microsoft
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 12
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 12
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.
      iptables-restore v1.6.0: iptables-restore: unable to initialize table 'filter'

      Error occurred at line: 1
      Try `iptables-restore -h' or 'iptables-restore --help' for more information.

      Problem loading ipv6 (skipping)
      Problem running '/etc/ufw/before.rules'
      Problem running '/etc/ufw/after.rules'
      Problem running '/etc/ufw/user.rules'






      security firewall ufw windows-subsystem-for-linux






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 13 '18 at 23:09







      JohnDoea

















      asked Dec 13 '18 at 22:50









      JohnDoeaJohnDoea

      115102259




      115102259






















          1 Answer
          1






          active

          oldest

          votes


















          2














          Because you don't have a Linux kernel.



          ufw is a frontend for netfilter. Netfilter is the Linux Kernels support for filtering IP packets. Windows has a different mechanism, commonly named Windows Firewall.



          ufw only supports netfilter, not Windows Firewall or other IP filtering technologies. It thus only works on systems with a Linux kernel.



          The man page mentions this:




          This  program  is for managing a Linux firewall and aims to provide an
          easy to use interface for the user.



          Some tools are really not portable to different platforms. This includes tools that, like ufw, attempts to interface the operating system kernel.






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "89"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2faskubuntu.com%2fquestions%2f1100739%2fi-cant-use-ufw-on-wsl-ubuntu%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            2














            Because you don't have a Linux kernel.



            ufw is a frontend for netfilter. Netfilter is the Linux Kernels support for filtering IP packets. Windows has a different mechanism, commonly named Windows Firewall.



            ufw only supports netfilter, not Windows Firewall or other IP filtering technologies. It thus only works on systems with a Linux kernel.



            The man page mentions this:




            This  program  is for managing a Linux firewall and aims to provide an
            easy to use interface for the user.



            Some tools are really not portable to different platforms. This includes tools that, like ufw, attempts to interface the operating system kernel.






            share|improve this answer




























              2














              Because you don't have a Linux kernel.



              ufw is a frontend for netfilter. Netfilter is the Linux Kernels support for filtering IP packets. Windows has a different mechanism, commonly named Windows Firewall.



              ufw only supports netfilter, not Windows Firewall or other IP filtering technologies. It thus only works on systems with a Linux kernel.



              The man page mentions this:




              This  program  is for managing a Linux firewall and aims to provide an
              easy to use interface for the user.



              Some tools are really not portable to different platforms. This includes tools that, like ufw, attempts to interface the operating system kernel.






              share|improve this answer


























                2












                2








                2







                Because you don't have a Linux kernel.



                ufw is a frontend for netfilter. Netfilter is the Linux Kernels support for filtering IP packets. Windows has a different mechanism, commonly named Windows Firewall.



                ufw only supports netfilter, not Windows Firewall or other IP filtering technologies. It thus only works on systems with a Linux kernel.



                The man page mentions this:




                This  program  is for managing a Linux firewall and aims to provide an
                easy to use interface for the user.



                Some tools are really not portable to different platforms. This includes tools that, like ufw, attempts to interface the operating system kernel.






                share|improve this answer













                Because you don't have a Linux kernel.



                ufw is a frontend for netfilter. Netfilter is the Linux Kernels support for filtering IP packets. Windows has a different mechanism, commonly named Windows Firewall.



                ufw only supports netfilter, not Windows Firewall or other IP filtering technologies. It thus only works on systems with a Linux kernel.



                The man page mentions this:




                This  program  is for managing a Linux firewall and aims to provide an
                easy to use interface for the user.



                Some tools are really not portable to different platforms. This includes tools that, like ufw, attempts to interface the operating system kernel.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 13 '18 at 23:16









                vidarlovidarlo

                9,60352446




                9,60352446






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Ask Ubuntu!


                    • 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%2faskubuntu.com%2fquestions%2f1100739%2fi-cant-use-ufw-on-wsl-ubuntu%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

                    Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

                    ComboBox Display Member on multiple fields

                    Is it possible to collect Nectar points via Trainline?