SOCKS5 proxy support for handling guest traffic

This is for discussing general topics about how to use VirtualBox.

SOCKS5 proxy support for handling guest traffic

Postby SF » 15. Apr 2019, 20:13

Hello.

Is there any easy way to route all VirtualBox guest traffic throught local SOCKS5 proxy?
Or maybe have ability to set SOCKS5 proxy for guest machines in some future version?

The host platform is Linux with very restricted, firewalled network connection.

Only way to Internet is through locally running SOCKS5 proxy (127.0.0.1:1234)
that routes incoming/outgoing connection throught SSH tunnel to remote host.

Thank you!
SF
 
Posts: 2
Joined: 15. Apr 2019, 20:04

Re: SOCKS5 proxy support for handling guest traffic

Postby socratis » 16. Apr 2019, 07:05

Not a "Suggestion", more like a "Using VirtualBox"...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25275
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: SOCKS5 proxy support for handling guest traffic

Postby SF » 18. Apr 2019, 02:02

Can you explain the logic behind how asking SOCKS5 proxy support is not a suggestion?
You already have HTTP Proxy support so logically adding SOCKS5 should be trivial.
SF
 
Posts: 2
Joined: 15. Apr 2019, 20:04

Re: SOCKS5 proxy support for handling guest traffic

Postby socratis » 18. Apr 2019, 02:23

SF wrote:You already have HTTP Proxy support so logically adding SOCKS5 should be trivial.
I'm sorry, but where did you see the "Proxy support" for the guests? Maybe you mean the VirtualBox Preferences » Proxy? That's simply for checking for updates, nothing to do with Guest support at all.

And the way you describe the problem it's more like "using an application under XYZ circumstances", because there's nothing natively VirtualBox can help you with...
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
socratis
Site Moderator
 
Posts: 25275
Joined: 22. Oct 2010, 11:03
Location: Greece
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5

Re: SOCKS5 proxy support for handling guest traffic

Postby scottgus1 » 19. Apr 2019, 14:41

The key to solving this kind of problem is to figure out how to solve it if you had a group of physical PCs and a pile of network equipment. Then apply the solution to the guests.

Can you network a few PCs to a switch, then attach the switch to a device/PC running the SOCKS5 software, and get all of the PCs' network activity to go through SOCKS5, so that no matter how many PCs you attach to the switch they all go through the Sock? If you can, you may be able to do the same in a Virtualbox environment.

Do you need to install the SOCKS5 software in each guest OS instead? May still be possible in Virtualbox.

A quick bit of research on SOCKS5 says it may be some kind of VPN. VPNs tend to put a stranglehold on a PC's network connection. You may not be able to get guests to access the network if the host PC has SOCKS5 installed on it.
Human government is like that crazy uncle who hides a quarter in his fist behind his back, then asks you to guess which fist the quarter is in...
No matter which side you choose, Left or Right, both Sides are empty.
scottgus1
 
Posts: 4292
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Win7

Re: SOCKS5 proxy support for handling guest traffic

Postby SamASR » 21. Apr 2019, 00:23

Is there any easy way to route all VirtualBox guest traffic throught local SOCKS5 proxy?

No.

Try to google "whoinx router", "linux gateway" - this is the best way to tunnel traffic through vpn, socks5, etc.
SamASR
 
Posts: 14
Joined: 19. Mar 2019, 22:34


Return to Using VirtualBox

Who is online

Users browsing this forum: No registered users and 9 guests