When my home DHCP address changes, I want stuff done

I recently moved from an appliance to a FreeBSD 14.2 gateway. In this post: FreeBSD 14.2 gw01 gw01 photos These are the main things I need done when my IP address changes: restart OpenVPN restart my Hurricane Electric IPv6 tunnel with the new IP address – written Tell HE.net about my IP address change – written Notify OpenDNS.com about my IP address change Update a dynamic DNS entry so my VPN clients can […]

When my home DHCP address changes, I want stuff done Read More »

Debugging aids for pf firewall rules [on FreeBSD]

It is not often that I need to debug pf firewall rules. Yet, when I do, I cannot remember the commands for what I want to do. What is being blocked First, I want to see the firewall rule numbers in the tcpdump output. I am logging all blocked packets, via pflog0. I can use that to see what is being blocked and by what rule. These are found in my /etc/pf.conf: There

Debugging aids for pf firewall rules [on FreeBSD] Read More »

Configuration of net-mgmt/net-snmp on FreeBSD

I have several posts about net-mgmt/net-snmp – this is the latest. I wrote it back in June and it’s been sitting in drafts ever since. If you read the previous post, you’ll understand why I wrote a new one. In this post: FreeBSD 14.1 net-snmp-5.9.4_6,1 This is the configuration I start with. [dvl@r720-02-nginx01:~] $ cat /usr/local/etc/snmpd.conf agentAddress udp:127.163.0.80:161,tcp:127.163.0.80:161 sysLocation BSD Cabal HQ sysContact dan@langille.org extend nginx /usr/local/etc/snmp/nginx-python3.py extend phpfpmsp /usr/local/etc/snmp/phpfpm-sp When adding auth,

Configuration of net-mgmt/net-snmp on FreeBSD Read More »

gw01 – setup photos – very little commentary

Earlier today, I installed FreeBSD 14.2 on gw01. EDIT: 2025-02-11: Yesterday, I found out the gateway draws 22W. And yes, as an Amazon Associate I earn from qualifying purchases. Here’s the link for that hardware. Here are some of the photos. The system is very quiet. I cannot hear it from 10 ft away. First boot – that first boot can take some time. 1-2 minutes. First boot trying the USB drive. Selecting

gw01 – setup photos – very little commentary Read More »

gw01

Three weeks ago, I tooted about getting a new gateway/route/firewall for the home lab. After many fantastic suggestions, I settled on a Atom-based solution in a 1U case. It’s the “Qotom 5X 2.5G LAN 2 SFP+ Barebone Mini Router Q20322G9 with C3558 1U Rackmount Mini Server” as sold on Amazon and shipped from China. The unit arrived 8 days after ordering. It could have been 7. It was out for delivery yesterday, but

gw01 Read More »

Converting pgeu-system schedule to HTML

I’ve been using pgeu-system for conference organization since 2000. Once feature I wish it had: export the schedule to HTML. The primary reason for that is to decouple the schedule from the software. That way, the schedules are available on the website when the software is not running. That is, instead of pulling the page from the database, you’re pulling the page from static HTML files. Such a feature is useful should you

Converting pgeu-system schedule to HTML Read More »

Is deleting empty snapshots faster?

During the 2025-01-22 OpenZFS Production User Call, ‘atomic operations’ was mentioned with respect to ~/tmp/deleting zfs list -r -t snapshot data01/snapshots/deleting > ~/tmp/deleting 2.54s user 48.47s system 99% cpu 51.042 total 50 seconds. That’s OK. 60,000 deletes starting on the 23rd I started the delete. Actually, it’s not 60,000 deletes. It’s one destroy, of 60,000 snapshots. [12:52 r730-03 dvl ~] % time sudo zfs destroy data01/snapshots/deleting@1%60000 After starting the above command, I started

Is deleting empty snapshots faster? Read More »

Way too many snapshots

In this post In this post, we have: FreeBSD 14.1-RELEASE-p5 r730-03 Lots of boring repetitive sections, so skip over that to find what you need This article was written over a couple of days. The zpool in question is 3 pairs of 12TB HDD: [13:44 r730-03 dvl ~/tmp] % zpool status data01 pool: data01 state: ONLINE scan: scrub in progress since Fri Jan 17 05:29:21 2025 22.1T / 26.1T scanned at 200M/s, 19.2T

Way too many snapshots Read More »

Why does the same command appear on two different ports with different times?

While I was destroying some snapshots, I found this interesting / disturbing. Why is the same destroy appearing twice, on different TTYs? [16:11 r730-03 dvl ~/tmp] % w | grep air dvl pts/2 air01.startpoint.vpn.unixathome.org 1:04PM 2:18 sudo zfs destroy data01/snapshots/homeassistant-r730-01@autosnap_2024-10-19_22:15:08_frequently dvl pts/1 air01.startpoint.vpn.unixathome.org Fri11PM – w dvl pts/4 air01.startpoint.vpn.unixathome.org 4:11PM – sudo zfs destroy data01/snapshots/homeassistant-r730-01@autosnap_2024-10-19_22:15:08_frequently dvl pts/5 air01.startpoint.vpn.unixathome.org 1:07PM 33 -zsh (zsh) What’s up with that? And why different times? It is not

Why does the same command appear on two different ports with different times? Read More »

Renaming and replacing zroot filesystems using mfsBSD

This might have interesting tidbits. It’s a draft from June 2020 where I was renaming filesystems when booting from a live thumbdrive. I am replacing one zroot with another because of missing binaries and suspect layout. The existing zroot is an old system predating current zroot layouts. I have already copied over some filesystems via zfs send | zfs recv over ssh. I will now try renaming the filesystems on the new drives

Renaming and replacing zroot filesystems using mfsBSD Read More »

Scroll to Top