This tutorial is a work in progress
We run a bridge between the #replicant channel on OFTC and the #replicant
channel on liberachat. This is because we originally started on Freenode,
but we found out that it was not possible to create accounts with Tor in
Freenode so we also opened a #replicant channel on the OFTC network to
also enable users that want to protect their identity to be able to join
the replicant channel.
If you intend to deploy a similar configuration for other purposes some of the
requirements above could be removed.
We want to avoid passing around password in insecure ways. So the way to
re-deploy this bridge is to first change the passwords, then add the new passwords
in the configuration file and run matterbridge.
You will first need to shut down the actual bridge if it's already running as
this tutorial doesn't take in account cases where you lost control of a running
bridge for some reasons. If that happens you might need to kick the old bridge
from IRC first or prevent it from login in with the Replicant-bridge username
after having changed the password.
Once done, you can either start with Libera.chat or OFTC, but you'll need to do
both.
To change the password you first need to connect to liberachat securely.
Once done, you can request a password change with the following command:
/msg NickServ SENDPASS Replicant-bridge
The instructions to change the password will then arrive at the Replicant
contact address.
Once the password has been changed you will need to update it in the
matterbridge.toml configuration file.
Once this is done, make sure that your IRC client is not connected (anymore)
as Replicant-bridge.
To change the password, you first need to connect to the OFTC network securely.
TODO: Document how to change the OFTC password.
Here's (below) the matterbridge.toml file we use:
[irc] [irc.liberachat] Nick="Replicant-bridge" NickServNick="Replicant-bridge" NickServPassword="PASSWORD" Server="irc.libera.chat:6697" UseTLS=true UseSASL=true SkipTLSVerify=false RemoteNickFormat="<{NICK}@OFTC> " [irc.OFTC] Nick="Replicant-bridge" NickServNick="Replicant-bridge" Server="irc.oftc.net:6697" UseTLS=true SkipTLSVerify=false RunCommands=["PRIVMSG nickserv :IDENTIFY PASSWORD Replicant-bridge"] RemoteNickFormat="<{NICK}@Libera.Chat> " [[gateway]] name="mygateway" enable=true [[gateway.inout]] account="irc.liberachat" channel="#replicant" [[gateway.inout]] account="irc.OFTC" channel="#replicant"
The passwords have been replaced with PASSWORD.