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

IRC over Tor #398

Open
ghost opened this issue Dec 18, 2022 · 10 comments
Open

IRC over Tor #398

ghost opened this issue Dec 18, 2022 · 10 comments

Comments

@ghost
Copy link

ghost commented Dec 18, 2022

Hey, I tried to connect to the OFTC IRC onion site. I disabled tls, placed the onion link in the addr and used torsocks with tiny, but it couldn't connect. I would like to know if there's something that I'm missing. Thanks!

@osa1
Copy link
Owner

osa1 commented Dec 18, 2022

I don't know anything about tor. If you share instructions to reproduce the issue maybe I or someone else can debug this.

@trevarj
Copy link
Contributor

trevarj commented Dec 18, 2022

Would also be helpful to know if this is working with irssi or weechat, to rule out the OFTC onion link not working.

@ghost
Copy link
Author

ghost commented Dec 18, 2022

I don't know anything about tor. If you share instructions to reproduce the issue maybe I or someone else can debug this.

I just placed the onion link on the addr and executed tiny with torsocks. I used 'torsocks tiny oftc'.

@ghost
Copy link
Author

ghost commented Dec 18, 2022

I tried on weechat and couldn't connect, I'm trying to reach the OFTC support.

@ghost
Copy link
Author

ghost commented Dec 18, 2022

Also, is the pull request for SASL EXTERNAL going to be merged? Some services like libera only allow onion connections with certificates.

@ghost
Copy link
Author

ghost commented Dec 18, 2022

It seems that the only way to connect to an onion server is using socat and connecting to it through irssi, probably weechat also.

@trevarj
Copy link
Contributor

trevarj commented Dec 18, 2022

Also, is the pull request for SASL EXTERNAL going to be merged? Some services like libera only allow onion connections with certificates.

I fixed the conflicts on the SASL EXTERNAL PR : #363
It would be helpful if you could try out that branch and let me know if it's working for you.

@ghost
Copy link
Author

ghost commented Jan 15, 2023

Hey, sorry for the delay. Does tiny have any proxy configuration option? I used the Libera Guide on Tor, mapped the address, configured the SASL EXTERNAL and changed in the address from irc.libera.chat to palladium.libera.chat. The only missing thing is configure tiny to use Tor SOCKS proxy. I tried torsocks, but it did not succeed. The error:

1673783575 ERROR torsocks[7558]: Unable to resolve. Status reply: 4 (in socks5_recv_resolve_reply() at socks5.c:677)

Also, I tried OFTC normal and it connects, but the onion site can't be found by tiny.

@trevarj
Copy link
Contributor

trevarj commented Jan 15, 2023

@marshallishere no, there is no config for SOCKS in tiny.

From the docs:

Some clients lack SOCKS4a or later support. In this case you will need to change your torrc file to map a private IP address to the onion service address instead and disable TLS hostname verification in your client.

but we don't allow disabling TLS hostname verification in tiny (dangerous), so I doubt getting IRC over TOR will work.

If you are feeling dangerous, you could modify the TLS config in

let builder = ClientConfig::builder()
and might be able to get it to work.

@ghost
Copy link
Author

ghost commented Jan 15, 2023

but we don't allow disabling TLS hostname verification in tiny (dangerous), so I doubt getting IRC over TOR will work.

On Tor or I2P you don't need to have TLS because the tunnel is already encrypted.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants