How to force Vbox to use given proxy for internet access?

Discussions related to using VirtualBox on Windows hosts.
Post Reply
Kein
Posts: 32
Joined: 28. Jun 2009, 19:46
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu

How to force Vbox to use given proxy for internet access?

Post by Kein »

Setup:
1. Windows Host
2. Windows (or Linux, irrelevant) guest
3. SSH tunneling/proxy via Putty on 127.0.0.1

Need:
Force vbox to use given proxy so all the network connections initiated from guest OS will make Vbox to use proxy for that. I tried to use proxy option in the general settings but Vbox ignores it.

Any ideas?
Kein
Posts: 32
Joined: 28. Jun 2009, 19:46
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu

Re: How to force Vbox to use given proxy for internet access

Post by Kein »

I assume it is not an easy task then as to just specify proxy address?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How to force Vbox to use given proxy for internet access

Post by BillG »

VirtualBox is a program. It does not use a proxy for anything.

I presume that you are talking about your virtual machines. What proxy they use will depend on how you configure the networking for them.
Bill
Kein
Posts: 32
Joined: 28. Jun 2009, 19:46
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu

Re: How to force Vbox to use given proxy for internet access

Post by Kein »

BillG wrote:VirtualBox is a program. It does not use a proxy for anything.

I presume that you are talking about your virtual machines. What proxy they use will depend on how you configure the networking for them.
Vbox is a program, yes, it emulates guest system. But when virtual system requests network access (let's say I go to google.com in the browser) it is VirtualBox.exe that process the request and it does so ignoring the proxy settings (direct network connection).

But what I need is for Virtual Box to use existing proxy so all the data will go through it.
loukingjr
Volunteer
Posts: 8851
Joined: 30. Apr 2009, 09:45
Primary OS: Mac OS X other
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: just about all that run

Re: How to force Vbox to use given proxy for internet access

Post by loukingjr »

Actually VirtualBox doesn't emulate guest systems. If it did, you wouldn't have to install an OS.
As BillG just said…
BillG wrote: I presume that you are talking about your virtual machines. What proxy they use will depend on how you configure the networking for them.
OSX, Linux and Windows Hosts & Guests
There are three groups of people. Those that can count and those that can't.
Kein
Posts: 32
Joined: 28. Jun 2009, 19:46
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu

Re: How to force Vbox to use given proxy for internet access

Post by Kein »

loukingjr wrote:Actually VirtualBox doesn't emulate guest systems. If it did, you wouldn't have to install an OS.
As BillG just said…
BillG wrote: I presume that you are talking about your virtual machines. What proxy they use will depend on how you configure the networking for them.
Okay, what kind of network configuration would work for my case?
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: How to force Vbox to use given proxy for internet access

Post by BillG »

Hard to say. You have given us very limited info on how this is set up.

How does the host connect to the network? If it is on a local network I would use bridged mode. You could then configure the guest the same way as you would configure any other machine on the LAN. If the host uses a dialup connection it would be trickier.

What have you tried already? Anything apart from the default setting (NAT)?
Bill
Kein
Posts: 32
Joined: 28. Jun 2009, 19:46
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu

Re: How to force Vbox to use given proxy for internet access

Post by Kein »

BillG wrote:Hard to say. You have given us very limited info on how this is set up.

How does the host connect to the network? If it is on a local network I would use bridged mode. You could then configure the guest the same way as you would configure any other machine on the LAN. If the host uses a dialup connection it would be trickier.

What have you tried already? Anything apart from the default setting (NAT)?
Internet access realized through Ethernet (MAC-bound).
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: How to force Vbox to use given proxy for internet access

Post by mpack »

Kein wrote:Internet access realized through Ethernet (MAC-bound).
That's hardly a clarification. That statement is true of all networking modes.
Kein
Posts: 32
Joined: 28. Jun 2009, 19:46
Primary OS: MS Windows Vista
VBox Version: OSE Debian
Guest OSses: Debian, Ubuntu

Re: How to force Vbox to use given proxy for internet access

Post by Kein »

mpack wrote:
Kein wrote:Internet access realized through Ethernet (MAC-bound).
That's hardly a clarification. That statement is true of all networking modes.
ISP basically provides NAT with port-forwarding through ethernet.
Post Reply