Configuring bridge network in kvm (debian wheezy 7.2)












0















I am trying to run untangle 10 as a guest in kvm. My host system is debian 7.2



My problem is that I am unable to configure bridges/(virtual)NICS which are successfully identified by untangle. I would like to have two NICS in untangle. One for the internet connection and the other one for the internal network.



I already read several tutorials and how-to's and as far as I understood I have to configure network bridges.



I tried to configure them in /etc/network/interfaces



auto lo
iface lo inet loopback

iface eth0 inet manual

auto br0
iface br0 inet dhcp
bridge_ports eth0


I also tried to configure them via virt-manager and I also tried to use macvtap.



In all three cases I was not able to establish a connection via untangle. Is there anything I am missing/doing wrong?










share|improve this question





























    0















    I am trying to run untangle 10 as a guest in kvm. My host system is debian 7.2



    My problem is that I am unable to configure bridges/(virtual)NICS which are successfully identified by untangle. I would like to have two NICS in untangle. One for the internet connection and the other one for the internal network.



    I already read several tutorials and how-to's and as far as I understood I have to configure network bridges.



    I tried to configure them in /etc/network/interfaces



    auto lo
    iface lo inet loopback

    iface eth0 inet manual

    auto br0
    iface br0 inet dhcp
    bridge_ports eth0


    I also tried to configure them via virt-manager and I also tried to use macvtap.



    In all three cases I was not able to establish a connection via untangle. Is there anything I am missing/doing wrong?










    share|improve this question



























      0












      0








      0








      I am trying to run untangle 10 as a guest in kvm. My host system is debian 7.2



      My problem is that I am unable to configure bridges/(virtual)NICS which are successfully identified by untangle. I would like to have two NICS in untangle. One for the internet connection and the other one for the internal network.



      I already read several tutorials and how-to's and as far as I understood I have to configure network bridges.



      I tried to configure them in /etc/network/interfaces



      auto lo
      iface lo inet loopback

      iface eth0 inet manual

      auto br0
      iface br0 inet dhcp
      bridge_ports eth0


      I also tried to configure them via virt-manager and I also tried to use macvtap.



      In all three cases I was not able to establish a connection via untangle. Is there anything I am missing/doing wrong?










      share|improve this question
















      I am trying to run untangle 10 as a guest in kvm. My host system is debian 7.2



      My problem is that I am unable to configure bridges/(virtual)NICS which are successfully identified by untangle. I would like to have two NICS in untangle. One for the internet connection and the other one for the internal network.



      I already read several tutorials and how-to's and as far as I understood I have to configure network bridges.



      I tried to configure them in /etc/network/interfaces



      auto lo
      iface lo inet loopback

      iface eth0 inet manual

      auto br0
      iface br0 inet dhcp
      bridge_ports eth0


      I also tried to configure them via virt-manager and I also tried to use macvtap.



      In all three cases I was not able to establish a connection via untangle. Is there anything I am missing/doing wrong?







      debian kvm bridge






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Dec 15 '18 at 15:18









      Rui F Ribeiro

      41.9k1483142




      41.9k1483142










      asked Nov 12 '13 at 0:44









      FlorianFlorian

      12




      12






















          2 Answers
          2






          active

          oldest

          votes


















          0














          if iptables is active, we can give the following rules.



          sysctl -w net.ipv4.ip_forward=1
          iptables -A FORWARD -m physdev --physdev-out br0 -j ACCEPT
          iptables -A FORWARD -m physdev --physdev-in br0 -j ACCEPT





          share|improve this answer

































            0
















            # The loopback network interface
            auto lo
            iface lo inet loopback

            # The bribge network interface
            auto br0
            iface br0 inet dhcp
            bridge_ports eth0
            bridge_stp off
            bridge_fd 0
            bridge_maxwait 0






            share|improve this answer


























            • Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

              – JigglyNaga
              Jul 29 '16 at 12:55











            • This is an example where only one bridge is used and not needed stp

              – Andrey Golub
              Jul 29 '16 at 13:15












            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%2f100838%2fconfiguring-bridge-network-in-kvm-debian-wheezy-7-2%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














            if iptables is active, we can give the following rules.



            sysctl -w net.ipv4.ip_forward=1
            iptables -A FORWARD -m physdev --physdev-out br0 -j ACCEPT
            iptables -A FORWARD -m physdev --physdev-in br0 -j ACCEPT





            share|improve this answer






























              0














              if iptables is active, we can give the following rules.



              sysctl -w net.ipv4.ip_forward=1
              iptables -A FORWARD -m physdev --physdev-out br0 -j ACCEPT
              iptables -A FORWARD -m physdev --physdev-in br0 -j ACCEPT





              share|improve this answer




























                0












                0








                0







                if iptables is active, we can give the following rules.



                sysctl -w net.ipv4.ip_forward=1
                iptables -A FORWARD -m physdev --physdev-out br0 -j ACCEPT
                iptables -A FORWARD -m physdev --physdev-in br0 -j ACCEPT





                share|improve this answer















                if iptables is active, we can give the following rules.



                sysctl -w net.ipv4.ip_forward=1
                iptables -A FORWARD -m physdev --physdev-out br0 -j ACCEPT
                iptables -A FORWARD -m physdev --physdev-in br0 -j ACCEPT






                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Mar 24 '14 at 17:02









                Ramesh

                24k34104188




                24k34104188










                answered Mar 24 '14 at 16:55









                user63467user63467

                1




                1

























                    0
















                    # The loopback network interface
                    auto lo
                    iface lo inet loopback

                    # The bribge network interface
                    auto br0
                    iface br0 inet dhcp
                    bridge_ports eth0
                    bridge_stp off
                    bridge_fd 0
                    bridge_maxwait 0






                    share|improve this answer


























                    • Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

                      – JigglyNaga
                      Jul 29 '16 at 12:55











                    • This is an example where only one bridge is used and not needed stp

                      – Andrey Golub
                      Jul 29 '16 at 13:15
















                    0
















                    # The loopback network interface
                    auto lo
                    iface lo inet loopback

                    # The bribge network interface
                    auto br0
                    iface br0 inet dhcp
                    bridge_ports eth0
                    bridge_stp off
                    bridge_fd 0
                    bridge_maxwait 0






                    share|improve this answer


























                    • Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

                      – JigglyNaga
                      Jul 29 '16 at 12:55











                    • This is an example where only one bridge is used and not needed stp

                      – Andrey Golub
                      Jul 29 '16 at 13:15














                    0












                    0








                    0









                    # The loopback network interface
                    auto lo
                    iface lo inet loopback

                    # The bribge network interface
                    auto br0
                    iface br0 inet dhcp
                    bridge_ports eth0
                    bridge_stp off
                    bridge_fd 0
                    bridge_maxwait 0






                    share|improve this answer

















                    # The loopback network interface
                    auto lo
                    iface lo inet loopback

                    # The bribge network interface
                    auto br0
                    iface br0 inet dhcp
                    bridge_ports eth0
                    bridge_stp off
                    bridge_fd 0
                    bridge_maxwait 0







                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Jul 29 '16 at 12:43

























                    answered Jul 29 '16 at 12:38









                    Andrey GolubAndrey Golub

                    11




                    11













                    • Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

                      – JigglyNaga
                      Jul 29 '16 at 12:55











                    • This is an example where only one bridge is used and not needed stp

                      – Andrey Golub
                      Jul 29 '16 at 13:15



















                    • Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

                      – JigglyNaga
                      Jul 29 '16 at 12:55











                    • This is an example where only one bridge is used and not needed stp

                      – Andrey Golub
                      Jul 29 '16 at 13:15

















                    Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

                    – JigglyNaga
                    Jul 29 '16 at 12:55





                    Your extra options bridge_stp, _fd, _maxwait aren't mentioned in the interfaces(5) manpage. Where did you find out what they do?

                    – JigglyNaga
                    Jul 29 '16 at 12:55













                    This is an example where only one bridge is used and not needed stp

                    – Andrey Golub
                    Jul 29 '16 at 13:15





                    This is an example where only one bridge is used and not needed stp

                    – Andrey Golub
                    Jul 29 '16 at 13:15


















                    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%2f100838%2fconfiguring-bridge-network-in-kvm-debian-wheezy-7-2%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

                    How to make a Squid Proxy server?

                    Is this a new Fibonacci Identity?

                    19世紀