Skip to content

Instantly share code, notes, and snippets.

Nichlas Severinsen Necklaces

View GitHub Profile
@Necklaces
Necklaces / ufw_vpn_killswitch_tutorial.md
Last active Jul 7, 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.