Exploring the OpenWrt router OS
WPA3
WiFi Protected Access 3 (WPA3), the latest WiFi security standard, was announced in 2018. WPA3 provides extra security protection with stronger encryption. OpenWrt has offered WPA3 support for many devices since the OpenWrt 21.02 release, even including for old devices that don't have WPA3 support in their default firmware. OpenWrt needs the wpad-openssl package for WPA3 support. You can install wpad-openssl using the following command:
apk add wpad-openssl
An alternative way is to use the Firmware Selector and replace wpad with wpad-openssl in the package list.
The last step is to configure the Access Point: choose Network | Wireless. Select encryption SAE-mixed if you have some devices that don't support WPA3 or SAE only if all devices support WPA3.
Connecting to Another WiFi Network
There are several reasons why a connection to another router from your main router might be needed. The most common reason is probably an unexpected ISP connection failure. A wireless connection from a router to a smartphone (often called tethering) or to a neighbor's router (it's nice to have a friendly neighbor) can save time and help you get work done. In another case, a direct router-to-router connection is easier and more convenient for measuring signal levels and network throughput.
First of all, you need to set the LAN subnet to 192.168.2.1/24 (Figure 8) to avoid possible collisions with the popular default 192.168.1.1/24 subnet. Then go to the Wireless page and click the Scan button.
The target access point should be within a good signal range. Then, click Join Network. In the next window, click the Replace wireless connection checkbox. Enter the WPA passphrase, and make sure the firewall zone is set to wan/wan6. Do not change the WiFi channel number – it can change dynamically. Press Save and then Save & Apply, and the new connection should work fine.
Ad Blocking
Online advertisements use a lot of traffic and take up the user's time because pages with ads load more slowly. Although router-based ad blocking can't block all ads, it can definitely eliminate many of them for devices.
OpenWrt provides several ad-blocking solutions: Adblock, Adblock-Fast, Adblock-lean, and AdGuard Home. You'll find a summary of the options at the OpenWrt website [9]. I have experience with Adblock, so I recommend choosing it. The configuration details are in Listing 2.
Listing 2
Adblock Setup
# Install the required packages apk add adblock luci-app-adblock ca-certificates service adblock enable # Then, the graphical configuration tool will be available on # LuCI -> Services -> Adblock # More Adblock feeds can be added via the above menu # Check adblock status: /etc/init.d/adblock status ::: adblock runtime information + adblock_status : enabled + frontend_ver : 4.5.0-r1 + backend_ver : 4.5.0-r1 + blocked_domains : 582 457 + active_feeds : 1hosts, adguard, adguard_tracking, bitcoin, certpl + dns_backend : unbound (1.24.2-r1), /mnt/data/adblock/backup, 234.93 MB + run_ifaces : trigger: wan, report: br-lan
Buy this article as PDF
(incl. VAT)
Buy Linux Magazine
Subscribe to our Linux Newsletters
Find Linux and Open Source Jobs
Subscribe to our ADMIN Newsletters
Digital Autonomy
• The Answer Was Already on the Shelf
• Changing the Chip Industry: How Public Investment Has Grown Open Silicon
• United Nations Open Source Portal Goes Live
• EU Open Source Strategy Plays Key Role in Tech Sovereignty Package
• France Says “Au Revoir” to Microsoft
Support Our Work
Linux Magazine content is made possible with support from readers like you. Please consider contributing when you’ve found an article to be beneficial.
News
-
KDE Sets Ambitious Goals for 2026 and Beyond
KDE Connect reveals the goals for the Linux desktop darling, with one of those goals long overdue.
-
It’s Time to Test Fedora 45 Beta
Fedora 45 beta has been released with updated Gnome, KDE Plasma, and kernel.
-
Ubuntu Stonking Stingray Gets Even Rustier
Ubuntu 26.10 has completed its migration to the Rust-based coreutils.
-
AI Fixes Linux Bottlenecks Using “Hideous” Code
A Linux developer used AI to fix bottlenecks that caused problems when building the kernel. The resulting AI-generated code needed a lot of work.
-
Advanced Video Coding Still Under Patent
Brazilian patent BRPI0109962B1 has expired, which means that DivX and Xvid are no longer problematic for Linux, but it doesn’t mean that video is all of a sudden fully unleashed.
-
2,000 Vulnerabilities per Linux Release
Thanks to AI bug hunters, the Linux kernel is seeing record numbers of vulnerabilities, and it's overwhelming developers.
-
Linux Exempt from California’s Age Verification Law
So long as Linux is distributed under the GPL, MIT, BSD, and Apache licenses, the OS is exempt from being required to verify the age of its users in California.
-
Roll Out the Cake: Linux Turns 35
35 years ago, a Finnish student began a humble project that would forever change the course of technology.
-
China Switching from Windows to Linux
China has ordered several government agencies to drop a Chinese-developed version of Windows 10 in favor of either KylinOS or UOS.
-
Pine64 Halts Production of Linux Devices
With continued DRAM and eMMC shortages, Pine64 has decided to discontinue production of Linux devices.
