SOCKS5 proxy support for handling guest traffic

This is for discussing general topics about how to use VirtualBox.
Post Reply
SF
Posts: 2
Joined: 15. Apr 2019, 20:04

SOCKS5 proxy support for handling guest traffic

Post by SF »

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!
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: SOCKS5 proxy support for handling guest traffic

Post by socratis »

Not a "Suggestion", more like a "Using VirtualBox"...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
SF
Posts: 2
Joined: 15. Apr 2019, 20:04

Re: SOCKS5 proxy support for handling guest traffic

Post by SF »

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.
socratis
Site Moderator
Posts: 27329
Joined: 22. Oct 2010, 11:03
Primary OS: Mac OS X other
VBox Version: PUEL
Guest OSses: Win(*>98), Linux*, OSX>10.5
Location: Greece

Re: SOCKS5 proxy support for handling guest traffic

Post by socratis »

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...
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
scottgus1
Site Moderator
Posts: 20945
Joined: 30. Dec 2009, 20:14
Primary OS: MS Windows 10
VBox Version: PUEL
Guest OSses: Windows, Linux

Re: SOCKS5 proxy support for handling guest traffic

Post by scottgus1 »

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.
SamASR
Posts: 14
Joined: 19. Mar 2019, 22:34

Re: SOCKS5 proxy support for handling guest traffic

Post by SamASR »

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.
Post Reply