Skip to content

Instantly share code, notes, and snippets.


Nichlas Severinsen Necklaces

View GitHub Profile
Necklaces /
Last active Jun 21, 2022
GNU/Linux UFW VPN kill switch tutorial

GNU/Linux UFW VPN kill switch tutorial

This is a quick guide for setting up a kill switch using UFW (Uncomplicated FireWall). It is assumed you are using OpenVPN and optionally Network-Manager with network-manager-openvpn.

1. (Optional) IP Addresses

Before we can start we're going to need the IP address (or the IP addresses) of your VPN so that we can whitelist those later on, write them down. They are obviously going to be different for every VPN and VPNs with multiple servers, so I'll leave this up to you.

2. Install UFW

On some systems UFW is installed and enabled by default (Ubuntu, for example). Installation procedure is going to be different for every distribution of GNU/Linux, but it's usually something like


Keybase proof

I hereby claim:

  • I am necklaces on github.
  • I am necklaces ( on keybase.
  • I have a public key ASAlRtBXc5s1zhjFVtpUhLUhZVREnpRqbp4uWcmQ1VOnwgo

To claim this, I am signing this object:

Necklaces / tiny-core-install
Last active Aug 29, 2015
Tiny Core - Core / MicroCore - Minimal Quick Install
View tiny-core-install
# Core 6.1, requires ethernet
tce-load -wi cfdisk
tce-load -wi grub-0.97-splash
tce-load -wi nano
sudo su
fdisk -l
cfdisk /dev/sda