Atlantic.Net Blog

How to Install CTparental on Ubuntu 20.04

CTparental is an open-source parental control software used for controlling computer usage and Internet browsing. This simple, powerful tool is one of the best at filtering website access. It made from several components like dnsmasq, iptables, and inguardian privoxy that make CTparental a fully-fledged parental control solution. It supports several web browsers including Firefox, Midori, Chromium, and more.

In this post, we are going to explain how to install CTparental on Ubuntu 20.04 VPS.


  • A fresh Ubuntu 20.04 server on the Atlantic.Net Cloud Platform
  • A root password configured on your server

Step 1 – Create Atlantic.Net Cloud Server

First, log in to your Atlantic.Net Cloud Server. Create a new server, choosing Ubuntu 20.04 as the operating system with at least 2GB RAM. Connect to your Cloud Server via SSH and log in using the credentials highlighted at the top of the page.

Once you are logged in to your Ubuntu 20.04 server, run the following command to update your base system with the latest available packages.

apt-get update -y

Step 2 – Install CTparental

By default, the CTparental package is not included in the Ubuntu default repository, so you will need to download the CTparental .deb file from the Gitlab website. You can download it with the following command:

wget -c

Once the file is downloaded, install the downloaded file with the following command:

dpkg -i ctparental_ubuntu20.04_lighttpd_4.44.18-1.0_all.deb

Next, run the following command to resolve dependency error:

apt-get install -f

During the installation, you will be asked to provide a CTparental admin username as shown below:
CTparental Set Admin User

Provide your admin username and hit Enter. You will be asked to provide the password as shown below:
CTparental Set Password
Provide your secure password and hit Enter to finish the installation.

CTparental all configuration files are located at /etc/CTparental directory. You can see them with the following command:

ls /etc/CTparental/

You should see the following output:

blacklist-enabled         CThourscompteur  dip-blackliste.conf   GCToff.conf           ipv6filter-available  nftables-timerweb
blacklists.tar.gz.md5sum  CThours.conf     dip-rehabiliter.conf  ip-blackliste.conf    ipv6filter-enable     resolv.conf.sav
bl-categories-available   CTparental.conf  dist.conf             ipv4filter-available  ipv6-rehabiliter      sshd
categories-enabled.conf   CTsafe.conf      dnsfilter-available   ipv4filter-enable     nftables.conf         whitelist-enabled
categoriesmd5sum          ctsync.conf      domaine-rehabiliter   ipv4-rehabiliter      nftables-save.nft     wl-categories-available

Step 3 – Configure CTparental

By default, CTparental is configured to listen on You will need to configure it to listen on your public IP so you can access the CTparental web UI from the remote machine.

You can configure it with the following command:

sed -i 's/' /etc/lighttpd/conf-enabled/90-CTparental.conf

The above command will replace the IP with your-server-ip.

Now, restart the Lighttpd service to apply the changes:

systemctl restart lighttpd

Step 4 – Access CTparental web UI

Before accessing the CTparental web interface, you will need to edit the /etc/hosts file of the Linux system from where you want to access the CTparental.

nano /etc/hosts

Add the following lines:

your-server-ip admin.ct.local 

Save and close the file, then open your web browser and access the CTparental web UI using the URL https://admin.ct.local. You will be redirected to the CTparental login page:
CTparental Login page
Provide your username, password and click on the Connection button. You should see the CTparental dashboard on the following page:
CTparental Dashboard page


In the above guide, you learned how to install and configure CTparental on an Ubuntu 20.04 VPS. You can now control computer usage and internet browsing from the CTparental dashboard on your VPS from Atlantic.Net.

Get started with 12 months of free cloud VPS hosting

Free Tier includes:
G3.2GB Cloud VPS Server Free to Use for One Year
50 GB of Block Storage Free to Use for One Year
50 GB of Snapshots Free to Use for One Year