Skip to content

Instantly share code, notes, and snippets.

View rusins's full-sized avatar

Raitis Rūsiņš Kriķis rusins

View GitHub Profile
@rusins
rusins / vpn-kill-switch.sh
Last active November 10, 2018 22:56
Guide on how to use a simple killswitch for OpenVPN
# Always allow outgoing network connections through the VPN
sudo ufw allow out on tun0
# When you connect to the VPN, run this command: it disables outgoing network traffic (but we had the exception for the VPN earlier)
sudo ufw default deny outgoing
# When you disconnect from the VPN, run this command to re-enable network traffic (make sure to close any devious programs ;) :
sudo ufw default allow outgoing
@rusins
rusins / arch-linux-install-guide.sh
Last active April 12, 2019 20:00
Guide to install Arch Linux with encrypted root partition on UEFI systems
# (Following this guide pretty much: https://wiki.archlinux.org/index.php/Dm-crypt/Encrypting_an_entire_system#LVM_on_LUKS)
# This guide won't encrypt your boot partition, because it takes longer to setup, and the author sees 0 point in doing so.
# Check that we booted into UEFI mode
ls /sys/firmware/efi/efivars
# Get internet
wifi-menu
ping google.com