Dante is a product developed by Inferno Nettverk A/S. It consists of a SOCKS server and a SOCKS client, implementing RFC 1928 and related standards. It is a flexible product that can be used to provide convenient and secure network connectivity.
Note
Dante 1.5.0 status has reverted from "completed and in testing" to "correction of problems discovered by new AI tools". Planned release date: Q1 2027
services:
dante:
image: easypi/dante
ports:
- "1080:1080"
volumes:
- ./data:/etc/dante
tmpfs:
- /run
restart: unless-stopped
debug: 0
logoutput: stderr /var/log/dante/sockd.log
internal: 0.0.0.0 port = 1080
external: eth0
socksmethod: username none
clientmethod: none
user.privileged: root
user.unprivileged: nobody
client pass {
from: 0.0.0.0/0 port 1-65535 to: 0.0.0.0/0
log: error
}
socks block {
from: 0.0.0.0/0 to: 127.0.0.0/8
log: error
}
socks block {
from: 0.0.0.0/0 to: 10.0.0.0/8
log: error
}
socks block {
from: 0.0.0.0/0 to: 172.16.0.0/12
log: error
}
socks block {
from: 0.0.0.0/0 to: 192.168.0.0/16
log: error
}
socks pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
#socksmethod: username
log: error
}
Caution
Block unauthorized LAN access is a good practice!
$ mkdir -p data/{etc,log}
$ vim data/etc/sockd.conf
$ docker-compose up -d
# To enable username authentication, please uncomment `socksmethod: username`.
$ docker compose exec dante bash
>>> useradd -s /usr/sbin/nologin -M username
>>> echo username:password | chpasswd
>>> exit
$ curl -x socks5h://username:[email protected]:1080 https://www.youtube.com
Content type
Image
Digest
sha256:11048b41d…
Size
55.4 MB
Last updated
1 day ago
docker pull easypi/dante