mirror of
https://github.com/vimagick/dockerfiles.git
synced 2025-12-21 21:33:02 +01:00
update
This commit is contained in:
57
dante/README.md
Normal file
57
dante/README.md
Normal file
@@ -0,0 +1,57 @@
|
|||||||
|
Dante - A free SOCKS server
|
||||||
|
===========================
|
||||||
|
|
||||||
|
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.
|
||||||
|
|
||||||
|
## docker-compose.yml
|
||||||
|
|
||||||
|
```
|
||||||
|
dante:
|
||||||
|
image: vimagick/dante
|
||||||
|
ports:
|
||||||
|
- "1080:1080"
|
||||||
|
volumes:
|
||||||
|
- sockd.conf:/etc/sockd.conf
|
||||||
|
restart: always
|
||||||
|
```
|
||||||
|
|
||||||
|
## 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
|
||||||
|
|
||||||
|
```
|
||||||
|
$ docker-compose up -d
|
||||||
|
|
||||||
|
# To enable password auth, please uncomment `socksmethod: username`.
|
||||||
|
$ 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
|
||||||
|
```
|
||||||
Reference in New Issue
Block a user