Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support SOCKS proxy for Gemini #155

Closed
makew0rld opened this issue Dec 23, 2020 · 5 comments
Closed

Support SOCKS proxy for Gemini #155

makew0rld opened this issue Dec 23, 2020 · 5 comments
Labels
documentation Improvements or additions to documentation enhancement New feature or request roadmap A user-facing feature on the roadmap.
Milestone

Comments

@makew0rld
Copy link
Owner

From the mailing list:

Currently at a very nice hotel, with a great breakfast but a WiFi networks which allows only ports 80 and 443. As a result, I need to tunnel all the Gemini traffic :-(

(By the way, it seems there is currently no Gemini client with SOCKS support?)

Source

This should be very easy to support in client/ using golang.org/x/net/proxy.

@makew0rld makew0rld added enhancement New feature or request roadmap A user-facing feature on the roadmap. labels Dec 23, 2020
@makew0rld makew0rld added this to the v1.9.0 milestone Dec 24, 2020
@makew0rld
Copy link
Owner Author

Actually this will need changes to go-gemini to allow custom dialers.

@makew0rld
Copy link
Owner Author

A SOCKS5 dialer for go-gemini should most likely live in its own repo that Amfora and gemget import. See makew0rld/go-gemini#13 (comment) for details.

@makew0rld makew0rld added the documentation Improvements or additions to documentation label Dec 13, 2021
@makew0rld
Copy link
Owner Author

https://github.com/makeworld-the-better-one/go-gemini-socks5 exists now, and go-gemini supports using proxies. Next step is to add support for SOCKS5 in gemget, and run my own SOCKS5 server and test with it.

@makew0rld
Copy link
Owner Author

Added support to gemget in makew0rld/gemget@316a083, and tested using the default TOR socks5 proxy. Was able to download the content of a Gemini capsule hosted over TOR. So everything works great, next step is to add to Amfora as well.

@makew0rld
Copy link
Owner Author

Did the same TOR test with Amfora and it worked. Proxy host is set by AMFORA_SOCKS5 env var. Proxy username and password is not supported, it doesn't seem to be used often from what I've seen, since SOCKS5 isn't encrypted, and/or is often running locally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation enhancement New feature or request roadmap A user-facing feature on the roadmap.
Projects
None yet
Development

No branches or pull requests

1 participant