Iptables
Last updated
Was this helpful?
Last updated
Was this helpful?
通过了解iptables的基本概念(table, chain, target, module)和原理,掌握一些常用使用方法。以后遇到不懂的基本可以通过iptables -h
或man iptables
解决。
下面的图对于理解iptables有一些帮助。
Prerouting -> routing(路由) -> |--> input -> 进程处理 -> output -> postrouting
|--> forward
LOG和TRACE target可以用来debug。
-m
后面接的是module name,列出所有的modules的命令:cat /proc/net/ip_tables_matches
,关于各个module的详细使用见。
An In-Depth Guide to iptables, the Linux Firewall:
iptables-extensions:
A Deep Dive into Iptables and Netfilter Architecture:
Iptables Tutorial 1.2.2: