How to run an LXC container thru SOCKS5 instead of regular networking?

verulian

Renowned Member
Feb 18, 2019
203
38
68
45
I have a scenario where I need to have an LXC container operate with a network connection through a local SOCKS5 server on our network. Is there a simple or clean way to do this?
 
hi,

for command line applications you can export some environment variables such as http_proxy and so on.

but if you want to transparently proxy everything inside the container you're better off using some kind of VPN instead, as it's possible that some applications will not respect the environment variables.

there are some ways to do what you want but it still would take some complicated setups to accomplish that
 
In my scenario I have a few gateways I need to reliably monitor and one of them is a SOCKS5 proxy. I have seen some things about Docker kind of facilitating this, but I have been hitting a barrier with LXCs on Proxmox. Basically I have a nodejs app that I need to run that will ping various nodes on the network to test reliability.
 
Last edited: