Tor2web icon indicating copy to clipboard operation
Tor2web copied to clipboard

Could be possible to host on serverless/heroku?

Open tiero opened this issue 5 years ago • 6 comments

Hi I need a tor proxy, but not always on. I was researching how to make ti work in serveless fashion (eg. Lambda + Api Gateway) but seems impossibile.

Do you think could be possible to host it on Heorku like platform? Thanks

tiero avatar Mar 11 '20 09:03 tiero

@tiero: As far that it can run Debian Buster (10) yes.

Which is the use case if i may ask?

evilaliv3 avatar Mar 11 '20 11:03 evilaliv3

TL;DR I want to parasitize free tiers of cloud providers, without paying for a machine always on.

Long story:

I have development machines at "home", where I don't have a public ip address, to overcome this an Onion service solved it. The problem is that in is some context I don't have the possibility to run a tor client (eg. CI pipelines) so a simple tor proxy should work.

I don't want to use public tor2web websites if I can and also most of them don't support yet v3 onion services.

I saw that building from master should be possible, so I was looking into Heroku, and I was asking if other already did it before.

tiero avatar Mar 11 '20 11:03 tiero

I see, i do not think so but please let us know if your experiment proceed well and we would be happy to publish scripts for heroku officially.

evilaliv3 avatar Mar 11 '20 11:03 evilaliv3

The problem is that, afaik, you can't run native code on Heroku, so you could run Python but you wont be able to execute Tor, that's a dependency of Tor2web as a third party independent native code software executable.

fpietrosanti avatar Mar 11 '20 12:03 fpietrosanti

I saw that using buuldpacks something can be worked out eg. https://elements.heroku.com/buildpacks/todokku/heroku-buildpack-tor-proxy

I'll try to experiment and keep you posted

tiero avatar Mar 11 '20 12:03 tiero

I saw that using buuldpacks something can be worked out eg. https://elements.heroku.com/buildpacks/todokku/heroku-buildpack-tor-proxy

I'll try to experiment and keep you posted

If you make it working, it means that we will be able also to run GlobaLeaks on Heroku https://github.com/globaleaks/globaleaks and as you can make it i'll offer a huge dinner! :>

fpietrosanti avatar Mar 11 '20 13:03 fpietrosanti