Skip to content

IPFire (Encrypted)


IPFire is an open-source firewall and router, used in both consumer and commercial environments.

IPFire utilizes Unbound, which has built-in DNS over TLS support, with the configuration being accessible in the GUI.

This setup guide was tested using IPFire 2.27

Backup Time!

Before making changes to a production environment, we recommend backing up the existing configuration


  • Navigate to System -> Domain Name System

    • Under DNS Servers, click Add
      • Go through this process twice, one for each Quad9 IP address, where the TLS Hostname will always be
        • IP address:
        • IP address:
  • Use ISP-assigned DNS Servers: Disabled

  • Protocol for DNS Queries: TLS
  • Enable Safe Search: Disabled
  • QNAME Minimisation: Disabled
  • Click Save

Verify Configuratiom


Navigate to Status -> Net-Traffic in the top menu, and search for an active connect to either or via port 853 TCP


  • Connect to your IPFire device via SSH
  • Install the tshark package
pakfire -y install tshark
  • Start a packet capture with tshark to filter for DNS over TLS traffic:
tshark -i any 'port 853'

If the IPFire device is using DNS over HTTPS for DNS queries, you will see output like this:

1 0.000000000 → TCP 76 37226 → 853 [SYN] Seq=0 Win=64240 Len=0 MSS=1460 SACK_PERM=1 TSval=3103990808 TSecr=0 WS=512
2 0.006914259 → TCP 76 853 → 37226 [SYN, ACK] Seq=0 Ack=1 Win=28960 Len=0 MSS=1460 TSval=2447463919 TSecr=3103990808 WS=256
3 0.006948874 → TCP 68 37226 → 853 [ACK] Seq=1 Ack=1 Win=64512 Len=0 TSval=3103990815 TSecr=2447463919
4 0.007110658 → TLSv1 387 Client Hello
5 0.013306457 → TCP 68 853 → 37226 [ACK] Seq=1 Ack=320 Win=30208 Len=0 TSval=2447463926 TSecr=3103990815
6 0.013926633 → TLSv1.3 2964 Server Hello, Change Cipher Spec, Application Data
7 0.013945067 → TCP 68 37226 → 853 [ACK] Seq=320 Ack=2897 Win=62464 Len=0 TSval=3103990822 TSecr=2447463926

Questions? Issues? Didn't work? Contact us!

Get Support