All Projects → ojab → Docker Dante Telegram

ojab / Docker Dante Telegram

dante config builder for Telegram SOCKS-proxy & Dockerfile for building image with such proxy

Programming Languages

ruby
36898 projects - #4 most used programming language

Projects that are alternatives of or similar to Docker Dante Telegram

Psiphon
A multi-functional version of a popular network circumvention tool
Stars: ✭ 169 (+956.25%)
Mutual labels:  proxy, socks5, socks, docker-image
Jsocksproxy
SOCKS proxy written in Java
Stars: ✭ 19 (+18.75%)
Mutual labels:  proxy, socks5, socks
V2ray Core
A platform for building proxies to bypass network restrictions.
Stars: ✭ 38,782 (+242287.5%)
Mutual labels:  proxy, socks5, socks
Socks5
SOCKS Protocol Version 5 Library in Go. Full TCP/UDP and IPv4/IPv6 support
Stars: ✭ 321 (+1906.25%)
Mutual labels:  proxy, socks5, socks
3proxy
3proxy - tiny free proxy server
Stars: ✭ 2,263 (+14043.75%)
Mutual labels:  proxy, socks5, socks
Tor Socks Proxy
🐳 Tiny Docker(🤏 10MB) image as 🧅 Tor SOCKS5 proxy 🛡
Stars: ✭ 218 (+1262.5%)
Mutual labels:  proxy, socks5, socks
Flynet
A powerful TCP/UDP tool, which support socks5 proxy by tcp and udp, http proxy and NAT traversal. This tool can help you bypass gfw easily
Stars: ✭ 124 (+675%)
Mutual labels:  proxy, socks5, socks
Daze
Daze is a tool to help you link to the Internet.
Stars: ✭ 580 (+3525%)
Mutual labels:  proxy, socks5, socks
Reflow
Content-routable socks5 proxy switcher for your entire LAN.
Stars: ✭ 170 (+962.5%)
Mutual labels:  proxy, socks5, socks
Brook
Brook is a cross-platform strong encryption and not detectable proxy. Zero-Configuration. Brook 是一个跨平台的强加密无特征的代理软件. 零配置.
Stars: ✭ 12,694 (+79237.5%)
Mutual labels:  proxy, socks5, socks
Socks5
A full-fledged high-performance socks5 proxy server written in C#. Plugin support included.
Stars: ✭ 286 (+1687.5%)
Mutual labels:  proxy, socks5, socks
Proxy List
Get PROXY List that gets updated everyday
Stars: ✭ 347 (+2068.75%)
Mutual labels:  proxy, socks
Socks
A SOCKS (SOCKS4, SOCKS4A and SOCKS5) Proxy Package for Go
Stars: ✭ 355 (+2118.75%)
Mutual labels:  socks5, socks
Trashemail
A hosted disposable email telegram bot; Extremely privacy friendly; Proudly hosted for community.
Stars: ✭ 408 (+2450%)
Mutual labels:  telegram, docker-image
Avege
Yet Another Redsocks Golang Fork
Stars: ✭ 486 (+2937.5%)
Mutual labels:  proxy, socks
Lightsocks
⚡️一个轻巧的网络混淆代理🌏
Stars: ✭ 3,714 (+23112.5%)
Mutual labels:  proxy, socks
Exodus
network proxy and tunnel (VPN)
Stars: ✭ 432 (+2600%)
Mutual labels:  proxy, socks5
Freess
免费ss账号 免费shadowsocks账号 免费v2ray账号 (长期更新)
Stars: ✭ 6,544 (+40800%)
Mutual labels:  proxy, socks5
Tor2web
Tor2web is an HTTP proxy software that enables access to Tor Hidden Services by mean of common web browsers
Stars: ✭ 531 (+3218.75%)
Mutual labels:  proxy, socks5
Leaf
A lightweight and fast proxy utility tries to include any useful features.
Stars: ✭ 530 (+3212.5%)
Mutual labels:  proxy, socks

dante config can be built with

ruby dante_config_generator.rb [FILENAME]

result will be written into FILENAME (danted.conf by default) and can be found in the repo: unauthenticated config (with only Telegram IPs without authentication) and authenticated config (with username/password authentication and additional banned Amazon/Google IPs).

ruby on the host is not needed for building docker image, config is generated inside docker.

Only Telegram IPs (i. e. IPs administered by MNT-TELEGRAM, pulled from RIPE NCC database) and domains (telegram.dog, telegram.me, telegram.org, stel.com, t.me) are accessible, all other traffic is forbidden.

Docker image can be pulled from Docker hub

docker pull ojab/dante-telegram:latest # only Telegram networks without authentication
docker pull ojab/dante-telegram:with_users # Telegram & banned Amazon/Google networks, with authentication
docker pull ojab/dante-telegram:all_networks # All IPv4 networks accessible, with authentication
docker pull ojab/dante-telegram:yolo # All IPv4 networks accessible, without any authentication

default username is telegram, password is }FCKrhw%,|vT$Yjr. If you want to add other users or change password, you should rebuild image youself, see User management below.

Demo

docker-compose build
# localhost:1080 — ojab/dante-telegram:latest
# localhost:1081 — ojab/dante-telegram:with_users
# localhost:1082 — ojab/dante-telegram:all_networks
# localhost:1083 — ojab/dante-telegram:yolo
docker-compose up
curl --socks5 localhost:1080 http://web.telegram.org/
curl --socks5 localhost:1081 http://web.telegram.org/ # fails
curl -i --socks5 'telegram:}FCKrhw%,|[email protected]:1081' http://google.com # fails
curl -i --socks5 'telegram:}FCKrhw%,|[email protected]:1081' http://web.telegram.org/
curl -i --socks5 'telegram:}FCKrhw%,|[email protected]:1082' http://google.com
curl -i --socks5 localhost:1083 http://google.com

feel free to start/use resulting docker image however you want

If you need any other feature or have issues with images, feel free to create a github issue or pull request.

User management

Just add user,password pairs to users.csv and build images with docker build . --build-arg with_users=true. Note, even while users.csv is not used in final image build, it's copied to intermediate image (users_builder in Dockerfile) and retained in it's cache. So if you want to be on the safe side — you should remove cache after build.

If you have ruby installed, you can use rake rask to add/remove/replace/list users:

# Adds user `ojab` with password `fakepassword`
$ rake "users:add[ojab, fakepassword]"
# Removes user `ojab`
$ rake "users:remove[ojab]"
# Adds user `ojab` with random password
rake "users:add[ojab]"
# Replaces ojab's password with `fakepassword2`
$ rake "users:replace[ojab, fakepassword2]"
# List all users
$ rake "users:list"
tg://socks?server=vpn.example.com&port=1080&user=telegram&pass=}FCKrhw%,|vT$Yjr
tg://socks?server=vpn.example.com&port=1080&user=ojab&pass=fakepassword2
# List all users with server
$ rake "users:list[telegram.example.com]"
tg://socks?server=telegram.example.com&port=1080&user=telegram&pass=}FCKrhw%,|vT$Yjr
tg://socks?server=telegram.example.com&port=1080&user=ojab&pass=fakepassword2
# Signle user can be shown using grep
$ rake "users:list" | grep ojab
tg://socks?server=vpn.example.com&port=1080&user=ojab&pass=fakepassword2
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].