Skip to content
This repository has been archived by the owner on Mar 28, 2023. It is now read-only.

Gateway (JSON-API) connections via Tor #794

Open
botaniver opened this issue Dec 18, 2017 · 2 comments
Open

Gateway (JSON-API) connections via Tor #794

botaniver opened this issue Dec 18, 2017 · 2 comments
Labels
feature Feature or enhancement to openbazaar-go

Comments

@botaniver
Copy link

botaniver commented Dec 18, 2017

Please add support for direct Tor connections into the Gateway (JSON-API).

I tried to set my Gateway as /onion/xxxxxxxxxxxxxxxx:4002 but OB failed at start with the following error:

protocol not found in multiaddr

My temporary solution was to revert to the default Gateway, /ip4/127.0.0.1/tcp/4002, and point a HiddenService into it on torrc. Does the job, but connecting through OB's dedicated hidden service seems a better solution.
openbazaar-desktop already supports .onion addresses on the "Server IP" field if "Use Tor" is selected.

@cpacia cpacia added the feature Feature or enhancement to openbazaar-go label Dec 20, 2017
@cpacia
Copy link
Member

cpacia commented Dec 20, 2017

Hmm. I'm trying to think of the best way to do this. I suppose it could be made to spin up the gateway server as a hidden service but it might require some significant tinkering because the gateway is actually part of the IPFS library.

Maybe an easier way would be to leave the gateway on /ip4/127.0.0.1/tcp/4002 and then create a hidden service in your torrc file?

HiddenServiceDir /Library/Tor/var/lib/tor/hidden_service/
HiddenServicePort 4002 127.0.0.1:4002

I think that should work.

@cpacia cpacia closed this as completed Dec 20, 2017
@cpacia cpacia reopened this Dec 20, 2017
@botaniver
Copy link
Author

Hi @cpacia

Thanks for looking into it.

Maybe an easier way would be to [...] create a hidden service in your torrc file?

As you can read on my post above, that's exactly what I am doing. But IMO it is a workaround and not a definitive solution. As I said, it:

Does the job, but connecting through OB's dedicated hidden service seems a better solution.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
feature Feature or enhancement to openbazaar-go
Projects
None yet
Development

No branches or pull requests

4 participants