Project

General

Profile

Actions

Replicant-bridge » History » Revision 1

Revision 1/4 | Next »
Denis 'GNUtoo' Carikli, 06/02/2021 10:46 PM
Initial import. It might be moved to git if needed.


Replicant-bridge

Warnings

This tutorial is a work in progress

Introduction

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.

Requirements

To deploy the Replicant IRC bridge, you need:
- To have the OFTC network and libreachat networks configured in an IRC
client in a way that enforces encryption and checks for certificates validity.
More precisely:
- TLS should be used for both OFTC and Libera.Chat
- SASL should be used for Libera.Chat.
This is to avoid sending passwords in clear.
- Access to the Replicant contact address to change the passwords
- A virtual or physical computer that can stay always on
- The ability to run FSDG compliant distributions in that computer
- The ability ro run matterbridge (the bridge software) on the distribution you use

If you intend to deploy a similar configuration for other purposes some of the
requirements above could be removed.

Deployement

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.

Changing passwords

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.

Change the liberachat password

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.

Change the OFTC password

To change the password, you first need to connect to the OFTC network securely.

TODO: Document how to change the OFTC password.

Deploying matterbridge

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.

Updated by Denis 'GNUtoo' Carikli almost 3 years ago · 1 revisions

Also available in: PDF HTML TXT