A little oddity about pcap filter sequences

A discusson on efnets #bsd-dk today revealed an oddity about the filter sequence that tcpdump uses when libpcap has been compiled with vlan support, and you are looking to filter vlans in or out of your output. It turns out that vlan statements should seemingly always be specified at the beginning of the statement, in the following fashion:

tcpdump -i trunk1 vlan 42 and not port 80

If the statement is reversed, ie. not port 80 and vlan 42, you can’t reliably expect an output on all systems.

Another interesting thing about this, is that while plenty of site demonstrate vlan support, the filter sequence is hardly ever brought up.

Thoughts on FreeBSD 10.1 x64, VirtualBox and Hyper-V

Today I had to do a bit of testing with FreeBSD and, since I wasn’t using my workstation for anything in particular, I threw FreeBSD 10.1 ×64 in VirtualBox. What’s interesting about this is that nowadays it only takes about 10 minutes to be up and running with XDM and xfce installed through pkg. Quite a pleasent surprise

One interesting issue I had was that because I had at one point installed and then removed Hyper-V, it appears that it isn’t completely removed and it is necessary to manually disable the VT-x locking that Hyper-V does at boot-time by running the following command:

bcdedit /set hypervisorlaunchtype off

Sushi, tonkatsu, and rice


A bit of a special treat with sushi, tonkatsu and rice.

Cinnamon cake with brown or white frosting


Here you have the recipe for how to make cinnamon cake, with white or brown sugar (24p), in three steps. First, we start with the cake:

  • 250 gram butter

  • 800 gram sugar

  • 800 gram wheat flour

  • 8 teaspoons cinnamon

  • 4 teaspoons baking soda

  • 1 liter buttermilk

  1. Melt and then cool the butter, then stir together with the sugar

  2. Wheatflour, cinnamon and baking soda are mixed and is sifted into the sugarmix while the buttermilk is poured in, in small amounts

  3. Butter (or cover with baking paper) up a roasting pan, and spread the cakemix evenly

  4. Preheat oven and bake at 200°c in a conventional oven(or 180°c in a hot-air oven) for approximately 30 minutes

Next is the brown chocolate frosting, where you will need:

  • 100 gram butter

  • 500 gram powdered sugar

  • 4 teaspoon vanilla

  • 2 spoon cocoa

  • (Optionally) 8 spoon hot coffee

  1. Melt the butter and mix in the powered sugar

  2. Mix in the vanilla and cocoa while stirring liberally

  3. Spread evenly on the cake

Alternatively you can make it with white chocolate frosting, for which you will need:

  • 60 gram butter
  • 450 gram sugar
  • 3/4 decilitre milk
  • 100 gram white chocolate
  • (Optionally) a couple of drops of lemon juice
  1. Chop the chocolate semi-finely
  2. Bring milk, sugar and butter to a simmer, then take the saucepan off the heat
  3. Add the chopped white chocolate, and let it sit and melt for 4-5 minutes
  4. Mix thoroughly. It should be maliable once cooled until lukewarm were it can be spread evenly on the cake

Hello world!

Recently I have been getting back into messing around with things, and this time I thought I would try and create a work-log of sorts. Some of the things I have worked with recently:

  • Installing OpenELEC, a stripped Linux distribution running XBMC Kodi and tvheadend among other PVR backends, with multicast DVB-C stripped aac/mp3 audio
  • Configuring a Ubiquity EdgeRouter Lite 3 with EdgeMAX 1.6.0 with ipv6 tunnelling and bridging plus bi-directional QoS
  • Configuring a dual access-point wireless network based on Ubiquity Unifi AP with zero-handoff and 11ms delay on VoIP
  • Testing FreeBSD 11-CURRENT on Raspberry Pi Model B with 512MB memory
  • Setting up LibreNMS for full monitoring on all SNMP and IPMI devices
  • Studying CCNP ROUTE and TSHOOT on GNS3

Here are some things I’m interested in and might cover in the future:

  • Replacing EdgeMAX 1.6.0 on Ubiquity EdgeRouter Lite 3 with FreeBSD 10
  • Moving my FreeBSD server, ZFS fileserver, OpenELEC mediacenter and Synology backup solution into one device with SpiderOak backup
  • Running ESXi with appliance OS’ for the above, preferably on a SuperMicro mini-ITX motherboard – once they release a sensible one
  • Finishing a D.I.Y Whole House Audio setup with multiple rooms and zones based on PoE-powered RPi and speakers speakers and MPD+PulseAudio for delay smmothing to allow smooth room-transition

All of, some of, none of, or completely unrelated, things may appear on this blog in the future. I also post about food, because I like both making and eating it. Stay tuned!