Skip to content

Instantly share code, notes, and snippets.

View moviuro's full-sized avatar

Moviuro moviuro

View GitHub Profile
#!/usr/bin/env bash
# Moviuro's Kernel Modules Manager
# A successor to https://github.com/saber-nyan/kernel-modules-hook
# Released under the UNLICENSE
_myname="mkmm"
__usage(){
cat << EOH

Keybase proof

I hereby claim:

  • I am moviuro on github.
  • I am moviuro (https://keybase.io/moviuro) on keybase.
  • I have a public key whose fingerprint is 2CD9 6FEE 343C 6799 B9CE AFAD 6200 9A2E 0C22 D9AB

To claim this, I am signing this object:

IPv6-only LAN with OpenBSD

My ISP provides IPv6 for their home broadband networks, soon other ISPs will too (notably BT who are running a trial of it at the moment). Unless they do it in some insane way, this means that every broadband subscriber will be allocated a /64 of IPv6 space to do with as they please.

The normal way to use this is to "dual-stack" your network, keeping DHCPv4 to hand out NAT-ed RFC1918 addresses to your machines while also using SLAAC to advertise your IPv6 prefix from the router so that machines on the network can autoconfigure themselves an IPv6 address.

If you only want to access IPv6 sites from networked machines, you can disable DHCPv4 altogether on your network, and subject to some caveats[1] your machines will work just fine when they access sites with working AAAA records (such as Facebook and Google).

The problem comes when your machines try and access websites which don't have AAAA records - these will just display a browser error.

@moviuro
moviuro / rtorrent
Created September 15, 2015 18:50
/usr/local/etc/rtorrent
#!/bin/sh
#
# $FreeBSD$
#
# Runs as unprivileged rtorrent_user "rtorrent"
# Lives in "/usr/local/bin/tmux" (like "screen") because rtorrent can't daemonize itself
# To access rtorrent: service rtorrent attach
# To detach the /usr/local/bin/tmux and leave rtorrent running: Ctrl-B then D
# nice'd default +10 step to make it go easy on the machine
# Don't forget to put rtorrent_enable="YES" in your /etc/rc.conf