Skip to content

Instantly share code, notes, and snippets.

View 3r1co's full-sized avatar

Eric Muellenbach 3r1co

View GitHub Profile
sgdisk --new=2:0:+768M $DEV
sgdisk --new=3:0:+2M $DEV
sgdisk --new=4:0:+128M $DEV
sgdisk --new=6:0:0 $DEV
sgdisk --typecode=2:8301 $DEV
sgdisk --typecode=3:ef02 $DEV
sgdisk --typecode=4:ef00 $DEV
sgdisk --typecode=6:8301 $DEV
sgdisk --change-name=2:/boot $DEV
sgdisk --change-name=3:GRUB $DEV
#!/bin/bash
IPTABLES="/usr/sbin/iptables -w 10"
${IPTABLES} -t nat -N TPROXYHTTP
${IPTABLES} -t nat -A TPROXYHTTP -o lo -j RETURN
${IPTABLES} -t nat -A TPROXYHTTP -d 127.0.0.0/8 -j RETURN
${IPTABLES} -t nat -A TPROXYHTTP -d 192.168.0.0/16 -j RETURN
${IPTABLES} -t nat -A TPROXYHTTP -d 10.0.0.0/8 -j RETURN
${IPTABLES} -t nat -A TPROXYHTTP -d 172.16.0.0/12 -j RETURN