Dante

docker-compose.yaml

version: '3'
services:
  dante:
    build: .
    ports:
      - "2016:2016"
    restart: always

Dockerfile

FROM wernight/dante
ADD . /etc/
RUN chmod 755 /etc/sockd.conf
RUN printf '123qwe\n123qwe\n' | adduser denis

sockd.conf

debug: 0
logoutput: stderr
internal: 0.0.0.0 port = 2016
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
}

Need to put all these files into one folder and run

Test connection

Add FW policy if it's cloud vm

Don't need to create forwarding but just in case:

forwarding.sh

Last updated