Socks5 Server using Heroku + Docker + chisel, step-by-step HOWTO

Alexander Malaev
Apr 17, 2018 · 2 min read

Yesterday was first day when RKN blocked Telegram Messenger. This block is affecting large ranges of IP networks, including Amazon and Google Cloud address ranges. So I’ve looked for free or cheap solution for running of SOCKS5 for Telegram.

I found this project https://github.com/jpillora/chisel

and this https://github.com/mrluanma/chisel-heroku

Prior any further steps Docker must be installed on machine which chisel client will run.

Using It I fired up Socks5 just in minutes, using the following steps:

$ heroku login
Enter your Heroku credentials:
Email: user@example.org
Password: ****************
Logged in as user@example.org
  • Login to container registry:
$ heroku container:login
Login Succeeded
$ git clone https://github.com/mrluanma/chisel-heroku.git
$ cd chisel-heroku
~/chisel-heroku $ heroku create
Creating app... done, ⬢ young-beach-98664
https://young-beach-98664.herokuapp.com/ | https://git.heroku.com/young-beach-98664.git
~/chisel-heroku $ heroku config:set CHISEL_AUTH=user:pass -a young-beach-98664
Setting CHISEL_AUTH and restarting ⬢ young-beach-98664... done, v3
CHISEL_AUTH: user:pass
~/chisel-heroku $ heroku container:push web -a young-beach-98664
<omited output>
~/chisel-heroku $ heroku container:release web
  • install chisel client on local machine and run it.
    I’m using docker, so I do so:
$ docker run -p 1080:1080 --rm -d jpillora/chisel client --auth user:pass https://young-beach-98664.herokuapp.com/ 0.0.0.0:1080:socks
  • check what all is working:
$ curl --socks5 127.0.0.1:1080 ifconfig.co
54.80.159.146
  • Done! Hope this HOWTO will be useful.

upd 17.01.2019:

some updates to article:
- removed `heroku plugins:install heroku-container-registry`
- added `heroku container:release web`

Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade