Posts for: #Proxy

Docker – Matrix Synapse homeserver, federation, nginx reverse proxy and TURN server setup using docker-compose

Recently I set up a Matrix homeserver for my friend group. I considered whether I needed federation, and ultimately decided that I did. On top of that, I also had to set up a TURN server so that calls would work properly for everyone, since if someone is behind NAT, the connection typically doesn’t work reliably. I launched the container on a Hetzner cloud VPS running Debian 10.

 

You’ll need a running Docker service, if it’s not installed yet, you can easily install it using https://get.docker.com/. I recommend creating a git repository where you can push your docker-compose and nginx config files.

[Read more]

Installing Squid Proxy on Ubuntu Server

Installing Squid Proxy on Ubuntu Server

First, let’s update the repositories:

apt-get update

Then install the proxy software and the associated password generator:

apt-get install squid apache2-utils

Once that’s done, let’s create an empty configuration file:

rm -rf /etc/squid/squid.conf
touch /etc/squid/squid.conf
chown proxy /etc/squid/squid.conf

Then create the password file:

touch /etc/squid/squid_passwd

Then grant permissions to the proxy:

chown proxy /etc/squid/squid_passwd

Start editing the configuration file:

nano /etc/squid/squid.conf

and add the following lines (for http_port, specify the port you want to connect to the proxy on):

[Read more]