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

verulian

Well-Known Member
Feb 18, 2019
179
21
58
44
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:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!