- 论坛徽章:
- 0
|
我访问一个网站,它的IP是211.152.50.239
之前我把MARK语句改了
- # Generated by iptables-save v1.2.11 on Sat Jun 23 01:46:41 2007
- *mangle
- :PREROUTING ACCEPT [17070:3759946]
- :INPUT ACCEPT [5343:360470]
- :FORWARD ACCEPT [11720:3399196]
- :OUTPUT ACCEPT [6097:660225]
- :POSTROUTING ACCEPT [17817:4059421]
- [0:0] -A PREROUTING -d 211.152.50.239 -i eth2 -j MARK --set-mark 0xb
- [0:0] -A PREROUTING -d 211.152.50.239 -i eth2 -j RETURN
- [31:18061] -A PREROUTING -d 192.168.0.3 -i eth1 -j MARK --set-mark 0x16
- [31:18061] -A PREROUTING -d 192.168.0.3 -i eth1 -j RETURN
- COMMIT
- # Completed on Sat Jun 23 01:46:41 2007
复制代码
然后访问这个网站,流量结果为:
- [root@localhost ~]# tc -s qdisc ls dev eth1
- qdisc htb 1: r2q 10 default 20 direct_packets_stat 0
- Sent 18406 bytes 235 pkts (dropped 0, overlimits 0)
- qdisc sfq 10: parent 1:10 quantum 1514b perturb 10sec
- Sent 17260 bytes 220 pkts (dropped 0, overlimits 0)
- qdisc sfq 20: parent 1:20 quantum 1514b perturb 10sec
- Sent 1146 bytes 15 pkts (dropped 0, overlimits 0)
复制代码
流量是到子类10上去了。 |
|