Unable to share wifi through ethernet

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 attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.



Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.










share|improve this question

























    up vote
    1
    down vote

    favorite












    I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.



    Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.










    share|improve this question























      up vote
      1
      down vote

      favorite









      up vote
      1
      down vote

      favorite











      I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.



      Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.










      share|improve this question













      I'm attempting to share my wifi connection from my Ubuntu computer to my raspberry pi through the ethernet port. I've tried a lot of things and nothing seems to work.



      Right now I've created a wired connection, set it to "share to other computers" and "allow all users to connect', and then on my wifi connection I switched it to "allow all users.." and "shared to other computers". I really have no idea why it doesn't work.







      networking wireless ethernet






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 14 at 4:15









      Astrum

      1115




      1115




















          2 Answers
          2






          active

          oldest

          votes

















          up vote
          2
          down vote













          Try this



          Enable IP forwarding. This is done either by using



          echo "1" > /proc/sys/net/ipv4/ip_forward


          After that add a rule telling to forward the traffic



          sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
          sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT


          Because you router do not known for your lan network we must do masquarade



          sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE


          NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
          You can see card's names with command ip a or ifconfig






          share|improve this answer



























            up vote
            0
            down vote













            I just had the same issue and solved it like this.



            In the terminal type



            nm-connection-editor



            When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.



            Then save the settings and it should work



            from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html






            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',
              convertImagesToLinks: true,
              noModals: false,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              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%2faskubuntu.com%2fquestions%2f1005994%2funable-to-share-wifi-through-ethernet%23new-answer', 'question_page');

              );

              Post as a guest






























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes








              up vote
              2
              down vote













              Try this



              Enable IP forwarding. This is done either by using



              echo "1" > /proc/sys/net/ipv4/ip_forward


              After that add a rule telling to forward the traffic



              sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
              sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT


              Because you router do not known for your lan network we must do masquarade



              sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE


              NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
              You can see card's names with command ip a or ifconfig






              share|improve this answer
























                up vote
                2
                down vote













                Try this



                Enable IP forwarding. This is done either by using



                echo "1" > /proc/sys/net/ipv4/ip_forward


                After that add a rule telling to forward the traffic



                sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
                sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT


                Because you router do not known for your lan network we must do masquarade



                sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE


                NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
                You can see card's names with command ip a or ifconfig






                share|improve this answer






















                  up vote
                  2
                  down vote










                  up vote
                  2
                  down vote









                  Try this



                  Enable IP forwarding. This is done either by using



                  echo "1" > /proc/sys/net/ipv4/ip_forward


                  After that add a rule telling to forward the traffic



                  sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
                  sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT


                  Because you router do not known for your lan network we must do masquarade



                  sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE


                  NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
                  You can see card's names with command ip a or ifconfig






                  share|improve this answer












                  Try this



                  Enable IP forwarding. This is done either by using



                  echo "1" > /proc/sys/net/ipv4/ip_forward


                  After that add a rule telling to forward the traffic



                  sudo iptables -A FORWARD -i eth0 -o wifi0 -j ACCEPT
                  sudo iptables -A FORWARD -i wifi0 -o eth0 -m state --state ESTABLISHED,RELATED -j ACCEPT


                  Because you router do not known for your lan network we must do masquarade



                  sudo iptables -t nat -A POSTROUTING -o wifi0 -j MASQUERADE


                  NOTE: In example eth0 is name of nic card, wifi0 is name of your wifi card.
                  You can see card's names with command ip a or ifconfig







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 14 at 7:02









                  2707974

                  7,58852137




                  7,58852137






















                      up vote
                      0
                      down vote













                      I just had the same issue and solved it like this.



                      In the terminal type



                      nm-connection-editor



                      When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.



                      Then save the settings and it should work



                      from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html






                      share|improve this answer
























                        up vote
                        0
                        down vote













                        I just had the same issue and solved it like this.



                        In the terminal type



                        nm-connection-editor



                        When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.



                        Then save the settings and it should work



                        from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html






                        share|improve this answer






















                          up vote
                          0
                          down vote










                          up vote
                          0
                          down vote









                          I just had the same issue and solved it like this.



                          In the terminal type



                          nm-connection-editor



                          When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.



                          Then save the settings and it should work



                          from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html






                          share|improve this answer












                          I just had the same issue and solved it like this.



                          In the terminal type



                          nm-connection-editor



                          When it opens, select the wired connection item, clicking the edit button (the cog). In that menu, switch to the IPv4 tab, and select the method: 'shared to other computers'.



                          Then save the settings and it should work



                          from https://www.crookm.com/2018/05/sharing-wifi-connection-over-ethernet.html







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Jul 11 at 5:14









                          P4ul

                          12117




                          12117



























                               

                              draft saved


                              draft discarded















































                               


                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function ()
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1005994%2funable-to-share-wifi-through-ethernet%23new-answer', 'question_page');

                              );

                              Post as a guest













































































                              Popular posts from this blog

                              Which professions warranted travel in Medieval times?

                              How do so many people here on Academia.SE, and in general, afford lavish higher education programs?

                              Trouble downloading packages list due to a “Hash sum mismatch” error