Created
June 18, 2018 11:24
-
-
Save kapb14/d0ee8fe45dda1f5c91b7cd67bd0acc20 to your computer and use it in GitHub Desktop.
Dante proxy with docker-compose setup
This file contains hidden or 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
| version: '2' | |
| services: | |
| proxy: | |
| #image: vimagick/dante | |
| build: | |
| context: . | |
| args: | |
| - proxy_user=myuser | |
| - proxy_pass=mypassword | |
| ports: | |
| - "0.0.0.0:3333:3333" | |
| restart: unless-stopped |
This file contains hidden or 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
| FROM vimagick/dante | |
| ARG proxy_user | |
| ARG proxy_pass | |
| ADD ./sockd.conf /etc/sockd.conf | |
| RUN echo "\n\tCreating a new user for proxy\n\t\tusername: $proxy_user\n\t\tpassword: $proxy_pass\n\n" \ | |
| && useradd $proxy_user \ | |
| && echo $proxy_user:$proxy_pass | chpasswd | |
| EXPOSE 3333 |
This file contains hidden or 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
| debug: 0 | |
| logoutput: stderr | |
| internal: 0.0.0.0 port = 3333 | |
| 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 | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment