Question for isolated LXD


I read the blog below and tested it.
[ URL: ]

When testing, I configured a socket 5 proxy server with ss5 using docker.
The test of ss5 worked fine as shown below.

When I put a socket 5 device in a container, I wonder how to specify the username and password in lxc config device add.

Thank you.^^


Thanks for picking up by tutorial.

The LXD proxy is a network connection proxy, and not a SOCKS5 proxy. Therefore,
it will link up the container with the host at the specified port, and there is no authentication possible.

To answer your question, you would need to get curl to specify properly the username/password of your actual SOCKS5 proxy.
With curl, you specify those as follows:

curl -x socks5h://myusername:mypassword@

Thanks Simons ^^


I am wondering when to use the network isolated conainer.

I would like to know an example applied in the production environment.


Here are some scenarios,

  1. If you have a Web server or other network service that does not require access to the Internet.
    That could be a Web server, either static, or dynamic like WordPress, where you install mysql/mariadb in the same container.
  2. You want to examine software (as in forensics) or create a honeypot and you decide not to go for a VM. For the former, you use software like mitmproxy.
  3. You want to give legitimate SSH access for some specific work that is limited within a container. But you want to be on the safe side if their credentials are compromised.

Thanks Simons for your answers. ˆˆ