How to Install Blocky on OpenSUSE Latest
Blocky is a lightweight DNS proxy that effectively blocks ads, malware, and tracking without relying on specific filter lists. In this tutorial, we'll guide you through the steps to install Blocky on OpenSUSE Latest.
Prerequisites
Before you start, make sure your OpenSUSE system meets the following requirements:
- A non-root user with sudo privileges
- Port 53 available
Step 1: Install Required Packages
The first step is to install required packages on your OpenSUSE system. Enter the following command to install them:
sudo zypper install git make gcc libev-devel libcap-progs
Step 2: Download Blocky
Go to the official Blocky GitHub repository at https://github.com/0xERR0R/blocky and clone it using git:
git clone https://github.com/0xERR0R/blocky.git
This will download Blocky to your home directory.
Step 3: Build and Install Blocky
Navigate to the directory containing the Blocky code you just cloned and execute the following commands:
make
sudo make install
This will compile and install Blocky on your system with the default settings.
Step 4: Configure Blocky
By default, Blocky listens on port 53 for DNS requests. You can change this by editing the /etc/blocky/blocky.conf file:
sudo vi /etc/blocky/blocky.conf
In this file, you can configure Blocky's behavior, such as which upstream DNS servers to use and which domains to block.
Step 5: Start Blocky
To start Blocky:
sudo systemctl start blocky
You can check if Blocky is running by running the following command:
sudo systemctl status blocky
Step 6: Configure DNS Settings
To use Blocky to block ads and tracking, you need to configure your DNS settings to use Blocky as the default DNS server.
Go to your network settings and set the DNS server to 127.0.0.1. This will redirect all DNS requests to Blocky.
Conclusion
That's it! You should now have Blocky installed and configured on your OpenSUSE system. Blocky is now working actively in the background, blocking ads and tracking requests from your network. Enjoy ad-free browsing!