ideas of cloud test

This commit is contained in:
light
2018-01-15 19:31:35 +08:00
parent c76e301127
commit 2d2f35d509
5 changed files with 61 additions and 1 deletions
+4 -1
View File
@@ -18,7 +18,7 @@
## 思路
![iptables_examples_network_topology](../static/img/iptables_frame.png)
![iptables_frame](../static/img/iptables_frame.png)
如图2所示,端口转发走的是下发A路,利用nat表中prerouting做dnat,用postrouting做snat
@@ -42,6 +42,9 @@ packet out|转发包|10.138.108.103:X|192.168.1.1:8001
# net.ipv4.ipv4_forward=1
```
使改动生效
> sudo sysctl -p
## 脚本
``` bash