Skip to content

Ansible configuration for installing a SOCKS5 Telegram proxy

License

Notifications You must be signed in to change notification settings

Zverik/ansible-telegram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SOCKS5 Server for Telegram

This Ansible playbook initializes a SOCKS5 server on any Ubuntu 16.04 machine. For anonymous server, run:

ansible-playbook -i '12.34.56.78,' playbook.yml

Note that the IP address should have a trailing comma. When you want to specify user name and password, add relevant tags:

ansible-playbook -i '12.34.56.78,' playbook.yml -e user=thatsme password=q1w2e3r4

Finally, you can change port from the default 1080 by using tport variable:

ansible-playbook -i '12.34.56.78,' playbook.yml -e tport=1089

Testing

Run this command to test a server without auth:

curl -v -x socks5://12.34.56.78:1080 http://t.me

And with auth:

curl -v -x socks5://thatsme:q1w2e3r4@12.34.56.78:1080 http://t.me

Try querying google.com to see that only telegram endpoints are allowed.

Author

This playbook was written by Ilya Zverev and published under WTFPL.

See Also

These articles and code were used to make this playbook (mostly in Russian):

About

Ansible configuration for installing a SOCKS5 Telegram proxy

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages