Anonymity Setting up your own Matrix Server.

Fixxx

Moderator
Joined
Aug 21, 2024
Messages
270
Reaction score
877
Points
93
iu


In this article, we will consider setting up your own Matrix server for communication.
To create your own server you need a dedicated server and a domain linked to server.
In this example Ubuntu 22.04 will be used as the operating system. So let's get started.

Connect to the server via SSH, update the packages and install the necessary packages with the following command:

sudo apt install curl wget gnupg2 apt-transport-https -y

Add the GPG key for Matrix Synapse with the following command:

undefined

Add the Matrix Synapse repository with the following command:

echo "deb [signed-by=/usr/share/keyrings/matrix-org-archive-keyring.gpg] https://packages.matrix.org/debian/
$(lsb_release -cs) main" | tee /etc/apt/sources.list.d/matrix-org.list

Install Matrix Synapse with the following commands:

sudo apt-get update
sudo apt-get install matrix-synapse-py3

In the opened window, enter the address of our site in the format matrix.sitename.domainname.
In the next window select "<No>, Matrix Synapse is installed". Start the service with the following commands:

sudo systemctl start matrix-synapse
sudo systemctl enable matrix-synapse

Now it's necessary to configure Matrix Synapse. Generate a secret key with the following command:

cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1

Copy the output value. Open the server configuration file with the command:

sudo nano /etc/matrix-synapse/homeserver.yaml

Change the following lines:

bind_addresses: ['127.0.0.1']
enable_registration: true
registration_shared_secret: "paste the value from the previous command"

Save the changes and restart the service with the following command:

sudo systemctl restart matrix-synapse

Next, let's set up a reverse proxy on Nginx. Install Nginx:

sudo apt-get install nginx

Create an Nginx configuration file:

sudo nano /etc/nginx/conf.d/matrix.conf

Add the following lines to this file:

server {
listen 80;
server_name sitename.domainname; #your website address
location / {
proxy_pass http://localhost:8008;
proxy_set_header X-Forwarded-For $remote_addr;
}
}

Save the changes and check the configuration with the following command:

nginx -t

If everything is correct, restart the service with the following command:

sudo systemctl restart nginx

Create a root user on our server with the following command:

register_new_matrix_user -c /etc/matrix-synapse/homeserver.yaml http://localhost:8008

Enter a username, then enter the password twice.
When prompted to make admin type yes and press Enter.
Enable Let's Encrypt. Install Certbot with the following command:

sudo apt install certbot python3-certbot-nginx

Enter the following command to configure the SSL certificate:

certbot --nginx -d your_domain

Enter your e-mail and agree to the service's rules. Next step: enter Y if you want to receive email newsletters from EEF.
Then check the functionality of your server by visiting your site, where an image with the text [matrix] will be displayed.


This completes the installation: you can register an account and start communicating.
 

Fixxx

Moderator
Joined
Aug 21, 2024
Messages
270
Reaction score
877
Points
93
7212

Interpol has shut down the encrypted messaging service MATRIX...

Interpol, in collaboration with law enforcement agencies from six European countries, conducted a special operation during which the encrypted messaging service MATRIX was dismantled. It's noted that for three months, intelligence agencies monitored the communications of members of organized crime groups in real-time.

The existence of MATRIX was revealed in 2021 when the service was discovered on the device of a criminal convicted of murdering a journalist in Netherlands. Following this, a large-scale investigation began, during which police confirmed that they were dealing with an equivalent of Sky ECC and EncroChat, but with a more complex infrastructure. The creators of MATRIX were convinced that the service surpassed previous similar solutions for criminals. Joining the service was by invitation only and its operation was supported by more than 40 servers in several countries, with key servers located in France and Germany.

During the investigation, over 2.3 million messages in 33 languages were intercepted and decrypted. Many of these messages were related to serious crimes, including international drug trafficking, arms trading and money laundering. Simultaneous arrests and searches were carried out on December 3 in four countries: France, Spain, Netherlands and Lithuania. The main MATRIX servers have been shut down.
 
Top Bottom