Freesco, NND, CDN, EOS

http://www.freesco.pl
Dzisiaj jest czwartek, 19 czerwca 2025, 23:58

Strefa czasowa UTC+2godz.




Nowy temat Odpowiedz w temacie  [ Posty: 3 ] 
Autor Wiadomość
 Tytuł: HTB i tos
Post: niedziela, 8 czerwca 2008, 11:22 
Offline

Rejestracja: sobota, 4 czerwca 2005, 09:37
Posty: 61
Lokalizacja: Olsztyn
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

_________________
Obrazek


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 8 czerwca 2008, 14:45 
Offline
Użytkownik

Rejestracja: sobota, 14 maja 2005, 15:07
Posty: 3177
Lokalizacja: Busko-Zdrój
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.

_________________
Pomógł? wypij jego zdrowie.
http://nnd-linux.pl/faq.php
http://wiki.nnd.freesco.pl/index.php/FAQ


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 8 czerwca 2008, 17:46 
Offline

Rejestracja: sobota, 4 czerwca 2005, 09:37
Posty: 61
Lokalizacja: Olsztyn
Pomogło. Dzienks

_________________
Obrazek


Na górę
 Wyświetl profil  
 
Wyświetl posty nie starsze niż:  Sortuj wg  
Nowy temat Odpowiedz w temacie  [ Posty: 3 ] 

Strefa czasowa UTC+2godz.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 41 gości


Nie możesz tworzyć nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz dodawać załączników

Szukaj:
Przejdź do:  
Technologię dostarcza phpBB® Forum Software © phpBB Group
Hosting: Compus-Net
RobertKonik.pl