Squid is a popular open-source proxy server that is used to cache and serve web content to clients. In this tutorial, we'll show you how to install Squid on a Fedora Server Latest distribution.
Before proceeding, you will need the following:
Before installing Squid, it's always a good idea to update your system's packages and repositories. You can do this by running the following command:
sudo dnf update
To install Squid on Fedora Server Latest, run the following command:
sudo dnf install squid
During the installation, you may be prompted to confirm the download and installation of some additional packages. Type "y" and hit enter to proceed with the installation.
By default, Squid listens on port 3128 for incoming connections. If you want to change the default port, you can do so by editing the /etc/squid/squid.conf
file:
sudo nano /etc/squid/squid.conf
Inside the file, you'll find a line that looks like the following:
http_port 3128
You can change this to any port you prefer. Once you've made your changes, save and exit the file.
To start the Squid service, run the following command:
sudo systemctl start squid
To make sure that Squid starts automatically at boot time, run the following command:
sudo systemctl enable squid
To verify that Squid is running and accepting connections, we can use the curl
command:
curl -x http://localhost:3128 http://www.example.com/
If Squid is working correctly, you'll see the contents of the example.com website displayed in your terminal.
Congratulations! You've successfully installed and configured Squid on your Fedora Server Latest distribution. Squid is a powerful caching and proxy server that can help speed up your network and improve performance.
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!