- 论坛徽章:
- 0
|
- # iptables -A FORWARD -m ttl --ttl-eq 30 -m tos --tos 16
- # iptables -A FORWARD -m tos --tos 16 -m ttl --ttl-eq 30
- # iptables -vnL FORWARD
- Chain FORWARD (policy ACCEPT 0 packets, 0 bytes)
- pkts bytes target prot opt in out source destination
- 0 0 all -- * * 0.0.0.0/0 0.0.0.0/0 TTL match TTL == 30 TOS match 0x10
- 0 0 all -- * * 0.0.0.0/0 0.0.0.0/0 TOS match 0x10 TTL match TTL == 30
- # iptables-save -ct filter
- # Generated by iptables-save v1.4.0 on Wed Jan 20 14:30:25 2010
- *filter
- :INPUT ACCEPT [184:16578]
- :FORWARD ACCEPT [0:0]
- :OUTPUT ACCEPT [161:18688]
- [0:0] -A FORWARD -m ttl --ttl-eq 30 -m tos --tos Minimize-Delay
- [0:0] -A FORWARD -m tos --tos Minimize-Delay -m ttl --ttl-eq 30
- COMMIT
- # Completed on Wed Jan 20 14:30:25 2010
- # iptables -V
- iptables v1.4.0
复制代码
我的没有问题
但 TTL 最大只能 255,我设置 300 时报错,因此改成了 30
可能你的版本太低了 |
|