- 论坛徽章:
- 0
|
- [root@localhost ~]# iptables-save -ct mangle
- # Generated by iptables-save v1.2.11 on Sat Jun 23 01:27:43 2007
- *mangle
- :PREROUTING ACCEPT [8832:1609351]
- :INPUT ACCEPT [2971:211400]
- :FORWARD ACCEPT [5856:1397751]
- :OUTPUT ACCEPT [3148:344661]
- :POSTROUTING ACCEPT [9004:1742412]
- [0:0] -A PREROUTING -d 192.168.0.3 -i eth2 -j MARK --set-mark 0xb
- [0:0] -A PREROUTING -d 192.168.0.3 -i eth2 -j RETURN
- [0:0] -A PREROUTING -d 192.168.0.3 -i eth1 -j MARK --set-mark 0x16
- [0:0] -A PREROUTING -d 192.168.0.3 -i eth1 -j RETURN
- COMMIT
- # Completed on Sat Jun 23 01:27:43 2007
- [root@localhost ~]# tc -s qdisc ls dev eth1
- qdisc htb 1: r2q 10 default 20 direct_packets_stat 0
- Sent 1396 bytes 16 pkts (dropped 0, overlimits 0)
- qdisc sfq 10: parent 1:10 quantum 1514b perturb 10sec
- Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
- qdisc sfq 20: parent 1:20 quantum 1514b perturb 10sec
- Sent 1396 bytes 16 pkts (dropped 0, overlimits 0)
- [root@localhost ~]# tc -s qdisc ls dev eth1
- qdisc htb 1: r2q 10 default 20 direct_packets_stat 0
- Sent 17690 bytes 200 pkts (dropped 0, overlimits 0)
- qdisc sfq 10: parent 1:10 quantum 1514b perturb 10sec
- Sent 0 bytes 0 pkts (dropped 0, overlimits 0)
- qdisc sfq 20: parent 1:20 quantum 1514b perturb 10sec
- Sent 17690 bytes 200 pkts (dropped 0, overlimits 0)
复制代码
结果流量还是跑到默认的子类20上去了。 |
|