Ubuntu Server KVM - Shield 3 of 4 NICs from Host












0















I use 4 different networks (1 for server-host) and one for each of the 3 vms.
Those 4 networks are completely shielded from each other and MUST NOT have access to one another.



What im trying to accomplish is on the host system, just to give the host itself access to the first nic, the other 3 must not be visible (or active) so the host can remain within its network and is completely firewalled.



the 3 vms use 3 independent DMZ networks and must not access the main network at all costs. the same goes for the host, it may not be accessed in any way from one of the dmz's.



How do i need to setup my network in ubuntu server with kvm?










share|improve this question



























    0















    I use 4 different networks (1 for server-host) and one for each of the 3 vms.
    Those 4 networks are completely shielded from each other and MUST NOT have access to one another.



    What im trying to accomplish is on the host system, just to give the host itself access to the first nic, the other 3 must not be visible (or active) so the host can remain within its network and is completely firewalled.



    the 3 vms use 3 independent DMZ networks and must not access the main network at all costs. the same goes for the host, it may not be accessed in any way from one of the dmz's.



    How do i need to setup my network in ubuntu server with kvm?










    share|improve this question

























      0












      0








      0








      I use 4 different networks (1 for server-host) and one for each of the 3 vms.
      Those 4 networks are completely shielded from each other and MUST NOT have access to one another.



      What im trying to accomplish is on the host system, just to give the host itself access to the first nic, the other 3 must not be visible (or active) so the host can remain within its network and is completely firewalled.



      the 3 vms use 3 independent DMZ networks and must not access the main network at all costs. the same goes for the host, it may not be accessed in any way from one of the dmz's.



      How do i need to setup my network in ubuntu server with kvm?










      share|improve this question














      I use 4 different networks (1 for server-host) and one for each of the 3 vms.
      Those 4 networks are completely shielded from each other and MUST NOT have access to one another.



      What im trying to accomplish is on the host system, just to give the host itself access to the first nic, the other 3 must not be visible (or active) so the host can remain within its network and is completely firewalled.



      the 3 vms use 3 independent DMZ networks and must not access the main network at all costs. the same goes for the host, it may not be accessed in any way from one of the dmz's.



      How do i need to setup my network in ubuntu server with kvm?







      networking ubuntu linux-kvm






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Feb 19 at 10:22









      aphardtaphardt

      11




      11






















          2 Answers
          2






          active

          oldest

          votes


















          0














          How about your vm network interface setting?




          1. Host device

          2. Specify share device name (Bridge, must be created from host)


          if you use different networks, you can try host device mode.
          e.g.




          • vm1 --> eth1

          • vm2 --> eth2

          • vm3 --> eth3






          share|improve this answer































            0














            Use VTD pass through. Pass the NICs directly to the guest machines. This way the Host OS will never see the NICs or any traffic on them.



            If you need to share the NICs because more than one guest needs to be on each network, then you must use bridges. Preventing the host from appearing on the bridge is tricky. Note that it is not as simple as not assigning an IP address. Some suggestions are here: https://vincent.bernat.ch/en/blog/2017-linux-bridge-isolation






            share|improve this answer























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              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%2fsuperuser.com%2fquestions%2f1407386%2fubuntu-server-kvm-shield-3-of-4-nics-from-host%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














              How about your vm network interface setting?




              1. Host device

              2. Specify share device name (Bridge, must be created from host)


              if you use different networks, you can try host device mode.
              e.g.




              • vm1 --> eth1

              • vm2 --> eth2

              • vm3 --> eth3






              share|improve this answer




























                0














                How about your vm network interface setting?




                1. Host device

                2. Specify share device name (Bridge, must be created from host)


                if you use different networks, you can try host device mode.
                e.g.




                • vm1 --> eth1

                • vm2 --> eth2

                • vm3 --> eth3






                share|improve this answer


























                  0












                  0








                  0







                  How about your vm network interface setting?




                  1. Host device

                  2. Specify share device name (Bridge, must be created from host)


                  if you use different networks, you can try host device mode.
                  e.g.




                  • vm1 --> eth1

                  • vm2 --> eth2

                  • vm3 --> eth3






                  share|improve this answer













                  How about your vm network interface setting?




                  1. Host device

                  2. Specify share device name (Bridge, must be created from host)


                  if you use different networks, you can try host device mode.
                  e.g.




                  • vm1 --> eth1

                  • vm2 --> eth2

                  • vm3 --> eth3







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered Feb 19 at 10:30









                  CloudCloud

                  92




                  92

























                      0














                      Use VTD pass through. Pass the NICs directly to the guest machines. This way the Host OS will never see the NICs or any traffic on them.



                      If you need to share the NICs because more than one guest needs to be on each network, then you must use bridges. Preventing the host from appearing on the bridge is tricky. Note that it is not as simple as not assigning an IP address. Some suggestions are here: https://vincent.bernat.ch/en/blog/2017-linux-bridge-isolation






                      share|improve this answer




























                        0














                        Use VTD pass through. Pass the NICs directly to the guest machines. This way the Host OS will never see the NICs or any traffic on them.



                        If you need to share the NICs because more than one guest needs to be on each network, then you must use bridges. Preventing the host from appearing on the bridge is tricky. Note that it is not as simple as not assigning an IP address. Some suggestions are here: https://vincent.bernat.ch/en/blog/2017-linux-bridge-isolation






                        share|improve this answer


























                          0












                          0








                          0







                          Use VTD pass through. Pass the NICs directly to the guest machines. This way the Host OS will never see the NICs or any traffic on them.



                          If you need to share the NICs because more than one guest needs to be on each network, then you must use bridges. Preventing the host from appearing on the bridge is tricky. Note that it is not as simple as not assigning an IP address. Some suggestions are here: https://vincent.bernat.ch/en/blog/2017-linux-bridge-isolation






                          share|improve this answer













                          Use VTD pass through. Pass the NICs directly to the guest machines. This way the Host OS will never see the NICs or any traffic on them.



                          If you need to share the NICs because more than one guest needs to be on each network, then you must use bridges. Preventing the host from appearing on the bridge is tricky. Note that it is not as simple as not assigning an IP address. Some suggestions are here: https://vincent.bernat.ch/en/blog/2017-linux-bridge-isolation







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 20 at 0:00









                          AndyAndy

                          1,041311




                          1,041311






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • 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%2fsuperuser.com%2fquestions%2f1407386%2fubuntu-server-kvm-shield-3-of-4-nics-from-host%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 do I know what Microsoft account the skydrive app is syncing to?

                              When does type information flow backwards in C++?

                              Grease: Live!