A minimal Dockerized Dante SOCKS5 server running on Alpine Linux.
alpine:3.21SOCKD_CONFIG env var1337docker build -t alpine-dante .
docker run -d \
--name socks5-proxy \
-p 1337:1337 \
alpine-dante
You can customize the SOCKS5 server configuration by setting the SOCKD_CONFIG environment variable. For example:
docker run -d \
--name socks5-proxy \
-p 1337:1337 \
-e SOCKD_CONFIG="your_custom_config" \
alpine-dante
# /etc/danted.conf
# This is a sample configuration file for the Dante SOCKS server.
# See the documentation for more details.
# https://www.inet.no/dante/doc/danted.conf.5.html
logoutput: stderr
internal: 0.0.0.0 port = 1337
external: eth0
method: none
user.notprivileged: nobody
client pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
log: connect disconnect error
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
protocol: tcp udp
log: connect disconnect error
}
The default config allows unauthenticated TCP/UDP connections from any client. You should adjust access controls for production use.
If you want username/password authentication, change the method line in sockd.conf: The default config allows unauthenticated TCP/UDP connections from any client. You should adjust access controls for production use.
method: username
Content type
Image
Digest
sha256:b8d19c1ba…
Size
4.6 MB
Last updated
over 1 year ago
docker pull chusri/dante-server:alpine-3.21