by choobacker · 1y ago · 0 comments
I used it for a while, but after I've had it for a few months, and want to improve/diagnose something, I can't easily tell which config I've changed from defaults, and so can't easily diagnose how I might have screwed it up, or predict how changes will impact the rest of the system.
I moved my router to NixOS, where I can now see the ~250 config that covers the custom setup needed for my ISP/LAN.
If asked, I'd still recommend OpenWRT for most techies, since it's easier to get started.
I see the fresh re-install suggestions probably work but that's tedious and risky.
Do keep in mind that the OpenWRT backup does not contain information about which extra packages were installed after firstboot. I solved this adding a cron job which runs opkg list-installed > /etc/opkg_installed.txt and adding that last filepath to /etc/sysupgrade.conf so it gets added to backups.
ls /overlay/upper/usr/lib/opkg/info/*.list | sed -e 's/.*\///' | sed -e 's/\.list//' # mount|grep ext4
/dev/mapper/pve-vm--501--disk--0 on / type ext4 (rw,relatime,stripe=512)
The /overlay directory exists just like the /rom one does but they're empty: # ls -l /|grep -E 'overlay|rom'
drwxr-xr-x 2 root root 1024 Jan 27 23:53 overlay
drwxr-xr-x 2 root root 1024 Jan 27 23:53 rom
These are empty directories (there is a note file in /rom with some info for those using squashfs which is not applicable to these installations).That's a misconception. Nobody actually cares about security for packages that are not in the default install. For example, the initscript for sstp-client disables certificate validation unconditionally, see https://github.com/openwrt/packages/issues/25212
> Nobody actually cares about security for packages that are not in the default install.
Probably an exaggeration, but it's clear there are some packages that are insecure out-the-box.
cd /etc
git init
git add .
git commit -m 'default config'
git remote add ...
git push
# modify your configs
git diff HEAD
git commit -m 'yay i changed stuff and i know what i did'
git pushAll updates except semi-recent DSA changes were seamless.
https://discourse.nixos.org/t/how-minimal-can-a-nixos-image-...
NixOS works well for x86-64 and aarch64, but not so much armv7l, as so many consumer routers are.
The PC Engines happens to be x86-64 with decent storage expansion, but for sure if you want to target armv7l, NixOS is not a good choice.
The website for the US distributor listed on PCEngines webssite is now selling "BoingFire" products instead of PCEngines.
systemd-networkd + kea + corerad is the software I use.
https://openwrt.org/toh/tp-link/eap615-wall is the device I use as an AP, which runs OpenWRT.
CoreRAD is about the same thing, but for NDP instead of DHCP.
I could have used systemd-networkd for serving DHCP and NDP, but prefer to use separate modular privilege-separated deamons, especially if I get memory safety too.
That's EOL now, so nowadays I'd look to ARM e.g. https://radxa.com/products/network-computer/e52c
For wireless AP i have an Mediatek MT7621 device, they are very well supported and provide proper wifi throuput