Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
HTB i tos http://forum.freesco.pl/viewtopic.php?f=22&t=16943 |
Strona 1 z 1 |
Autor: | yawa [ niedziela, 8 czerwca 2008, 11:22 ] |
Tytuł: | HTB i tos |
Siemka, Mógłby ktoś doradzic dlaczego nie dziala klasa # /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip tos 0x10 0xff flowid 2:20 ? W momencie jak ja odhashuje wywala mi : RTNETLINK answers: Invalid argument... Konfig: # eth1 DL /usr/sbin/rchtb_tc qdisc add dev eth1 root handle 1:0 htb default 3 # eth0 UL /usr/sbin/rchtb_tc qdisc add dev eth0 root handle 2:0 htb default 3 ## main /usr/sbin/rchtb_tc class add dev eth1 parent 1:0 classid 1:1 htb rate ${D}kbit /usr/sbin/rchtb_tc class add dev eth0 parent 2:0 classid 2:1 htb rate ${U}kbit # main inet /usr/sbin/rchtb_tc class add dev eth1 parent 1:1 classid 1:2 htb rate ${InetDlR}kbit ceil ${InetDlC}kbit /usr/sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:2 htb rate ${InetUlR}kbit ceil ${InetUlC}kbit # main LAN /usr/sbin/rchtb_tc class add dev eth1 parent 1:1 classid 1:3 htb rate ${LanDlR}kbit /usr/sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:3 htb rate ${InetOut}kbit ## server /usr/sbin/rchtb_tc filter add dev eth1 protocol ip parent 1:0 u32 match ip src ${Router} flowid 1:1 /usr/sbin/rchtb_tc filter add dev eth0 protocol ip preference 1 parent 2:0 handle 1 fw flowid 2:1 ## pasmo priorytetowe dla ICMP, TOS 0x10 (min. delay) oraz wybranego portu 22 i ACK /usr/sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:20 htb rate 400kbit ceil 3900kbit prio 1 quantum 1500 /usr/sbin/rchtb_tc qdisc add dev eth1 parent 1:20 sfq perturb 10 /usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 3 parent 1:0 u32 match ip sport 22 0xffff flowid 1:20 /usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 1 parent 1:0 u32 match ip sport 6112 0xffff flowid 1:20 /usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 2 parent 1:0 u32 match ip tos 0x10 0xff flowid 1:20 /usr/sbin/rchtb_tc filter add dev eth1 protocol ip prio 2 parent 1:0 u32 match ip protocol 1 0xff flowid 1:20 ## ACK /usr/sbin/rchtb_tc class add dev eth0 parent 2:2 classid 2:10 htb rate 200kbit ceil 200kbit prio 1 quantum 1500 /usr/sbin/rchtb_tc qdisc add dev eth0 parent 2:10 sfq perturb 10 /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 2 u32 match ip protocol 6 0xff match u8 0x05 0x0f at 0 match u16 0x0000 0xffc0 at 1 match u8 0x10 0xff at 33 flowid 2:10 # ACK /usr/sbin/rchtb_tc class add dev eth0 parent 2:2 classid 2:20 htb rate 16kbit ceil 282kbit prio 2 quantum 1500 /usr/sbin/rchtb_tc qdisc add dev eth0 parent 2:20 sfq perturb 10 # /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip tos 0x10 0xff flowid 2:20 /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 2 u32 match ip dport 22 0xffff flowid 2:20 # /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip dport 6112 0xffff flowid 2:20 # /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip protocol 1 0xff flowid 2:20 Dzienks i pozdro |
Autor: | -MW- [ niedziela, 8 czerwca 2008, 14:45 ] |
Tytuł: | |
Cytuj: /usr/sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 3 u32 match ip tos 0x10 0xff flowid 2:20
tak zobacz, z innym prio nie uzywanym przez inny filtr. |
Autor: | yawa [ niedziela, 8 czerwca 2008, 17:46 ] |
Tytuł: | |
Pomogło. Dzienks |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |