1
0
mirror of https://github.com/vimagick/dockerfiles.git synced 2024-12-23 01:39:27 +02:00
dockerfiles/dante/README.md

64 lines
1.2 KiB
Markdown
Raw Normal View History

2015-06-17 08:06:23 +02:00
Dante - A free SOCKS server
===========================
2016-04-24 07:17:31 +02:00
[Dante][1] is a product developed by Inferno Nettverk A/S. It consists of a
2015-06-17 08:13:00 +02:00
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.
2015-06-17 08:06:23 +02:00
## docker-compose.yml
2020-10-30 06:48:52 +02:00
```yaml
version: "3.8"
services:
dante:
image: vimagick/dante
ports:
- "1080:1080"
volumes:
- ./data:/etc/dante
tmpfs:
- /run
restart: unless-stopped
2015-06-17 08:06:23 +02:00
```
## sockd.conf
```
debug: 0
logoutput: stderr
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 pass {
from: 0.0.0.0/0 to: 0.0.0.0/0
#socksmethod: username
log: error
}
```
## up and running
2020-10-30 06:48:52 +02:00
```bash
2015-06-17 08:06:23 +02:00
$ docker-compose up -d
2015-06-17 08:13:00 +02:00
# To enable username authentication, please uncomment `socksmethod: username`.
2015-06-17 08:06:23 +02:00
$ docker exec -it dante_dante_1 bash
>>> useradd username
>>> echo username:password | chpasswd
>>> exit
$ curl -x socks5h://username:password@127.0.0.1:1080 https://www.youtube.com
```
2015-06-17 08:13:00 +02:00
[1]: http://www.inet.no/dante/index.html