Skip to content

Instantly share code, notes, and snippets.

@kapb14
Created June 18, 2018 11:24
Show Gist options
  • Select an option

  • Save kapb14/d0ee8fe45dda1f5c91b7cd67bd0acc20 to your computer and use it in GitHub Desktop.

Select an option

Save kapb14/d0ee8fe45dda1f5c91b7cd67bd0acc20 to your computer and use it in GitHub Desktop.
Dante proxy with docker-compose setup
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
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
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