Toggen Blog
20 years of tech tips
Articles
Latest
Cannot login to mariadb on VM hosted on TrueNAS
Logging into mariadb on a VM hosted on TrueNAS mysql -uroot -p Enter password: ERROR 2026 (HY000): TLS/SSL error: certificate is not yet valid Date in VM is set to UTC date Tue Aug 4 06:38:39 AM UTC 2026 Fix Change the VM settings in TrueNAS to have System Clock be...
Cannot ping IPv6 from a TrueNAS hosted Virtual Machine
truenas virtualization network issue byu/Kv0837 intruenas From the above Reddit thread What you need is a bridge for your main interface and then set the bridge as a NIC in your VM. I'll paste here a quick step by step that I wrote for some time ago but should still...
Find files between two time stamps
mints="2026-07-24 01:52:00" maxts="2026-07-24 01:55:00" find . -newermt "$mints" ! -newermt "$maxts"
Block or allow access to WordPress security sensitive locations using nested locations with nginx or angie
How do you selectively block access to all static files under a folder (e.g. /wp-admin/) but make sure that the .php files are executed properly when access is allowed, and without creating a heap of location blocks and tearing your hair out due to nginx selecting the...
Nginx / Angie Dummy Default Site
Stop your nginx instance from replying with the first valid SSL cert and nothing from port 80 when people hit the server without a valid hostname # /etc/angie/http.d/default.conf server { listen 80 default_server; listen [::]:80 default_server; listen 443 ssl...
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...
