← Home Photos Archive Replies Also on Micro.blog
  • OPNsense Guide: Content Blocking

    This guide will help you setup content blocking using the Unbound DNS resolver in OPNsense, and assumes you are already using Unbound.

    First, navigate to Services > Unbound DNS > Blocklist.

    • In the top left corner, enable advanced mode.
    • Check Enable.
    • Under URLs of Blocklists, enter one of the two following URLs…
      • small.oisd.nl/domains (Blocks Ads)
      • big.oisd.nl/domains (Blocks Ads, Tracking, and Malware)
    • Additionally, this URL can be added to block content that is inappropriate for children…
      • nsfw.oisd.nl/domains (Blocks adult websites)
    • Click Apply.

    You can visit this ad block test website to verify the blocklists are working. When using the big list I score 86%.

    I suggest pairing a network-wide DNS blocklist with on-device content blockers as well. The latter can specifically help in removing whitespace on websites where ads may have otherwise been sitting. You should now notice a reduction in your internet usage, and faster loading of websites and apps.

    Credits to https://oisd.nl for maintaining the lists of domains. You can report domains that should be included in the lists.

    → 9:27 AM, Aug 23
  • OPNsense Guide: Smart Queue Management

    In this brief guide I will show you how to setup the shaper in OPNsense using the minimal number of settings and configuration. We will be using the modern fq_codel (Fair/Flow Queueing + COntrolled DELay) packet scheduler. The idea here is to maximize compatibility, however you may need to research further than this guide to tailor the settings for your network.

    Connect a wired computer as close in your network topology to your modem or ONT as you can, and run an internet speedtest. Note the results from this test (it is wise to perform several tests, then work out the average). Here are my personal results we will use in this guide.

    Before_Shaper

    First, start by navigating to Firewall > Shaper > Pipes.

    • Select the + icon to create a new pipe.
    • Enable advanced mode in the top left corner.
    • Under Bandwidth enter in your measured download throughput, rounded down.
    • Under Bandwidth Metric select Mbps.
    • Under Scheduler type select FlowQueue-CoDel.
    • Under Description enter PipeDown.
    • Save.
    PipeDown

    Add another, but this time enter the upstream bandwidth and name it PipeUp.

    PipeUp

    Second, navigate to Firewall > Shaper > Queues.

    • Select the + icon to create a new queue.
    • Under Pipe select PipeDown.
    • Under Mask select Destination.
    • Under Description enter DownQueue.
    • Save.
    QueueDown

    Add another, but this time select UpPipe, Source, and enter QueueUp.

    QueueUp

    Third, navigate to Firewall > Shaper > Rules.

    • Select the + icon to create a new rule.
    • Under Direction select in.
    • Under Target select QueueDown.
    • Under Description enter RuleDown.
    • Save.
    RuleDown

    Add another, but this time select out, QueueUp, and enter RuleUp.

    RuleUp

    Click on Apply for the changes to take effect. You can navigate to Firewall > Shaper > Status to confirm your settings have been enabled.

    Status

    On a computer that is within your local network, re-run the internet speedtest. You will notice you lose some throughput — in my case about 7-8% — in favour of consistently low latency. Here are my results.

    After_Shaper
    → 8:53 PM, Aug 22
  • RSS
  • JSON Feed
  • Micro.blog