Skip to content

Instantly share code, notes, and snippets.

Nichlas Severinsen Necklaces

Block or report user

Report or block Necklaces

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Necklaces
Necklaces / ufw_vpn_killswitch_tutorial.md
Last active Mar 21, 2019
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 & Enable 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 once you've got it installed enabling it is easy (assuming you have sudo):

@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.