Project

General

Profile

Replicant-bridge » History » Version 1

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

1 1 Denis 'GNUtoo' Carikli
h1. Replicant-bridge
2
3
h1. Warnings
4
5
This tutorial is a work in progress
6
7
h1. Introduction
8
9
We run a bridge between the #replicant channel on OFTC and the #replicant
10
channel on liberachat. This is because we originally started on Freenode,
11
but we found out that it was not possible to create accounts with Tor in
12
Freenode so we also opened a #replicant channel on the OFTC network to
13
also enable users that want to protect their identity to be able to join
14
the replicant channel.
15
16
h1. Requirements
17
18
To deploy the Replicant IRC bridge, you need:
19
- To have the OFTC network and libreachat networks configured in an IRC
20
  client in a way that enforces encryption and checks for certificates validity.
21
  More precisely:
22
  - TLS should be used for both OFTC and Libera.Chat
23
  - SASL should be used for Libera.Chat.
24
  This is to avoid sending passwords in clear.
25
- Access to the Replicant contact address to change the passwords
26
- A virtual or physical computer that can stay always on
27
- The ability to run FSDG compliant distributions in that computer
28
- The ability ro run matterbridge (the bridge software) on the distribution you use
29
30
If you intend to deploy a similar configuration for other purposes some of the
31
requirements above could be removed.
32
33
h1. Deployement
34
35
We want to avoid passing around password in insecure ways. So the way to
36
re-deploy this bridge is to first change the passwords, then add the new passwords
37
in the configuration file and run matterbridge.
38
39
h2. Changing passwords
40
41
You will first need to shut down the actual bridge if it's already running as
42
this tutorial doesn't take in account cases where you lost control of a running
43
bridge for some reasons. If that happens you might need to kick the old bridge
44
from IRC first or prevent it from login in with the Replicant-bridge username
45
after having changed the password.
46
47
Once done, you can either start with Libera.chat or OFTC, but you'll need to do
48
both.
49
50
h3. Change the liberachat password
51
52
To change the password you first need to connect to liberachat securely.
53
54
Once done, you can request a password change with the following command:
55
<pre>
56
/msg NickServ SENDPASS Replicant-bridge
57
</pre>
58
59
The instructions to change the password will then arrive at the Replicant
60
contact address.
61
62
Once the password has been changed you will need to update it in the
63
matterbridge.toml configuration file.
64
65
Once this is done, make sure that your IRC client is not connected (anymore)
66
as Replicant-bridge.
67
68
h3. Change the OFTC password
69
70
To change the password, you first need to connect to the OFTC network securely.
71
72
TODO: Document how to change the OFTC password.
73
74
h2. Deploying matterbridge
75
76
Here's (below) the matterbridge.toml file we use:
77
<pre>
78
[irc]
79
80
    [irc.liberachat]
81
    Nick="Replicant-bridge"
82
    NickServNick="Replicant-bridge"
83
    NickServPassword="PASSWORD"
84
    Server="irc.libera.chat:6697"
85
    UseTLS=true
86
    UseSASL=true
87
    SkipTLSVerify=false
88
    RemoteNickFormat="<{NICK}@OFTC> "
89
    
90
    [irc.OFTC]
91
    Nick="Replicant-bridge"
92
    NickServNick="Replicant-bridge"
93
    Server="irc.oftc.net:6697"
94
    UseTLS=true
95
    SkipTLSVerify=false
96
    RunCommands=["PRIVMSG nickserv :IDENTIFY PASSWORD Replicant-bridge"] 
97
    RemoteNickFormat="<{NICK}@Libera.Chat> "
98
    
99
[[gateway]]
100
name="mygateway"
101
enable=true
102
    [[gateway.inout]]
103
    account="irc.liberachat"
104
    channel="#replicant"
105
106
    [[gateway.inout]]
107
    account="irc.OFTC"
108
    channel="#replicant"
109
</pre>
110
111
The passwords have been replaced with PASSWORD.