Skip to content

Connecting to Libera.Chat via Tor

Eric Mertens edited this page Oct 30, 2021 · 2 revisions

libera.chat provides instructions for connecting to it via Tor.

Example server configuration

servers:
  * name:            "lc-tor"
    hostname:        "libera75jm6of4wxpxt4aynol3xjmbtxgfyjpu34ss4d7r7q2v5zrpyd.onion"
    tls-verify:      "palladium.libera.chat"
    socks-host:      "127.0.0.1"
    socks-port:      9050
    tls:             yes
    tls-client-cert: "certificate.pem"
    sasl: mechanism: external

Starting Tor

To connect you'll need to be running tor locally. The default address and port for tor to listen on is 127.0.0.1:9050.

Authenticating yourself

To connect to libera.chat via Tor you'll need to use a SASL mechanism other than PLAIN to authenticate. The easiest to configure is EXTERNAL using a client-side certificate.

EXTERNAL authentication with a certificate

  1. Create a self-signed certificate using glirc: /new-self-signed-cert certificate.pem
  2. Set tls-client-cert to path to certificate.
  3. Set sasl: mechanism: external
  4. Connect to libera.chat using this certificate and run: /msg NickServ CERT ADD