Using tinc with iproute2

I’ve been running a TINC VPN for about 3 years now and lately came to the decision to improve my setup. One thing I came across was that all my scripts were using net-tools in their tinc-up and tinc-down scripts, meaning commands such as ifconfig etc.. As I enjoy working with iproute2 it was time for me to make the switch. #!/bin/sh # tinc-up ip tuntap add dev $INTERFACE mode tun ip addr add 10.0.0.1/24 dev $INTERFACE ip link set $INTERFACE up And of course: ...

October 17, 2015 · 1 min · Moritz Frenzel

Enable TRIM with LVM and LUKS on ArchLinux

To allow linux to issue discards through lvm and luks a few steps need to be performed. I’m running the following setup: sda |__sda1 /boot |__sda2 |___ LUKS |_____ LVM |___ / |___ /home |___ ... Therefore the discards need to be issued through the filesystem, the LVM and the LUKS down to the SSD. Let’s start with the ext4 filesystem: We need to append the discard option to the other filesystem options like so: ...

October 10, 2014 · 2 min · Moritz Frenzel

Using Unsupported SFP+ Modules with Linux

I recently got myself a Intel X520-DA2 10GBE NIC and some SFP-10G-SR+-SO SFP+ Modules to toy around with. After assembling the PCIe card I was luckily surprised that my kernel brought up the NIC without any difficultys, so I plugged my SFP+ modules into the server, only to be greeted with: ixgbe 0000:24:00.1: failed to load because an unsupported SFP+ module type was detected. ixgbe 0000:24:00.1: Reload the driver after installing a supported module. Yay. After 2 hours of useless googleing I asked a friend who happens to be a linux kernel maintainer, and luckily he knew just the fix therefore: ...

November 1, 2013 · 1 min · Moritz Frenzel