Giter Site home page Giter Site logo

tgdante2's Introduction

Dockerized Dante socks5 proxy for telegram. Alpine version

Features

  • Docker, Docker Compose
  • User management scripts
  • Only telegram usage restrictions
  • Try to autodetect interface and IPv6 support

Requirements

  • Docker for virtual containers
  • Docker Compose - a tool for defining and running multi-container Docker applications

For nuts

Very simple usage

docker pull schors/tgdante2
docker run -d --net=host --restart unless-stopped -e PORT=1080 -e USER=user0 -e PASS=secret0 --name tgdante schors/tgdante2

Usage with Docker Hub image

# pull docker image
docker pull schors/tgdante2
# create directory for permanent username database
mkdir etc
# start container
docker run -d -v $PWD/etc:/etc --net=host --restart unless-stopped --name tgdante schors/tgdante2
# manage users
docker run --rm -ti -v $PWD/etc:/etc --net=host schors/tgdante2 /scripts/add user1 secret1
docker run --rm -ti -v $PWD/etc:/etc --net=host schors/tgdante2 /scripts/chp user1 secret2
docker run --rm -ti -v $PWD/etc:/etc --net=host schors/tgdante2 /scripts/list
docker run --rm -ti -v $PWD/etc:/etc --net=host schors/tgdante2 /scripts/del user1
# another method (via docker exec)
docker exec -ti tgdante /scripts/add user2 secret3

Please note that -v $PWD/etc is necessary for persistent user database

Access test

curl -x socks5://user2:secret2@localhost:1080 https://web.telegram.org

Environment variables

  • USER,PASS - create USER with PASSword
  • PORT - listen on PORT. Default: 1080
  • INTERFACE - outgoing interface name or IP. Default: autodetect
  • WORKERS - preforked workers. Default: 10
  • IP6 - something, if needed. Default: autodetect

Links


UNLICENSE

tgdante2's People

Contributors

schors avatar

Watchers

James Cloos avatar Roman avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.