Page 1 of 1

SOCKS5 proxy support for handling guest traffic

Posted: 15. Apr 2019, 20:13
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!

Re: SOCKS5 proxy support for handling guest traffic

Posted: 16. Apr 2019, 07:05
by socratis
Not a "Suggestion", more like a "Using VirtualBox"...

Re: SOCKS5 proxy support for handling guest traffic

Posted: 18. Apr 2019, 02:02
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.

Re: SOCKS5 proxy support for handling guest traffic

Posted: 18. Apr 2019, 02:23
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...

Re: SOCKS5 proxy support for handling guest traffic

Posted: 19. Apr 2019, 14:41
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.

Re: SOCKS5 proxy support for handling guest traffic

Posted: 21. Apr 2019, 00:23
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.