Skip to content

Instantly share code, notes, and snippets.

View clickfreak's full-sized avatar

Konstantin Novakovskii clickfreak

View GitHub Profile
@clickfreak
clickfreak / mount_qcow2.md
Created April 6, 2019 21:08 — forked from shamil/mount_qcow2.md
How to mount a qcow2 disk image

How to mount a qcow2 disk image

This is a quick guide to mounting a qcow2 disk images on your host server. This is useful to reset passwords, edit files, or recover something without the virtual machine running.

Step 1 - Enable NBD on the Host

modprobe nbd max_part=8
@clickfreak
clickfreak / Netfilter-IPTables-Diagrams.md
Created May 3, 2018 20:55 — forked from nerdalert/Netfilter-IPTables-Diagrams.md
Linux NetFilter, IP Tables and Conntrack Diagrams

Linux NetFilter, IP Tables and Conntrack Diagrams

IPTABLES TABLES and CHAINS

IPTables has the following 4 built-in tables.

1) Filter Table

Filter is default table for iptables. So, if you don’t define you own table, you’ll be using filter table. Iptables’s filter table has the following built-in chains.