Skip to content

Instantly share code, notes, and snippets.

View Necklaces's full-sized avatar

Nichlas Severinsen Necklaces

View GitHub Profile
Necklaces / Makefile
Created July 18, 2022 10:34 — forked from vladiant/Makefile
C++20 Hello World Module
main : main.o hello.o
g++-11 -o main main.o hello.o
main.o : main.cpp gcm.cache/smd.hello.gcm
g++-11 -fPIC -fmodules-ts -std=c++20 -o main.o -c main.cpp
hello.o: hello.cpp
g++-11 -fPIC -fmodules-ts -std=c++20 -o hello.o -c hello.cpp
gcm.cache/smd.hello.gcm: hello.o

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 /
Last active June 2, 2024 05:26
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

Necklaces / tiny-core-install
Last active August 29, 2015 14:17
Tiny Core - Core / MicroCore - Minimal Quick 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