pf – cannot define table: Cannot allocate memory

I use pf on FreeBSD 8.1-stable as my firewall of choice. Recently I’ve started using the University of Alberta list of trapped addresses. As of the time of writing this, the list contains about 56,000 IP addresses. When combined with my own list of 27,000 SPAMTRAP addresses, I quick ran into a problem when reload my rule set: $ sudo pfctl -f /etc/pf.rules No ALTQ support in kernel ALTQ related functions disabled /etc/pf.rules:69: […]

pf – cannot define table: Cannot allocate memory Read More »

Syncing your iPhone and Google contacts

It was my riding buddy, John Boatman who told me he synced his iPhone and Google contacts. Just before I broke my arm in June, my iPhone died (actually, I lost the contents, it didn’t die) and I was without all my phone numbers when I really needed them. The phone numbers were there, in the backups, but they wouldn’t restore. I did get them restored eventually, but that’s not the point. After

Syncing your iPhone and Google contacts Read More »

IPv6 woes

I’m not sure why I can’t get to the internet from my systems inside my LAN. The gateway can. Interesting: On the client box, I can’t see any IPv6 traffic leaving the except icmp. The following demonstrates: Setting up a $ ifconfig em0: flags=8943<UP,BROADCAST,RUNNING,PROMISC,SIMPLEX,MULTICAST> metric 0 mtu 1500 options=219b<RXCSUM,TXCSUM,VLAN_MTU,VLAN_HWTAGGING,VLAN_HWCSUM,TSO4,WOL_MAGIC> ether 00:1b:21:51:ab:2d inet 10.55.0.44 netmask 0xffffff00 broadcast 10.55.0.255 inet6 fe80::21b:21ff:fe51:ab2d%em0 prefixlen 64 scopeid 0x1 inet6 2001:470:1f07:b80:21b:21ff:fe51:ab2d prefixlen 64 autoconf nd6 options=3<PERFORMNUD,ACCEPT_RTADV> media: Ethernet autoselect

IPv6 woes Read More »

zfs send | zfs receive

For the record, I was doing a copy within a system recently: # time zfs send storage/bacula@transfer | mbuffer | zfs receive storage/compressed/bacula-buffer in @ 0.0 kB/s, out @ 0.0 kB/s, 4394 GB total, buffer 100% fullll summary: 4394 GByte in 35 h 11 min 35.5 MB/s real 2111m18.302s user 11m44.831s sys 258m59.151s I was copying my Bacula Volumes from non-compressed ZFS to compressed ZFS. # zfs list NAME USED AVAIL REFER MOUNTPOINT

zfs send | zfs receive Read More »

Overly agressive spam rejection

I’ve been getting a few of these emails lately. It’s my own servers rejecting email I’m send to myself. I’m not sure yet where to adjust these settings. I’m not even sure what software is rejecting it. I suspect amavis. Return-Path: <dan@supernews.example.org> X-Original-To: dan@nyi.example.org Delivered-To: dan@nyi.example.org Received: from localhost (localhost [127.0.0.1]) by nyi.example.org (Postfix) with ESMTP id 0B2F350BC6 for <dan@nyi.example.org>; Fri, 17 Sep 2010 01:47:15 +0100 (BST) X-Virus-Scanned: amavisd-new at example.org Received: from

Overly agressive spam rejection Read More »

ntp wasn’t running but Nagios didn’t notice

Earlier today, I noticed the following output from a Bacula job: 24-Sep 14:14 bacula-dir JobId 38548: Start Backup JobId 38548, Job=latens_home.2010-09-24_14.12.38_31 24-Sep 14:14 bacula-dir JobId 38548: Using Device “MegaFile-latens” 24-Sep 14:09 latens-fd JobId 38548: DIR and FD clocks differ by -307 seconds, FD automatically compensating. That’s 5 minutes. It shouldn’t be varying by that much. So I started ntp. That’s when I noticed it was not being started by /etc/rc.conf. But I thought

ntp wasn’t running but Nagios didn’t notice Read More »

Rebate!

Back in Feburary, I ordered a 720W PSU for $150. There was a $60 rebate with it. When the PSU arrived, I promptly filled out the form and put it in an envelope for mailing. Except, I didn’t mail it. I found that envelope a few weeks ago. What the hell. I mailed it. It was already stamped etc. Today I got a $60 VISA debate card. Win. Interestingly enough, I originally bought

Rebate! Read More »

ZFS – how much space do I have?

According to this, I have 5.41T available. $ zpool list NAME SIZE USED AVAIL CAP HEALTH ALTROOT storage 12.7T 7.28T 5.41T 57% ONLINE – According to this, I have 3.7T available: $ df -h | grep stora storage 3.7T 1.7G 3.7T 0% /storage storage/Retored 3.7T 39K 3.7T 0% /storage/Retored storage/bacula 8.0T 4.3T 3.7T 54% /storage/bacula storage/pgsql 3.7T 5.5G 3.7T 0% /storage/pgsql Which is correct?

ZFS – how much space do I have? Read More »

Sending out a URL for password reset

Quite some time ago, FreshPorts and The FreeBSD Diary both moved from clear text passwords to password hashes. As such, you are no longer able to recover your password. You had to email me. This is extra work for everyone. Let us automate this. The first, step, is a table: create table user_password_reset( user_id int not null, date_requested timestamp with time zone default (‘now’::text)::timestamp(6) with time zone, ip_address inet not null, token text

Sending out a URL for password reset Read More »

3Ware RAID issues resolved

It seems the RAID issues mentioned in recent posts have been resolved. On Friday, I upgraded the firmware on the controller and rebooted. 5 days later, the status is still OK: $ sudo /usr/local/sbin/tw_cli info c0 u0 Password: Unit UnitType Status %RCmpl %V/I/M Port Stripe Size(GB) ———————————————————————— u0 RAID-10 OK – – – 64K 195.548 u0-0 RAID-1 OK – – – – – u0-0-0 DISK OK – – p0 – 65.1826 u0-0-1 DISK

3Ware RAID issues resolved Read More »

Scroll to Top