Skip to content

Instantly share code, notes, and snippets.

Avatar

Nichlas Severinsen Necklaces

View GitHub Profile
View keybase.md

Keybase proof

I hereby claim:

  • I am necklaces on github.
  • I am necklaces (https://keybase.io/necklaces) on keybase.
  • I have a public key ASAlRtBXc5s1zhjFVtpUhLUhZVREnpRqbp4uWcmQ1VOnwgo

To claim this, I am signing this object:

@Necklaces
Necklaces / ufw_vpn_killswitch_tutorial.md
Last active Oct 18, 2020
GNU/Linux UFW VPN kill switch tutorial
View ufw_vpn_killswitch_tutorial.md

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

@Necklaces
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
You can’t perform that action at this time.