Toggen Blog
20 years of tech tips
Articles
Latest
Angie – GeoIP – Forbid wp-login.php and /wp-admin/ and allow whitelisting and blacklisting IP’s
GeoIP lookup apt install mmdb-bin geoipupdate angie-module-geoip2 mmdblookup --ip 2603:1010:200::32c --file /var/lib/GeoIP/GeoLite2-Country.mmdb country iso_code "AU" <utf8_string> mmdblookup --ip 52.147.37.48 --file /var/lib/GeoIP/GeoLite2-Country.mmdb country...
WakeMeOnLAN – Watching for WOL packets with tcpdump
If you want to see WOL traffic on the LAN try this tcpdump snippet WakeMeOnLAN.exe uses port 40,000 by default so you'll miss it if you just use 9 # on a Unifi UDM sudo tcpdump -i br99 udp port 9 or udp port 40000 Where -i br99 is the interface on a Linux based host #...
TrueNAS Wake on LAN
Set Wake-On-LAN in my BIOS and TrueNAS was stubbornly refusing to Wake when I sent a magic packet to it's MAC address. After booting this is the output of ethtool showing Wake-On-LAN is disabled (Wake-on: d) The following two scripts are installed to run as the system...
Identifying physical disks in TrueNAS
Manufacturer: Gigabyte Technology Co., Ltd. Product Name: A520I AC In the end I guess to properly map physical drives to physical motherboard connectors would be to shutdown, remove a cable, boot up and see what is missing. After all the below I still can't solidly...
PC Upgrade – Testing Installed RAM with memtest86
PC Build Originally I build the above small ITX PC in a Silverstone case and recently I lost my dear old 4 Drive Synology DS415+ so I've moved the 4 x 8TB HDD's into a new case and transferred the innards into the following new bits. RAM, Case and SSD. QTY. PART #[ID]...
Tailing the CBS.log while waiting for DISM to complete
If DISM /Online /Cleanup-Image /RestoreHealth appears stuck running the following can help with the feelings of impatience. This will show the new actions as they are logged by DISM and re-assure you it's still going even if it's stuck at 62.3% for a while, especially...
