Skip to content

Instantly share code, notes, and snippets.

@kaiix
kaiix / EC2.md
Last active February 3, 2016 04:24 — forked from kkc/EC2.md
EC2 settings

EC2 相關設定

記憶體

  1. 設定swap(預設為60, 當系統使用到超過40% memory, 就會嘗試使用swap)

    sysctl -w vm.swappiness=0   # from 60 -> 0
    
@kaiix
kaiix / Netfilter-IPTables-Diagrams.md
Created February 28, 2018 08:51 — 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.