libera.chat runs it’s own onion service at libera75jm6of4wxpxt4aynol3xjmbtxgfyjpu34ss4d7r7q2v5zrpyd.onion
. To connect with the onion service we need to configure our irc client and also ensure that we have the tor service running. For the purposes of this post, I will be using irssi since it is the irc client of my choice.
openssl req -x509 -new -newkey rsa:4096 -sha256 -days 1096 -nodes -out liberator.pem -keyout liberator.pem
openssl x509 -in liberator.pem -noout -enddate
openssl x509 -in liberator.pem -noout -fingerprint -sha512 | awk -F= '{gsub(":",""); print tolower ($2)}'
mkdir ~/.irssi/certs
mv -iv liberator.pem ~/.irssi/certs
tor
installed on your system. Edit torrc at /etc/tor/torrc
and add the following line.MapAddress palladium.libera.chat libera75jm6of4wxpxt4aynol3xjmbtxgfyjpu34ss4d7r7q2v5zrpyd.onion
or
MapAddress 10.10.10.10 libera75jm6of4wxpxt4aynol3xjmbtxgfyjpu34ss4d7r7q2v5zrpyd.onion
tor
service. (systemctl restart tor
)$ irssi
[(status)] /connect irc.libera.chat
[(status)] /msg NickServ identify <your password here>
[(status)] /msg NickServ CERT ADD <your fingerprint (see above)>
~/.irssi/config
.[(status)] /network add -sasl_username <username> -sasl_password <password> -sasl_mechanism EXTERNAL liberator
[(status)] /server add -auto -ssl -ssl_cert ~/.irssi/certs/liberator.pem -network liberator palladium.libera.chat 6697`
or
[(status)] /server add -auto -ssl -ssl_cert ~/.irssi/certs/liberator.pem -network liberator 10.10.10.10 6697
[(status)] /save
$ torsocks irssi
[(status)] /connect liberator