abclinuxu.cz AbcLinuxu.cz itbiz.cz ITBiz.cz HDmag.cz HDmag.cz abcprace.cz AbcPráce.cz
Inzerujte na AbcPráce.cz od 950 Kč
Rozšířené hledání
×
    včera 23:22 | Zajímavý software

    BreadboardOS je firmware pro Raspberry Pi Pico (RP2040) umožňující s tímto MCU komunikovat pomocí řádkového rozhraní (CLI). Využívá FreeRTOS a Microshell.

    Ladislav Hagara | Komentářů: 0
    včera 16:55 | Nová verze

    Vývojáři KDE oznámili vydání balíku aplikací KDE Gear 24.05. Přehled novinek i s náhledy a videi v oficiálním oznámení. Do balíku se dostalo 5 nových aplikací: Audex, Accessibility Inspector, Francis, Kalm a Skladnik.

    Ladislav Hagara | Komentářů: 1
    včera 12:55 | Nová verze

    Byla vydána (𝕏) nová verze 18.0.0 open source webového aplikačního frameworku Angular (Wikipedie). Přehled novinek v příspěvku na blogu.

    Ladislav Hagara | Komentářů: 0
    22.5. 23:44 | Pozvánky

    V neděli 26. května lze navštívit Maker Faire Rychnov nad Kněžnou, festival plný workshopů, interaktivních činností a především nadšených a zvídavých lidí.

    Ladislav Hagara | Komentářů: 0
    22.5. 16:33 | Nová verze

    Byla vydána nová stabilní verze 3.20.0, tj. první z nové řady 3.20, minimalistické linuxové distribuce zaměřené na bezpečnost Alpine Linux (Wikipedie) postavené na standardní knihovně jazyka C musl libc a BusyBoxu. Z novinek lze vypíchnou počáteční podporu 64bitové architektury RISC-V.

    Ladislav Hagara | Komentářů: 0
    22.5. 14:11 | IT novinky

    Společnost Jolla na akci s názvem Jolla Love Day 2 - The Jolla comeback představila telefon se Sailfish OS 5.0 Jolla Community Phone (ve spolupráci se společností Reeder) a počítač Jolla Mind2 Community Edition AI Computer.

    Ladislav Hagara | Komentářů: 7
    22.5. 12:33 | Nová verze

    LibreOffice 24.8 bude vydán jako finální v srpnu 2024, přičemž LibreOffice 24.8 Alpha1 je první předběžnou verzí od začátku vývoje verze 24.8 v prosinci 2023. Od té doby bylo do úložiště kódu odesláno 4448 commitů a více než 667 chyb bylo v Bugzille nastaveno jako opravené. Nové funkce obsažené v této verzi LibreOffice najdete v poznámkách k vydání.

    ZCR | Komentářů: 0
    21.5. 23:33 | Nová verze

    Nová čísla časopisů od nakladatelství Raspberry Pi: MagPi 141 (pdf) a HackSpace 78 (pdf).

    Ladislav Hagara | Komentářů: 0
    21.5. 21:22 | Nová verze

    Byla vydána verze 2.0.0 programovacího jazyka Kotlin (Wikipedie, GitHub). Oficiálně bude představena ve čtvrtek na konferenci KotlinConf 2024 v Kodani. Livestream bude možné sledovat na YouTube.

    Ladislav Hagara | Komentářů: 2
    21.5. 12:55 | Nová verze

    Byla vydána nová major verze 27.0 programovacího jazyka Erlang (Wikipedie) a související platformy OTP (Open Telecom Platform, Wikipedie). Přehled novinek v příspěvku na blogu.

    Ladislav Hagara | Komentářů: 0
    Podle hypotézy Mrtvý Internet mj. tvoří většinu online interakcí boti.
     (82%)
     (4%)
     (7%)
     (7%)
    Celkem 520 hlasů
     Komentářů: 16, poslední 14.5. 11:05
    Rozcestník

    Dotaz: CBQ - HTB - utíkající upload

    19.8.2005 12:17 Zdeněk
    CBQ - HTB - utíkající upload
    Přečteno: 303×
    Dobrý den potřeboval bych poradit, protože zase tak zběhlý v linuxu nejsem. Mám následující problém:

    Router s SuSE 8.2 kernel 2.4.20, rozhraní do internetu je většinou wlan0 (WiFi) a jedna síťovka eth0 do APéčka Používám pro omezení CBQ (cbq.init) a někde i HTB (htb.init), v obou případech jsou omezovány jak Download tak i Upload.

    Ovšem z ničeho nic se mi stane, že mi u některých uživatelů začne utíkat Upload. Když se to stane, restartuji CBQ nebo HTB a zase se to na určitou dobu srovná. Mám vypozorováno, že se toto děje u uživatelů, kteří používají p2p (DC++, atd...)

    Jsem už z toho na palici. Dovedl by někdo poradit proč se tak děje? pokud se stane že se špatně značkujou pakety, tak proč a jak to opravím?

    Díky Zdeněk

    kdyžtak pište i na mail: slanina(zavináč)dpcomp(tečka)cz

    Odpovědi

    19.8.2005 12:33 oron | skóre: 27
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    pozorujem presne ten isty jav, presne po restarte htb sa to opravi ...
    19.8.2005 12:56 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    Jenom asi oba nevíme jak to opravit... pomoooooc. Není to žádný med když uživatel vytíží uploadem svou linku na 4mbps. kdyby to bylo jen to, ale zahluší to i APečko a to začne kravit na ostatní klienty.

    Zdeněk
    20.8.2005 09:28 ...... | skóre: 41 | blog: ...
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    Já používám Slackware ...jádro tuším 2.4.27, htb.init, NAT, download markuji pomoci u32 filtrů a upload pomocí iptables kvůli natu. Žádné takové jevy jsem zatím nepozoroval, takže chyba bude asi někde jinde. Shaping chodí spolehlivě od zapnutí do doby než vypadne elektrika :-) Asi by to chtělo UPSku ;-)
    19.8.2005 13:03 iji | skóre: 29
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    nepouzivate ipp2p a nemarkujete tento provoz pres iptables? suse obsahuje pomerne "inteligentni" firewall (ve smyslu prubezne adaptace, netyka se jeho moznosti nastaveni), ktery v mem pripade zpusoboval premazavani nekterych pravidel pro pakety markovane misto "tc" pres "iptables". htb pak z toho nebylo nadseno. k premazani dochazelo po pouziti napr. reloadu firewallovych pravidel, resinim byl reload i qos.
    19.8.2005 13:23 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    No pokud dobře tuším tak scripty htb.init využívají pro značkování příkaz "tc". Firewall mám defakto vypnutý, jen používám u uživatelů POSTROUTING. Htb je ale i tak konfigurováno, že každou hodinu ještě kontroluje TimeCheck. nevím čeho se chytit.

    Zdeněk
    19.8.2005 13:24 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    ipp2p nepoužívám, nějak se mi ho nepodařilo zkompilovat ... s tím by jste nemohl pomoci? třeba pro SuSE již zkompilované soubory ...?

    Zdeněk
    19.8.2005 15:19 iji | skóre: 29
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    suse 8.2 ma uz prilis stare iptables a jadro. zkuste oboji povysit a kompilace by mela projit. pokud ne, tak sem hodte chybovou hlasku. cely set patchu obsahoval -qnet, ktery ale nyni nejak nezije (prosim, opravte mne nekdo). zkuste pouzit http://relaks.info/linux/mq/stable/ (nemam osobni zkusenosti, ale vse potrebne pro qos by mel obsahovat)
    19.8.2005 23:12 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    Aha já nemám source code Kernelu nebo je uplně někde jinde... napsalo mi to na SuSE9.2 toto:
    r1Zdenek:~/ipp2p-0.7.4 # make
    gcc -O3 -Wall -I/lib/modules/2.6.8-24-default/build/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE -DMODVERSIONS
    ipt_ipp2p.c:2:31: linux/modversions.h: No such file or directory
    In file included from /usr/include/linux/list.h:7,
                     from /usr/include/linux/wait.h:14,
                     from /usr/include/asm/semaphore.h:41,
                     from /usr/include/linux/sched.h:18,
                     from /usr/include/linux/module.h:9,
                     from ipt_ipp2p.c:4:
    /usr/include/linux/prefetch.h: In function `prefetch_range':
    /usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
    /usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
    /usr/include/linux/prefetch.h:64: error: for each function it appears in.)
    In file included from /usr/include/linux/module.h:22,
                     from ipt_ipp2p.c:4:
    /usr/include/asm/module.h:56:2: #error unknown processor family
    In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/ip.h:84:22: net/sock.h: No such file or directory
    In file included from /usr/include/linux/igmp.h:129,
                     from /usr/include/linux/ip.h:85,
                     from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/skbuff.h:30:26: net/checksum.h: No such file or directory
    In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/ip.h:86:22: net/flow.h: No such file or directory
    In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/ip.h: At top level:
    /usr/include/linux/ip.h:143: error: field `fl' has incomplete type
    /usr/include/linux/ip.h:153: error: field `sk' has incomplete type
    In file included from ipt_ipp2p.c:6:
    /usr/include/linux/version.h:2:2: #error "======================================================="
    /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
    /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
    /usr/include/linux/version.h:5:2: #error ""
    /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
    /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
    /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
    /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
    /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
    /usr/include/linux/version.h:11:2: #error "programs should not directly include linux/*.h or"
    /usr/include/linux/version.h:12:2: #error "asm/*.h as well."
    /usr/include/linux/version.h:13:2: #error ""
    /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
    /usr/include/linux/version.h:15:2: #error ""
    /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
    /usr/include/linux/version.h:17:2: #error ""
    /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
    /usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
    /usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
    /usr/include/linux/version.h:21:2: #error ""
    /usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
    /usr/include/linux/version.h:23:2: #error "   - cd /usr/src/linux"
    /usr/include/linux/version.h:24:2: #error "   - make mrproper"
    /usr/include/linux/version.h:25:2: #error "   - make cloneconfig"
    /usr/include/linux/version.h:26:2: #error "   - make dep"
    /usr/include/linux/version.h:27:2: #error ""
    /usr/include/linux/version.h:28:2: #error " o When compiling, make sure to use the following"
    /usr/include/linux/version.h:29:2: #error "   compiler option to use the correct include files:"
    /usr/include/linux/version.h:30:2: #error ""
    /usr/include/linux/version.h:31:2: #error "   -I/lib/modules/`uname -r`/build/include"
    /usr/include/linux/version.h:32:2: #error ""
    /usr/include/linux/version.h:33:2: #error "   instead of"
    /usr/include/linux/version.h:34:2: #error ""
    /usr/include/linux/version.h:35:2: #error "   -I/usr/include/linux"
    /usr/include/linux/version.h:36:2: #error ""
    /usr/include/linux/version.h:37:2: #error "   Please adjust the Makefile accordingly."
    /usr/include/linux/version.h:38:2: #error "======================================================="
    ipt_ipp2p.c:9:21: net/tcp.h: No such file or directory
    ipt_ipp2p.c:10:21: net/udp.h: No such file or directory
    ipt_ipp2p.c:529:40: missing binary operator before token "("
    ipt_ipp2p.c: In function `match':
    ipt_ipp2p.c:563: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:564: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:565: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:566: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:629:40: missing binary operator before token "("
    ipt_ipp2p.c:637:41: missing binary operator before token "("
    ipt_ipp2p.c: At top level:
    ipt_ipp2p.c:535: warning: `match' defined but not used
    ipt_ipp2p.c:616: warning: `checkentry' defined but not used
    make: *** [ipt_ipp2p.o] Error 1
    
    nějaké nápady?

    Díky Zdeněk
    19.8.2005 23:13 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    Aha já nemám source code Kernelu nebo je uplně někde jinde... napsalo mi to na SuSE9.2 toto:
    r1Zdenek:~/ipp2p-0.7.4 # make
    gcc -O3 -Wall -I/lib/modules/2.6.8-24-default/build/include -c ipt_ipp2p.c -D__KERNEL__ -DMODULE -DMODVERSIONS
    ipt_ipp2p.c:2:31: linux/modversions.h: No such file or directory
    In file included from /usr/include/linux/list.h:7,
                     from /usr/include/linux/wait.h:14,
                     from /usr/include/asm/semaphore.h:41,
                     from /usr/include/linux/sched.h:18,
                     from /usr/include/linux/module.h:9,
                     from ipt_ipp2p.c:4:
    /usr/include/linux/prefetch.h: In function `prefetch_range':
    /usr/include/linux/prefetch.h:64: error: `CONFIG_X86_L1_CACHE_SHIFT' undeclared (first use in this function)
    /usr/include/linux/prefetch.h:64: error: (Each undeclared identifier is reported only once
    /usr/include/linux/prefetch.h:64: error: for each function it appears in.)
    In file included from /usr/include/linux/module.h:22,
                     from ipt_ipp2p.c:4:
    /usr/include/asm/module.h:56:2: #error unknown processor family
    In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/ip.h:84:22: net/sock.h: No such file or directory
    In file included from /usr/include/linux/igmp.h:129,
                     from /usr/include/linux/ip.h:85,
                     from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/skbuff.h:30:26: net/checksum.h: No such file or directory
    In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/ip.h:86:22: net/flow.h: No such file or directory
    In file included from /usr/include/linux/netfilter_ipv4/ip_tables.h:22,
                     from ipt_ipp2p.c:5:
    /usr/include/linux/ip.h: At top level:
    /usr/include/linux/ip.h:143: error: field `fl' has incomplete type
    /usr/include/linux/ip.h:153: error: field `sk' has incomplete type
    In file included from ipt_ipp2p.c:6:
    /usr/include/linux/version.h:2:2: #error "======================================================="
    /usr/include/linux/version.h:3:2: #error "You should not include /usr/include/{linux,asm}/ header"
    /usr/include/linux/version.h:4:2: #error "files directly for the compilation of kernel modules."
    /usr/include/linux/version.h:5:2: #error ""
    /usr/include/linux/version.h:6:2: #error "glibc now uses kernel header files from a well-defined"
    /usr/include/linux/version.h:7:2: #error "working kernel version (as recommended by Linus Torvalds)"
    /usr/include/linux/version.h:8:2: #error "These files are glibc internal and may not match the"
    /usr/include/linux/version.h:9:2: #error "currently running kernel. They should only be"
    /usr/include/linux/version.h:10:2: #error "included via other system header files - user space"
    /usr/include/linux/version.h:11:2: #error "programs should not directly include linux/*.h or"
    /usr/include/linux/version.h:12:2: #error "asm/*.h as well."
    /usr/include/linux/version.h:13:2: #error ""
    /usr/include/linux/version.h:14:2: #error "To build kernel modules please do the following:"
    /usr/include/linux/version.h:15:2: #error ""
    /usr/include/linux/version.h:16:2: #error " o Have the kernel sources installed"
    /usr/include/linux/version.h:17:2: #error ""
    /usr/include/linux/version.h:18:2: #error " o Make sure that the symbolic link"
    /usr/include/linux/version.h:19:2: #error "   /lib/modules/`uname -r`/build exists and points to"
    /usr/include/linux/version.h:20:2: #error "   the matching kernel source directory"
    /usr/include/linux/version.h:21:2: #error ""
    /usr/include/linux/version.h:22:2: #error " o Configure kernel sources:"
    /usr/include/linux/version.h:23:2: #error "   - cd /usr/src/linux"
    /usr/include/linux/version.h:24:2: #error "   - make mrproper"
    /usr/include/linux/version.h:25:2: #error "   - make cloneconfig"
    /usr/include/linux/version.h:26:2: #error "   - make dep"
    /usr/include/linux/version.h:27:2: #error ""
    /usr/include/linux/version.h:28:2: #error " o When compiling, make sure to use the following"
    /usr/include/linux/version.h:29:2: #error "   compiler option to use the correct include files:"
    /usr/include/linux/version.h:30:2: #error ""
    /usr/include/linux/version.h:31:2: #error "   -I/lib/modules/`uname -r`/build/include"
    /usr/include/linux/version.h:32:2: #error ""
    /usr/include/linux/version.h:33:2: #error "   instead of"
    /usr/include/linux/version.h:34:2: #error ""
    /usr/include/linux/version.h:35:2: #error "   -I/usr/include/linux"
    /usr/include/linux/version.h:36:2: #error ""
    /usr/include/linux/version.h:37:2: #error "   Please adjust the Makefile accordingly."
    /usr/include/linux/version.h:38:2: #error "======================================================="
    ipt_ipp2p.c:9:21: net/tcp.h: No such file or directory
    ipt_ipp2p.c:10:21: net/udp.h: No such file or directory
    ipt_ipp2p.c:529:40: missing binary operator before token "("
    ipt_ipp2p.c: In function `match':
    ipt_ipp2p.c:563: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:564: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:565: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:566: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:575: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:595: error: dereferencing pointer to incomplete type
    ipt_ipp2p.c:629:40: missing binary operator before token "("
    ipt_ipp2p.c:637:41: missing binary operator before token "("
    ipt_ipp2p.c: At top level:
    ipt_ipp2p.c:535: warning: `match' defined but not used
    ipt_ipp2p.c:616: warning: `checkentry' defined but not used
    make: *** [ipt_ipp2p.o] Error 1
    
    nějaké nápady?

    Díky Zdeněk
    20.8.2005 07:58 iji | skóre: 29
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    predpokladam, ze suse 9.2 je pouze preklep. tak pro jadro 2.4.x zhruba takto:
    a) stahnout zdrojaky jadra 2.4.31 ftp://ftp.cz.kernel.org/pub/linux/kernel/v2.4/linux-2.4.31.tar.bz2 a rozbalit do /usr/src/linux-2.4.31
    b) upravit symlink /usr/src/linux -> /usr/src/linux-2.4.31
    c) stahnout http://netfilter.org/files/iptables-1.3.1.tar.bz2
    d) stahnout http://developer.osdl.org/dev/iproute2/download/iproute2-2.6.11-050330.tar.gz
    e) stahnout patche z http://relaks.info/linux/mq/stable/
    f) opatchovat jadro, iptables a iproute2
    g) zapnuti podpory pro qos v jadre (napr. pres make oldconfig)
    h) kompilace jadra + boot noveho jadra
    i) kompilace iptables, iproute
    v pripade problemu sem pastnete chybove vystupy
    22.8.2005 19:31 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    Zkusím dle návodu, ale mám pocit ře psali i podporu kernelu 2.6.x nebo ne?
    22.8.2005 19:45 Zdeněk
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    nicméně ještě pořád nevím proč mi ten out utíká .... Zdeněk
    24.8.2005 18:12 Kroko | skóre: 22
    Rozbalit Rozbalit vše Re: CBQ - HTB - utíkající upload
    nebylo by lepsi misto toho rovnou provest upgrade na jadro rady 2.6.x ?
    http://kroko.evesnight.net

    Založit nové vláknoNahoru

    Tiskni Sdílej: Linkuj Jaggni to Vybrali.sme.sk Google Del.icio.us Facebook

    ISSN 1214-1267   www.czech-server.cz
    © 1999-2015 Nitemedia s. r. o. Všechna práva vyhrazena.