Block websites by category, for example adult content, for every device on your network. People who open a blocked site see a clear block page with your organisation's name, instead of an error. Nothing has to be installed or set up on the devices to block them; installing one certificate only makes the block page appear on HTTPS sites too.

At a glance:

What Where
Turn on and block adult content Security › Web filtering: the settings are filled in; Save, then commit
Choose more categories (gambling, violence, malware, …) Category lists: tick them, or Select all
Change how the block page looks Block page: organisation, heading, colour, logo, message, contact; Preview
Show the block page on HTTPS sites Block page › Download the certificate, install it on the devices once
See what was blocked Recent blocks; Check a site tests one address

How it works

  1. A device asks the firewall's DNS for a site's address.
  2. If the site is in a blocked category for that device's network, the firewall answers with its block address instead of the real one.
  3. The browser connects to the block address, and the firewall shows the block page.

The block address is chosen by the firewall: an address outside all your networks that exists only on the firewall itself. You never enter it, and it does not change when your LAN or internet addresses change. In a failover pair it works on whichever firewall is active.

Devices must use the firewall as their DNS server. With Korthveil's DHCP server, they do automatically. To stop devices from going around it, DNS resolver › Interception › Redirect clients' DNS (port 53) to the firewall sends every DNS query to the firewall, and the web filter turns off the browsers' own encrypted DNS (Firefox and iCloud Private Relay are told to use the network's DNS).

Step 1: Turn on the DNS resolver

The web filter decides and the firewall's DNS enforces. If Network › DNS resolver is not on yet, the web filter page shows a link: turn it on, save and commit (see DNS filtering).

Step 2: Turn on web filtering

  1. Security › Web filtering.
  2. The first time, the page is filled in for you: - UT1 category lists on, with adult and mixed_adult; - the rule Block adult content for your internal networks (not the internet side); - Safe search on for Google, Bing and DuckDuckGo, and YouTube restricted (moderate); - the block page with the automatic block address.
  3. Press Save to pending changes, then commit.
  4. The firewall downloads the lists, about 4.6 million adult sites, in a few minutes. Lists and activity shows the progress and then ready.
Web filtering, filled in to block adult content
Web filtering, filled in to block adult content

Step 3: Choose more categories (optional)

Under Category lists, every category is listed with its description: gambling, violence, drugs, malware, phishing, social networks, games, dating, and many more. Tick the ones you want, or Select all. Then add them to a rule under Policy:

Rules apply per zone (network). Never filter these domains lists sites that are always allowed.

All categories, with Select all
All categories, with Select all

Step 4: Make the block page yours

Block page:

Press Preview (or Preview warning) to see the page before you save.

The block page settings
The block page settings
The block page people see
The block page people see

Advanced lets you set a fixed block address, the port, the zones that reach the page, or your own HTML template. The template gets the site, category, client, user, time, a reference number for the help desk, and your texts; it cannot load anything from other sites.

Step 5: The block page on HTTPS sites

Almost every site uses HTTPS. A browser only shows a page for an HTTPS address if it trusts the certificate. Without the firewall's certificate, a blocked HTTPS site shows the browser's own warning (Your connection is not private); the site is still blocked.

To see the block page instead, install the firewall's web filter certificate on each device once:

  1. Security › Web filtering › Block page › Download the certificate (korthveil-web-filter-ca.crt). From a phone on your network, the block page itself also offers it: open any blocked http:// address and follow Install the certificate.
  2. Install it: - Windows: double-click the file, Install Certificate, Local Machine, Place all certificates in the following store, Trusted Root Certification Authorities, Finish. - macOS: double-click the file (Keychain Access opens), choose the System keychain, then double-click the certificate, Trust, When using this certificate: Always Trust. - iPhone and iPad: open the file, Settings › Profile Downloaded › Install, then Settings › General › About › Certificate Trust Settings, turn on Korthveil Web Filter CA. - Android: Settings › Security › Encryption & credentials › Install a certificate › CA certificate, choose the file. - Firefox uses its own list: Settings › Privacy & Security › Certificates › View Certificates › Authorities › Import, tick Trust this CA to identify websites.

The firewall uses the certificate only for sites it blocks. Everything else goes directly to the real site and is never decrypted. The certificate's private key never leaves the firewall. In a failover pair, each firewall has its own certificate: install both.

Check it

Troubleshooting

You see Meaning What to do
Sites are not blocked The device does not use the firewall's DNS Use Korthveil's DHCP, or turn on Interception in the DNS resolver
Your connection is not private on a blocked site The device does not have the web filter certificate Install it (Step 5), or accept that blocked HTTPS sites show this warning
A site you need is blocked It is in a blocked category Add it under Never filter these domains, save and commit
Lists show waiting The download has not finished yet Wait a few minutes; Update lists now retries
A blocked site still opens on one browser The browser uses its own DNS over HTTPS (set by hand) Turn it off in the browser, or block DNS over HTTPS servers with a firewall rule