January 2019

Using Postfix to block mail based on From/sender and To/recipient

Back in late November (now 56 days ago), I started getting huge levels of very directed spam. When I tweeted about it, I was getting perhaps 100-250 a day. I thought it would soon stop and they would target someone else. They would get into my spam folder yes, but it still takes time to go through that folder. Eventually it did stop. For a few days, then it came back at about […]

Using Postfix to block mail based on From/sender and To/recipient Read More »

Double timestamps in logs

I noticed some double timestamps in my logs recently. They started just after I upgraded the host to FreeBSD 12, but I am not convinced they are related. This is from /var/log/messsages: Jan 22 21:41:40 knew 1 2019-01-22T21:41:40.760533+00:00 knew.int.unixathome.org pkg 89351 – – py36-iocage-devel upgraded: 1.0.0.20181219,1 -> 1.0.0.20190122,1 They started late yesterday, this is from /var/log/maillog: Jan 21 22:28:58 knew 1 2019-01-21T22:28:58.677083+00:00 knew.int.unixathome.org postfix/anvil 42521 – – statistics: max connection rate 1/60s for

Double timestamps in logs Read More »

Upgrading to FreeBSD 12.0 from FreeBSD 11.2 using beadm and freebsd-update

Today I will upgrade knew from FreeBSD 11.2 to FreeBSD 12.0. It so happens that this is my last server at home which is still running 11.2, but I do have another server still on 11.2, but that one is at NYI. This post isn’t so much about beadm or about freebsd-update. I have written about moving to a beadm layout, but if your zfs list output looks something like this, you’re good

Upgrading to FreeBSD 12.0 from FreeBSD 11.2 using beadm and freebsd-update Read More »

Collecting statistics from bind / named

I use bind (Berkeley Internet Name Domain) as my DNS server. I am currently running bind 9.11.5P1 on FreeBSD 11.2-RELEASE-p8 in a jail, with iocage as my jail manager. The OS, jail, and jail manager should play no part in how this works. I have been collecting statistics from bind for some time. I have configured LibreNMS to collect the details via snmpd and they are plotted in a lovely looking graph. The

Collecting statistics from bind / named Read More »

Registering FireTV – unable to receive verification code on phone

I was setting up my FireTV (seems to be a TV with built-in FireStick functions). I was stuck, waiting for a verification code which never arrived on my phone. I was expecting an incoming text. I was wrong to expect that. I had gotten to the stage of logging in with my Amazon credentials and was getting told (and I paraphrase here): Because of the way your account is set up, your login

Registering FireTV – unable to receive verification code on phone Read More »

avoiding duplicate cronjobs

Sometimes you want to run a cronjob on a frequent basis, but you rarely want a new one to start before the old one has finished. There is an easy tool in FreeBSD base called lockf. It is similar to the flock tool. Here is an example I am using: Based on the man page, the lockf utility acquires an exclusive lock on /tmp/.rsyncer.rsync.papers, creating it if necessary, and removing the file on

avoiding duplicate cronjobs Read More »

Configuring LibreNMS Nginx statistics

This post might help me in configuring net-snmp to deliver Nginx statistics to LibreNMS. As such, this post may not be as helpful to you as the official documentation. Key is this URL: http://127.0.0.1/nginx-status The nginx.conf file needs something like this: NOTE: the fastcgi_pass line might also be fastcgi_pass 10.80.0.92:9000 depending on what you find in /usr/local/etc/php-fpm.conf. You should see something like this in the script, which you might have copied from https://github.com/librenms/librenms-agent/blob/master/snmp/nginx

Configuring LibreNMS Nginx statistics Read More »

Scroll to Top