Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
htb i przekierowanie portów (czy to dzieli poprawnie??) http://forum.freesco.pl/viewtopic.php?f=22&t=5738 |
Strona 1 z 1 |
Autor: | prezesk [ poniedziałek, 1 listopada 2004, 13:43 ] |
Tytuł: | htb i przekierowanie portów (czy to dzieli poprawnie??) |
Witam, Od jakiegoś czasu studiuje te htb i juz jestem strasznie zagubiony. Mam HTB.configure ze strony zciecha. Ladnie pięknie sie konfiguruje latwe w obsludze. mam 19 kompow przypisane do dzielenia pasma. na DSL 2000. Paru uzytkowników ma przekierowane porty np do DC++ aby muc być aktywnymi usrami. (jak narazie nie przeczytałem nigdzie czy przekierowanie powoduje brak pracy HTB) ale wlasnie mnie to zastanawia. Chciałbym aby kazdy mógł robić co chce ze swoim łączem a jak go niema aby to co pozostaje ponim bylo dzielona na innych. i zeby kazdy mial jakąś tam gwarantowana przesyłowość ok 128 Kib/s bo jak ktos zacznie coś namiętnie wysylac to pingi diametralnie spadaja i jest np nieda sie grać albo strony dlugo szuka. Jak rozwiązać ten problem (bo powoli zaczynam sie zastanwiać nad jakims sprzętowym urządzeniem do rozdzielania net ![]() Z góry wielkie dzięki Pozdrowionka 4all |
Autor: | zciech [ poniedziałek, 1 listopada 2004, 14:14 ] |
Tytuł: | |
Przekierowanie nie ma zadnego znaczenia. Zainstaluj stystyke htb i zobacz co kto wysyla/odbiera. W dsl 2000/256 to na same pakiety ACK jest 100kbit/s zostaje jakies 100 na userow. z doswiadczenia wiem, ze jesli na dsl z uploadem 256 upload wiekszy jest od 200 - 210 powoduje juz zatykanie downloadu. Dziekujemy Ci TPsa ![]() |
Autor: | prezesk [ poniedziałek, 1 listopada 2004, 14:24 ] |
Tytuł: | |
to prosze w takim razie o pomoc co mam zle w tym pliku rc.htb: bo ja juz niewiem.... #!/bin/bash # rc.htb 0.3.3-stable-0.2-Zciech-19.08.2004, (C)PriSM 2oo3, GNU GPL # <http://www.rc.htb.prv.pl/> # wygenerowano: 10/18/04 01:25:31 # 0.2 Poprawki Zciech VER=0.3.3-stable-0.2-Zciech-19.08.2004 stop() { /sbin/rchtb_tc qdisc del root dev eth0 2> /dev/null /sbin/rchtb_tc qdisc del root dev eth1 2> /dev/null } start() { stop # dla bezpieczeństwa # INTERFEJS ETH1 (ruch przychodz±cy) /sbin/rchtb_tc qdisc add dev eth1 root handle 1:0 htb default 3 r2q 1 # Główna klasa dla eth1 /sbin/rchtb_tc class add dev eth1 parent 1:0 classid 1:1 htb rate 90000kbit ceil 90000kbit # Podział na pasmo dla ł±cza internetowego i resztę /sbin/rchtb_tc class add dev eth1 parent 1:1 classid 1:2 htb rate 2027kbit ceil 2027kbit /sbin/rchtb_tc class add dev eth1 parent 1:1 classid 1:3 htb rate 87973kbit ceil 87973kbit prio 9 /sbin/rchtb_tc qdisc add dev eth1 parent 1:3 esfq perturb 10 hash dst # pasmo priorytetowe dla ICMP, TOS 0x10 (min. delay) oraz wybranego portu 22 /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:20 htb rate 119kbit ceil 119kbit prio 1 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:20 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 3 parent 1:0 u32 match ip sport 22 0xffff flowid 1:20 /sbin/rchtb_tc filter add dev eth1 protocol ip prio 2 parent 1:0 u32 match ip tos 0x10 0xff flowid 1:20 /sbin/rchtb_tc filter add dev eth1 protocol ip prio 2 parent 1:0 u32 match ip protocol 1 0xff flowid 1:20 # Adame /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:21 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:21 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.6 flowid 1:21 # Adamek /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:22 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:22 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.14 flowid 1:22 # Budnik /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:23 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:23 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.10 flowid 1:23 # Dykier /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:24 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:24 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.8 flowid 1:24 # Kama /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:25 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:25 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.3 flowid 1:25 # Kiju /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:26 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:26 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.2 flowid 1:26 # Luczak /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:27 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:27 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.9 flowid 1:27 # Ortopeda /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:28 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:28 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.17 flowid 1:28 # Ortopeda.wolny17 /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.18 flowid 1:28 # Ortopeda.wolny18 /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.19 flowid 1:28 # Ortopeda.wolny19 /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.20 flowid 1:28 # Ortopeda.wolny20 # Robert /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:29 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:29 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.4 flowid 1:29 # Ryszard /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:30 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:30 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.5 flowid 1:30 # Tomek /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:31 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:31 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.7 flowid 1:31 # Witkowski /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:32 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:32 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.12 flowid 1:32 # Zajac /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:33 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:33 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.11 flowid 1:33 # komp16 /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:34 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:34 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.16 flowid 1:34 # lukasik /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:35 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:35 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.15 flowid 1:35 # osiedlowa /sbin/rchtb_tc class add dev eth1 parent 1:2 classid 1:36 htb rate 119kbit ceil 2027kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth1 parent 1:36 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth1 protocol ip prio 5 parent 1:0 u32 match ip dst 192.168.1.13 flowid 1:36 # transfer serwer->LAN /sbin/rchtb_tc filter add dev eth1 protocol ip prio 1 parent 1:0 handle 1 fw flowid 1:3 # INTERFEJS ETH0 (ruch wychodz±cy) /sbin/rchtb_tc qdisc add dev eth0 root handle 2:0 htb default 11 r2q 1 # główna klasa /sbin/rchtb_tc class add dev eth0 parent 2:0 classid 2:1 htb rate 230kbit ceil 230kbit # klasa priorytetowa ACK /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:10 htb rate 101kbit ceil 101kbit prio 1 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:10 esfq perturb 10 hash dst /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 # klasa priorytetowa TOS 0x10 oraz ICMP /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:9 htb rate 3kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:9 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip tos 0x10 0xff flowid 2:9 # TOS 0x10 /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 2 u32 match ip dport 22 0xffff flowid 2:9 # port 22 /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 1 u32 match ip protocol 1 0xff flowid 2:9 # ICMP # ruch serwerowy (pasmo dla go¶ci z zewn±trz) /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:11 htb rate 6kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:11 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 3 handle 1 fw flowid 2:11 # Adame /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:12 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:12 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 2 fw flowid 2:12 # Adamek /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:13 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:13 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 3 fw flowid 2:13 # Budnik /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:14 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:14 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 4 fw flowid 2:14 # Dykier /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:15 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:15 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 5 fw flowid 2:15 # Kama /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:16 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:16 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 6 fw flowid 2:16 # Kiju /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:17 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:17 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 7 fw flowid 2:17 # Luczak /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:18 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:18 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 8 fw flowid 2:18 # Ortopeda /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:19 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:19 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 9 fw flowid 2:19 # Robert /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:20 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:20 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 10 fw flowid 2:20 # Ryszard /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:21 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:21 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 11 fw flowid 2:21 # Tomek /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:22 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:22 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 12 fw flowid 2:22 # Witkowski /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:23 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:23 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 13 fw flowid 2:23 # Zajac /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:24 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:24 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 14 fw flowid 2:24 # komp16 /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:25 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:25 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 15 fw flowid 2:25 # lukasik /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:26 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:26 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 16 fw flowid 2:26 # osiedlowa /sbin/rchtb_tc class add dev eth0 parent 2:1 classid 2:27 htb rate 7kbit ceil 126kbit prio 2 quantum 1500 /sbin/rchtb_tc qdisc add dev eth0 parent 2:27 esfq perturb 10 hash dst /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 5 handle 17 fw flowid 2:27 /sbin/rchtb_tc filter add dev eth0 parent 2:0 protocol ip prio 9 u32 match ip dst 0/0 flowid 2:11 } echo "rc.htb 0.3.3-stable-0.2-Zciech-19.08.2004, (C)PriSM 2oo3. Na licencji GNU GPL." echo "Strona projektu: http://www.rc.htb.prv.pl/" case "$1" in 'start') echo -n "Uruchamianie kolejkowania..." start echo " wykonano." ;; 'stop') echo -n "Zatrzymywanie kolejkowania..." stop echo " wykonano." ;; 'restart') echo -n "Restartowanie kolejkowania: stop" stop echo -n " start" start echo " wykonano." ;; 'status') echo "Klasy na interfejsie eth1" echo "================================" tc class show dev eth1 | grep root tc class show dev eth1 | grep -v root | sort | nl echo "Klasy na interfejsie eth0" echo "===================================" tc class show dev eth0 | grep root tc class show dev eth0 | grep -v root | sort | nl ;; *) echo -e "\nUżycie: rc.htb start|stop|restart|status" ;; esac |
Autor: | Koriolan [ środa, 3 listopada 2004, 11:31 ] |
Tytuł: | |
Przytkaj upload. Czyli przy konfiguracji HTB podaj 'inne łącze' i wprowadż mniejszą wartość uploadu (wysyłania do sieci, zamiast 128kb/s np. 90kb/s) lub jeszce mniej. Ja daje 50% uploadu jaki mam. |
Autor: | Damiano [ piątek, 28 października 2005, 15:17 ] |
Tytuł: | |
A jak wygląda sprawa z przytykaniem na neo+ 640 ![]() Możecie mi poradzić jakie wartości ustawić ![]() |
Autor: | adamol [ piątek, 28 października 2005, 15:27 ] |
Tytuł: | |
zciech pisze: Przekierowanie nie ma zadnego znaczenia.
Zainstaluj stystyke htb i zobacz co kto wysyla/odbiera. W dsl 2000/256 to na same pakiety ACK jest 100kbit/s zostaje jakies 100 na userow. z doswiadczenia wiem, ze jesli na dsl z uploadem 256 upload wiekszy jest od 200 - 210 powoduje juz zatykanie downloadu. Dziekujemy Ci TPsa ![]() ...ale na HTB, Niceshaperze czy wogóle ![]() Ja mam w nocy na sieci upload do bólu + przekierowania a wszystko bardzo ładnie śmiga, mam Niceshapera i przycina dopiero pod sam koniec -1kB. Krótko mówiąc nie zauważyłem problemów. Może mam farta ![]() Prezesk sprzętowego nie nie, już nie.... ![]() Pozdro Adam |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |