Skip to content

Commit

Permalink
Inital commit.
Browse files Browse the repository at this point in the history
  • Loading branch information
Mateusz Legięcki committed Aug 9, 2019
1 parent a155fd1 commit 5dde00e
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
FROM vimagick/dante@sha256:148291be9d8365e7c08b7a82a08eb4ab3a10c305502f74119a1d8ac566ea7bb5
EXPOSE 1080
COPY sockd.conf /etc/sockd.conf
COPY run.sh /run.sh
CMD /run.sh
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Dante SOCKS proxy

**SOCKS proxy with user/password authorization enabled.**

Based on: https://hub.docker.com/r/vimagick/dante/


## Available env vars

- `SOCKS_USER` - username of proxy user
- `SOCKS_PASSWORD` - password for user


## Useful links:

- [GitHub](https://github.com/socialwifi/docker-dante)
- [Docker Hub](https://hub.docker.com/r/socialwifi/dante)
5 changes: 5 additions & 0 deletions run.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -ex
useradd $SOCKS_USER
echo $SOCKS_USER:$SOCKS_PASSWORD | chpasswd
sockd -f $CFGFILE -p $PIDFILE -N $WORKERS
19 changes: 19 additions & 0 deletions sockd.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
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
}

0 comments on commit 5dde00e

Please sign in to comment.