iptables之mangle表应用实现策略路由+(案例)
来源:互联网 发布:软件过程剪裁 编辑:程序博客网 时间:2024/05/10 19:05
1
2
3
4
5
6
7
ip route add
default
gw
20.0
.
0.1
ip route add table
10
via
10.0
.
0.1
dev eth0
#eth0 是
10.0
.
0.1
所在的网卡,
10
是路由表的编号
ip rule add fwmark
10
table
10
#fwmark
10
是标记,table
10
是路由表
10
。 标记了
10
的数据使用table10 路由表
iptables -A PREROUTING -t mangle -i eth2 -s
192.168
.
10.1
-
192.168
.
10.100
-j MARK --
set
-mark
10
#使用iptables给相应的数据打上标记
1
2
3
4
iptables -t mangle -A PREROUTING -i eth2 -p tcp --dport
80
-j MARK --
set
-mark
20
ip route add
default
gw
20.0
.
0.1
ip route add table
20
via
10.0
.
0.1
dev eth0
ip rule add fwmark
20
table
20
0 0
- iptables之mangle表应用实现策略路由+(案例)
- iptables 的mangle表
- iptables mangle 表,链
- iptables 策略(实际应用)
- iptables和策略路由实现VPN感兴趣流的截获
- 9.3.3 mangle表应用举例
- Linux路由应用-使用策略路由实现访问控制
- Linux路由应用-使用策略路由实现访问控制
- iptables深入解析:mangle篇
- iptables深入解析:mangle篇
- iptables实现路由转发
- 日常运维(四):iptables filter表案例 iptables nat表应用
- iptables filter表案例和iptables nat表应用
- iptables filter表案例、iptables nat表应用
- 防火墙策略之iptables
- Android-x86_64 - iptables -L - filter - nat - mangle
- Android5.0网络之策略路由应用场景
- mangle
- 黑马程序员_java集合回顾
- SQL case when
- Android ANR 分析解决方法
- Django学习笔记(一)
- TIBCO增加了Hadoop的支持,Spotfire中的内存分析 - 牙科口罩制造商
- iptables之mangle表应用实现策略路由+(案例)
- 宏CC_CALLBACK_1
- BuildReport 插件导入unity脚本报错(BRT_Util.cs:error CS1525: Unexpected symbol `;', expecting `)', or `,')
- THJ-2201 BRC精细化学品
- VC维
- 如何用adb命令启动你的Android程序
- Codeforces Round #257 (Div. 2) B. Jzzhu and Sequences
- 基本数据结构(栈,队,列)模版
- 读书笔记