@@ -68,31 +68,32 @@ iptables -t 表名 <-A/I/D/R> 规则链名 [规则号] <-i/o 网卡名> -p 协
68
68
``` bash
69
69
┎╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┓
70
70
┌───────────────┐ ┃ Network ┃
71
- │ table: filter │ ┖━━━━━━━│━━━━━━━┛
72
- │ chain: INPUT ◀────┐ │
73
- └───────┬───────┘ │ │
74
- │ │ ┌─────────▼─────────┐
75
- ┌ ▼ ┐ │ │ table: nat │
76
- │local process│ │ │ chain: PREROUTING │
77
- └ ┘ │ └─────────┬─────────┘
78
- │ │ │
79
- ▼ │ ▼ ┌─────────────────┐
80
- ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ │ ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ │table: nat │
81
- Routing decision └────── outing decision ─────▶│chain: PREROUTING│
82
- ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ └────────┬────────┘
83
- │ │
71
+ │ table: filter │ ┖━━━━━━━┳━━━━━━━┛
72
+ │ chain: INPUT │◀────┐ │
73
+ └───────┬───────┘ │ ▼
74
+ │ │ ┌───────────────────┐
75
+ ┌ ▼ ┐ │ │ table: nat │
76
+ │local process│ │ │ chain: PREROUTING │
77
+ └ ┘ │ └─────────┬─────────┘
78
+ │ │ │
79
+ ▼ │ ▼ ┌─────────────────┐
80
+ ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ │ ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ │table: nat │
81
+ Routing decision └───── outing decision ─────▶│chain: PREROUTING│
82
+ ┅┅┅┅┅┅┅┅┅┳┅┅┅┅┅┅┅┅┅ ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ └────────┬────────┘
84
83
│ │
85
- ┌───────▼───────┐ │
84
+ ▼ │
85
+ ┌───────────────┐ │
86
86
│ table: nat │ ┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅┅ │
87
87
│ chain: OUTPUT │ ┌─────▶ outing decision ◀──────────────┘
88
- └───────┬───────┘ │ ┅┅┅┅┅┅┅┅┅ ┅┅┅┅┅┅┅┅
88
+ └───────┬───────┘ │ ┅┅┅┅┅┅┅┅┳ ┅┅┅┅┅┅┅┅
89
89
│ │ │
90
- ┌───────▼───────┐ │ ┌──────────▼─────────┐
91
- │ table: filter │ │ │ table: nat │
92
- │ chain: OUTPUT ├────┘ │ chain: POSTROUTING │
93
- └───────────────┘ └──────────┬─────────┘
94
- │
95
- ┎╍╍╍╍╍╍╍▼╍╍╍╍╍╍╍┓
90
+ ▼ │ ▼
91
+ ┌───────────────┐ │ ┌────────────────────┐
92
+ │ table: filter │ │ │ chain: POSTROUTING │
93
+ │ chain: OUTPUT ├────┘ └──────────┬─────────┘
94
+ └───────────────┘ │
95
+ ▼
96
+ ┎╍╍╍╍╍╍╍╍╍╍╍╍╍╍╍┓
96
97
┃ Network ┃
97
98
┖━━━━━━━━━━━━━━━┛
98
99
```
0 commit comments