VirtualBox NAT over proxy











up vote
4
down vote

favorite
4












I use VirtualBox 4.1.8 on a Ubuntu 10.04 host system. I have an HTTP proxy server on the host system.



How do I configure the VirtualBox to NAT the virtual machine's network and use the HTTP proxy for all internet communication?



I know, I could use the proxy configuration on the virtual machine but this is not smart solution.










share|improve this question




























    up vote
    4
    down vote

    favorite
    4












    I use VirtualBox 4.1.8 on a Ubuntu 10.04 host system. I have an HTTP proxy server on the host system.



    How do I configure the VirtualBox to NAT the virtual machine's network and use the HTTP proxy for all internet communication?



    I know, I could use the proxy configuration on the virtual machine but this is not smart solution.










    share|improve this question


























      up vote
      4
      down vote

      favorite
      4









      up vote
      4
      down vote

      favorite
      4






      4





      I use VirtualBox 4.1.8 on a Ubuntu 10.04 host system. I have an HTTP proxy server on the host system.



      How do I configure the VirtualBox to NAT the virtual machine's network and use the HTTP proxy for all internet communication?



      I know, I could use the proxy configuration on the virtual machine but this is not smart solution.










      share|improve this question















      I use VirtualBox 4.1.8 on a Ubuntu 10.04 host system. I have an HTTP proxy server on the host system.



      How do I configure the VirtualBox to NAT the virtual machine's network and use the HTTP proxy for all internet communication?



      I know, I could use the proxy configuration on the virtual machine but this is not smart solution.







      linux virtualbox proxy nat






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited Feb 22 '12 at 9:52









      slhck

      158k47437461




      158k47437461










      asked Feb 22 '12 at 9:00









      phschoen

      22127




      22127






















          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          You don't need to NAT a connection outgoing from the guest to the host.



          Make sure that the proxy configuration is such that it permits connections from the IP address range the virtual host is using, then all you need to do is configure the host IP and proxy port in the virtual host proxy config.






          share|improve this answer

















          • 1




            I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
            – karatedog
            May 23 '12 at 12:20






          • 5




            @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
            – Paul
            May 23 '12 at 13:26











          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',
          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%2f392678%2fvirtualbox-nat-over-proxy%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








          up vote
          0
          down vote













          You don't need to NAT a connection outgoing from the guest to the host.



          Make sure that the proxy configuration is such that it permits connections from the IP address range the virtual host is using, then all you need to do is configure the host IP and proxy port in the virtual host proxy config.






          share|improve this answer

















          • 1




            I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
            – karatedog
            May 23 '12 at 12:20






          • 5




            @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
            – Paul
            May 23 '12 at 13:26















          up vote
          0
          down vote













          You don't need to NAT a connection outgoing from the guest to the host.



          Make sure that the proxy configuration is such that it permits connections from the IP address range the virtual host is using, then all you need to do is configure the host IP and proxy port in the virtual host proxy config.






          share|improve this answer

















          • 1




            I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
            – karatedog
            May 23 '12 at 12:20






          • 5




            @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
            – Paul
            May 23 '12 at 13:26













          up vote
          0
          down vote










          up vote
          0
          down vote









          You don't need to NAT a connection outgoing from the guest to the host.



          Make sure that the proxy configuration is such that it permits connections from the IP address range the virtual host is using, then all you need to do is configure the host IP and proxy port in the virtual host proxy config.






          share|improve this answer












          You don't need to NAT a connection outgoing from the guest to the host.



          Make sure that the proxy configuration is such that it permits connections from the IP address range the virtual host is using, then all you need to do is configure the host IP and proxy port in the virtual host proxy config.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Feb 22 '12 at 9:16









          Paul

          47.7k13120147




          47.7k13120147








          • 1




            I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
            – karatedog
            May 23 '12 at 12:20






          • 5




            @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
            – Paul
            May 23 '12 at 13:26














          • 1




            I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
            – karatedog
            May 23 '12 at 12:20






          • 5




            @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
            – Paul
            May 23 '12 at 13:26








          1




          1




          I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
          – karatedog
          May 23 '12 at 12:20




          I think he has the same problem as I have. I do not want a Host-Guest communication. I have a host where I had to configure a proxy to use get access to internet (it is working). Now I want to configure my Virtualbox Debian Guest (with an universal configuration), and no matter how I change the host's network, as long as the host has access to internet, the Guest should also have access. Most importantly, wget or curl (without any proxy configuration). In other words I want the Guest to use the Host's proxy channel (it it is authenticated).
          – karatedog
          May 23 '12 at 12:20




          5




          5




          @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
          – Paul
          May 23 '12 at 13:26




          @karatedog You cannot hijack an authenticated proxy session from another machine, virtual or otherwise.
          – Paul
          May 23 '12 at 13:26


















          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.





          Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


          Please pay close attention to the following guidance:


          • 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%2f392678%2fvirtualbox-nat-over-proxy%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

          flock() on closed filehandle LOCK_FILE at /usr/bin/apt-mirror

          Mangá

          Eduardo VII do Reino Unido