-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Mateusz Legięcki
committed
Aug 9, 2019
1 parent
a155fd1
commit 5dde00e
Showing
4 changed files
with
46 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
} |