[toc]
强迫自己看 iptables 的文档.
翻的很烂, 自己明白就行.
Name
iptables - administration tool for IPv4 packet filtering and NAT
iptables - IPv4 包过滤和 NAT 的管理工具
Synopsis 简介
1
2
3
4
5
6
7
8
9
|
iptables [-t table] -[AD] chain rule-specification [options]
iptables [-t table] -I chain [rulenum] rule-specification [options]
iptables [-t table] -R chain rulenum rule-specification [options]
iptables [-t table] -D chain rulenum [options]
iptables [-t table] -[LFZ][chain] [options]
iptables [-t table] -N chain
iptables [-t table] -X [chain]
iptables [-t table] -P chain target [options]
iptables [-t table] -E old-chain-name new-chain-name
|
Description 描述
Iptables is used to set up, maintain, and inspect the tables of IP packet filter rules in the Linux kernel.
在 linux 内核中 iptable 被用来配置, 维护和检查 IP 包过滤规则表.