Title here
Summary here
table ip filter {
chain input {}
}结构说明:
table → chain → rule| Hook | 说明 |
|---|---|
| input | 入站 |
| output | 出站 |
| forward | 转发 |
| |
| |
| |
| |
| |
输出示例:
handle 5 tcp dport 22 accept删除:
| |
| |
| |
| |
添加元素:
| |
使用:
| |
| |
| |
| |
同样使用 handle:
| |
| |
| |
查看:
| |
| |
| |
| |
| |
| |
性能更高,适合:
nftables 不支持像 iptables 那样按内容删除
| |
table → chain → rule → set | |
| |
| |