Freesco, NND, CDN, EOS
http://forum.freesco.pl/

Niceshaper 0.6rc5 z 07.06.2008
http://forum.freesco.pl/viewtopic.php?f=24&t=16946
Strona 1 z 3

Autor:  Alfred [ poniedziałek, 9 czerwca 2008, 16:37 ]
Tytuł:  Niceshaper 0.6rc5 z 07.06.2008

Dla zainteresowanych:
Najnowszy NiceShaper 0.6rc5 z 07.06.2008r
- paczka do NND http://www.ao.sytes.net/niceshaper
Nietestowana !
Sprawdzona tylko, że działa.

Autor:  marask [ niedziela, 15 czerwca 2008, 18:29 ]
Tytuł: 

potwierdzam - uruchamia się, działa. Na razie bez zarzutu.

Autor:  barte-k [ wtorek, 17 czerwca 2008, 22:01 ]
Tytuł: 

Testuję od kilku godzin - działa OK.

Autor:  rapsik [ sobota, 28 czerwca 2008, 22:36 ]
Tytuł: 

Testuje od 3 dni na 200 userach i jest ok

Jedynie przy starcie wyświetla lancuchy iptables ale nie przygladałem się dokładnie.

Autor:  wanter [ czwartek, 3 lipca 2008, 12:43 ]
Tytuł: 

Witam, mam pytanie laika:

Chciałem restrykcyjnie (tylko żeby zobaczyć czy to w ogóle działa) przyciąć dla siebie upload do 2kB/s.

Oto co uzyskałem:

: [/] [] ()
download                  rate - ( prev-utilize )
sum(classes:2)                   (       33kb/s )
csdl                  2048kb/s - (        0kb/s )
scdl                  2048kb/s - (        0kb/s )
wanterdl              2048kb/s - (        0kb/s )
tibiadl               2048kb/s - (        0kb/s )
sapekdl               2048kb/s - (        0kb/s )
sapek                 2048kb/s - (        0kb/s )
wanter                2048kb/s - (       32kb/s )

upload                    rate - ( prev-utilize )
sum(classes:2)                   (        8kb/s )
csul                   128kb/s - (        0kb/s )
scul                   128kb/s - (        0kb/s )
wanterul               128kb/s - (        0kb/s )
tibiaul                128kb/s - (        0kb/s )
sapekul                128kb/s - (        0kb/s )
sapek                   96kb/s - (        0kb/s )
!!!!!wanter                   8kb/s - (      265kb/s )!!!!!

                                Powered by NiceShaper
                       http://niceshaper.jedwabny.net


Niceshaper0.6 rc5.

Plik konfiguracyjny:

: [/] [] ()
<global>
    run download upload
    support mark-on ppp0
    stats unit kB/s file /home/httpd/html/log/niceshaper_stats.txt owner wanter group users mode 755 classes all sum top
    log syslog true
    log terminal true
    log file /home/httpd/html/log/niceshaper_log.txt
    lang pl
</global>

<download>
    iface eth2 match dstip 192.168.1.0/24
    iface eth1 match dstip 192.168.2.0/24
    section speed 768kB/s
    section shape 512kB/s
    default low 64kB/s
    default ceil 256kB/s
    iptables hook POSTROUTING # POSTROUTING is optimal for download mode
    reload 2s
</download>

<upload>
    iface eth2 match srcip 192.168.1.0/24
    iface eth1 match srcip 192.168.2.0/24
    section speed 64kB/s
    section shape 48kB/s
    default low 8kB/s
    default ceil 16kB/s
    iptables hook PREROUTING # PREROUTING is optimal for upload mode
    reload 2s
</upload>


Plik klas:

: [/] [] ()
class download eth2 csdl
 match dport 27015 proto tcp
 match dport 27015 proto udp
 htb prio 0

class upload eth2 csul
 match sport 27015 proto tcp
 match sport 27015 proto udp
 htb prio 0

class download eth2 scdl
 match dport 6112 proto tcp
 match dport 6112 proto udp
 htb prio 0

class upload eth2 scul
 match sport 6112 proto tcp
 match sport 6112 proto udp
 htb prio 0

class download eth2 wanterdl
 match dport 6113 proto tcp
 match dport 6113 proto udp
 htb prio 7

class upload eth2 wanterul
 match sport 6113 proto tcp
 match sport 6113 proto udp
 htb prio 6

class download eth1 tibiadl
 match dport 7171 proto tcp
 match dport 7171 proto udp
 htb prio 1

class upload eth1 tibiaul
 match sport 7171 proto tcp
 match sport 7171 proto udp
 htb prio 1

class download eth1 sapekdl
 match dport 6111 proto tcp
 match dport 6111 proto udp
 match dport 6110 proto tcp
 match dport 6110 proto udp
 htb prio 7

class upload eth1 sapekul
 match sport 6111 proto tcp
 match sport 6111 proto udp
 match sport 6110 proto tcp
 match sport 6110 proto udp
 htb prio 7

class download eth1 sapek
 match dstip 192.168.2.2
 htb prio 6

class upload eth1 sapek
 match srcip 192.168.2.2
 low 8kB/s
 ceil 16kB/s
 rate 12kB/s
 htb prio 5

class download eth2 wanter
 match dstip 192.168.1.6
 htb prio 6

class upload eth2 wanter
 match srcip 192.168.1.6
 ceil 2kB/s
 rate 1kB/s
 strict 1
 htb prio 4


Pytanie brzmi: upload który jest widoczny w linijce z wykrzyknikami przewyższa wielokrotnie dozwolony upload - dlaczego? Kolejna niewiadoma to - dlaczego niceshaper nie wskazał ruchu na klasie wanterul skoro jest ona przeznaczona dla portu 6113 a na tym właśnie porcie odbywał się cały upload? Czy niceshaper obcina ruch na portach sforwardowanych? Czy pliki konfiguracyjne są ok?

Autor:  barte-k [ piątek, 4 lipca 2008, 09:13 ]
Tytuł: 

Eee, upload i download na tym samym interfejsie (eth2) ? Coś mnie tu nie gra... :)

Autor:  wanter [ piątek, 4 lipca 2008, 09:16 ]
Tytuł: 

Heh trafnie zauważone, dzięki. Już wszystko śmiga :) Zawsze mam błędy w jakichś detalach. Klasy w ns0.6 wymiatają.

Można w jednej klasie umieszczać kilka portów i ip? Tak jak to jest w moim pliku konfiguracyjnym?

Autor:  Shirn [ sobota, 12 lipca 2008, 15:59 ]
Tytuł: 

Witam,
Ja po wgraniu do nnd niceshapera z tego posta mam cos takiego (nnd dopiero co wgrane najnowsza wersja zrobiłem net_conf na 62 kompy później zmieniłem maski na 255.255.255.192 w eth1 oraz dhcp, dodatkowo zainstalowałem jeszcze dnsmasq, internet działa ale poraz pierwszy widze cos takiego nie tnie uploadu):

configi:
: [/] [] ()
<global>
    run download upload
    mark-on-ifaces eth0
    stats unit kb/s
    stats file none owner root group root mode 644
    log syslog true terminal true file none
</global>

<download>
    iface eth1 match dstip 192.168.1.0/26
    section speed 255kB/s
    section shape 240kB/s
    default low 10kB/s
    default ceil 156kB/s
    debug iptables iproute
    iptables hook POSTROUTING # POSTROUTING is safe for download mode
    reload 5s
</download>

<upload>
    iface eth0 match srcip 192.168.1.0/26
    section speed 30kB/s
    section shape 25kB/s
    default low 2kB/s
    default ceil 16kB/s
    iptables hook PREOCROUTING # PREROUTING is safe for upload mode
    reload 2s
</upload>


: [/] [] ()
class download eth1 Komp_1
 match dstip 192.168.1.2
class upload eth0 Komp_1
 match srcip 192.168.1.2

class download eth1 Komp_2
 match dstip 192.168.1.3
class upload eth0 Komp_2
 match srcip 192.168.1.3

class download eth1 Komp_3
 match dstip 192.168.1.4
class upload eth0 Komp_3
 match srcip 192.168.1.4

class download eth1 Komp_4
 match dstip 192.168.1.5
class upload eth0 Komp_4
 match srcip 192.168.1.5

class download eth1 Komp_5
 match dstip 192.168.1.6
class upload eth0 Komp_5
 match srcip 192.168.1.6

class download eth1 Komp_6
 match dstip 192.168.1.7
class upload eth0 Komp_6
 match srcip 192.168.1.7

i tak dalej do ip *.*.*.62


a to co mi wyskakuje:

: [/] [] ()
[root@kacper suchenek]# niceshaper0.6 start

        Niceshaper version:0.6rc5
        http://niceshaper.jedwabny.net

        <download>: Starting section ...        download: iptables -t mangle -N ns_download
        download: iptables -t mangle -A ns_download  -d 192.168.1.2/255.255.255.255  -j ACCEPT
.       download: iptables -t mangle -A ns_download  -d 192.168.1.3/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.4/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.5/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.6/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.7/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.8/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.9/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.10/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.15/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.16/255.255.255.255  -j ACCEPT
.       download: iptables -t mangle -A ns_download  -d 192.168.1.17/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.18/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.19/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.20/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.21/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.22/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.23/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.24/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.25/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.26/255.255.255.255  -j ACCEPT
.       download: iptables -t mangle -A ns_download  -d 192.168.1.27/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.28/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.29/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.30/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.31/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.32/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.33/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.34/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.35/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.36/255.255.255.255  -j ACCEPT
.       download: iptables -t mangle -A ns_download  -d 192.168.1.37/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.38/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.39/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.40/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.41/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.42/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.43/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.44/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.45/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.46/255.255.255.255  -j ACCEPT
.       download: iptables -t mangle -A ns_download  -d 192.168.1.47/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.48/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.49/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.50/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.51/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.52/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.53/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.54/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.55/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.56/255.255.255.255  -j ACCEPT
.       download: iptables -t mangle -A ns_download  -d 192.168.1.57/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.58/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.59/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.60/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.61/255.255.255.255  -j ACCEPT
        download: iptables -t mangle -A ns_download  -d 192.168.1.62/255.255.255.255  -j ACCEPT

        download: iptables -t mangle  -A  POSTROUTING  -d 192.168.1.0/255.255.255.192  -j ns_download
        download: tc class add dev eth1 parent 1:1 classid 1:11 htb  rate 2088960 ceil 2088960  quantum 174
        <upload>: Starting section .........
iptables: No chain/target/match by that name
        [start]
[root@kacper suchenek]# niceshaper0.6 stats
download                  rate - ( prev-utilize )
Komp_33               1248kb/s - (        0kb/s )
Komp_58               1248kb/s - (     1195kb/s )
Komp_61               1248kb/s - (        0kb/s )
sum(classes:3)                   (     1196kb/s )

upload                    rate - ( prev-utilize )
sum(classes:0)                   (        0kb/s )

Autor:  kryspi [ niedziela, 13 lipca 2008, 15:10 ]
Tytuł: 

Nie moge cos tego uruchomic, patrze na rozne configi ale i tak nie moge dopatrzec sie bledu, niceshaper nie tnie mi pasma
ifconfig

: [/] [] ()
eth0      Link encap:Ethernet  HWaddr 00:50:8B:33:D5:78
          inet addr:192.168.1.1  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:351895 errors:1 dropped:0 overruns:0 frame:1
          TX packets:320807 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:67281566 (64.1 Mb)  TX bytes:202806332 (193.4 Mb)
          Interrupt:11 Base address:0x2000 Memory:40200000-40200038

eth1      Link encap:Ethernet  HWaddr 00:60:4C:72:87:FC
          UP BROADCAST RUNNING MULTICAST  MTU:65535  Metric:1
          RX packets:315905 errors:0 dropped:0 overruns:0 frame:0
          TX packets:321816 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:199032861 (189.8 Mb)  TX bytes:64087998 (61.1 Mb)

lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1
          RX packets:108 errors:0 dropped:0 overruns:0 frame:0
          TX packets:108 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:30825 (30.1 Kb)  TX bytes:30825 (30.1 Kb)

ppp0      Link encap:Point-to-Point Protocol
          inet addr:87.205.38.126  P-t-P:195.114.190.150  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1492  Metric:1
          RX packets:315893 errors:0 dropped:0 overruns:0 frame:0
          TX packets:321808 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3
          RX bytes:198400896 (189.2 Mb)  TX bytes:57652098 (54.9 Mb)


: [/] [] ()
<global>
    run download upload
    mark-on-ifaces ppp0
    stats unit kB/s
    stats file none owner root group root mode 644
    log syslog true terminal true file none
    lang pl
</global>

<download>
    iface eth1 match dstip 192.168.0.0/24
    iface eth1 match dstip 192.168.1.0/24
    section speed 50kB/s
    section shape 20kB/s
    default low 10kB/s
    default ceil 5kB/s
    default rate 5kB/s
    debug iptables iproute
    iptables hook POSTROUTING # POSTROUTING is safe for download mode
    reload 3s
</download>

<upload>
    iface eth0 match srcip 192.168.0.0/24
    iface eth0 match srcip 192.168.1.0/24
    section speed 32kB/s
    section shape 22kB/s
    default low 2kB/s
    default ceil 5kB/s
    default rate 5kB/s
    iptables hook PREROUTING # PREROUTING is safe for upload mode
    reload 1s
</upload>


: [/] [] ()
class download eth1 Magda
 match dstip 192.168.1.25
class upload eth0 Magda
 match srcip 192.168.1.25
class download eth1 Krzysiek
 match dstip 192.168.1.20
class upload eth0 Krzysiek
 match srcip 192.168.1.20
class download eth1 Krystian
 match dstip 192.168.1.6
 ceil 5kB/s
class upload eth0 Krystian
 match srcip 192.168.1.6


Prosze o pomoc moze ktos sie dopatrzy o co chodzi :(

Autor:  realisty [ niedziela, 13 lipca 2008, 16:50 ]
Tytuł: 

: [/] [] ()
<global>
    run download upload
    mark-on-ifaces ppp0
    stats unit kB/s
    stats file none owner root group root mode 644
    log syslog true terminal true file none
</global>

<download>
    iface eth0 match dstip 192.168.1.0/24  #interfejs od strony lan
    section speed 50kB/s    #wartość downloadu łącza
    section shape 20kB/s    #wartość realnego downloadu łącza
    default low 5kB/s         #minimalny download klienta
    default ceil 15kB/s           #maxymalny download klienta
    debug iptables iproute
    iptables hook POSTROUTING # POSTROUTING is safe for download mode
    reload 3s
</download>

<upload>
    iface ppp0 match srcip 192.168.1.0/24 #interfejs do netu
    section speed 32kB/s
    section shape 22kB/s
    default low 2kB/s
    default ceil 5kB/s
    iptables hook PREROUTING # PREROUTING is safe for upload mode
    reload 1s
</upload>




a plik class.ns bedzie wygladal tak:
: [/] [] ()
class download eth0 Magda
 match dstip 192.168.1.25
class upload ppp0 Magda
 match srcip 192.168.1.25
class download eth0 Krzysiek
 match dstip 192.168.1.20
class upload ppp0 Krzysiek
 match srcip 192.168.1.20


na tym powinno się bujać ale jak to jest neo 512 to masz wogóle złe wartości downloadu które poprawiłem na max download 15kB/s


odpalaj

Autor:  kryspi [ niedziela, 13 lipca 2008, 17:08 ]
Tytuł: 

Na twoim konfigu dziala dzieki,

a czemu jako interfejs do uploadu jest ppp0 a nie eth1 tak jak ja wczesniej kobminowalem?

czemu max_download przy neo512 ustawiles na 15 skoro lacze to wyciaga 60kB? Zeby zagwarantowac kazdemu stala predkosc?

Autor:  realisty [ niedziela, 13 lipca 2008, 17:33 ]
Tytuł: 

ppp0 jest łączem do uploadu a eth0 do downloadu. Dałem 15kB/s tak dla przykładu prosta sprawa to zmienić

Autor:  Nova [ piątek, 25 lipca 2008, 14:03 ]
Tytuł: 

a ja nie moge poradzic sobie z instalacja :oops:
: [/] [] ()
# tar -jxvf niceshaper0.6rc5.tar.bz2
Makefile
ChangeLog
COPYING
INSTALL
INSTALL_PL
docs/documentation_pl.html
docs/documentation_en.html
docs/ns.css
etc/niceshaper0.6/class.ns
etc/niceshaper0.6/config.ns
mc/niceshaper.syntax
mc/INSTALL
mc/INSTALL_PL
src/Makefile
src/aux.cc
src/class.cc
src/conv.cc
src/error.cc
src/filter.cc
src/instance.cc
src/main.cc
src/net.cc
src/niceshaper.cc
src/sys.cc
src/tests.cc
src/aux.h
src/class.h
src/conv.h
src/error.h
src/filter.h
src/instance.h
src/main.h
src/net.h
src/niceshaper.h
src/sys.h
src/tests.h


paczka rozpakowana, przechodze do instalacji

: [/] [] ()
# make
make -C src
make[1]: Entering directory `/home/pakiety/niceshaper/src'
g++  -c aux.cc
In file included from aux.h:4,
                 from aux.cc:11:
main.h:6:33: unistd.h: Nie ma takiego pliku ani katalogu
main.h:7:33: stdlib.h: Nie ma takiego pliku ani katalogu
main.h:8:33: signal.h: Nie ma takiego pliku ani katalogu
main.h:9:22: sys/wait.h: Nie ma takiego pliku ani katalogu
main.h:10:33: fcntl.h: Nie ma takiego pliku ani katalogu
main.h:11:33: netdb.h: Nie ma takiego pliku ani katalogu
main.h:12:33: arpa/inet.h: Nie ma takiego pliku ani katalogu
main.h:13:33: sys/time.h: Nie ma takiego pliku ani katalogu
main.h:14:33: sys/types.h: Nie ma takiego pliku ani katalogu
main.h:15:20: iostream: Nie ma takiego pliku ani katalogu
main.h:16:18: vector: Nie ma takiego pliku ani katalogu
main.h:17:18: string: Nie ma takiego pliku ani katalogu
In file included from aux.h:5,
                 from aux.cc:11:
error.h:4:21: syslog.h: Nie ma takiego pliku ani katalogu
In file included from aux.h:5,
                 from aux.cc:11:
error.h: In constructor `Debug::Debug()':
error.h:10: error: `strncpy' undeclared (first use this function)
error.h:10: error: (Each undeclared identifier is reported only once for each
   function it appears in.)
error.h: In member function `void Debug::setLogFile(char*)':
error.h:22: error: `strncpy' undeclared (first use this function)
In file included from aux.cc:11:
aux.h: At global scope:
aux.h:24: error: `vector' was not declared in this scope
aux.h:24: error: parse error before `*' token
aux.h:25: error: `vector' was not declared in this scope
aux.h:25: error: parse error before `*' token
aux.cc: In function `long int unitconvert(char*, unittype)':
aux.cc:30: error: `atol' undeclared (first use this function)
aux.cc: In function `int trim(char*)':
aux.cc:42: error: `strlen' undeclared (first use this function)
aux.cc:71: error: `printf' undeclared (first use this function)
aux.cc: In function `int dotobit(char*)':
aux.cc:84: error: `inet_addr' undeclared (first use this function)
aux.cc:84: error: `ntohl' undeclared (first use this function)
aux.cc: In function `bool bitodot(char*, int)':
aux.cc:92: error: aggregate `in_addr netwrk' has incomplete type and cannot be
   defined
aux.cc:97: error: `htonl' undeclared (first use this function)
aux.cc:98: error: `inet_ntoa' undeclared (first use this function)
aux.cc:98: error: `strcpy' undeclared (first use this function)
aux.cc:99: error: `strlen' undeclared (first use this function)
aux.cc: In function `char* awk(char*, unsigned int)':
aux.cc:111: error: `strcpy' undeclared (first use this function)
aux.cc:113: error: `strlen' undeclared (first use this function)
aux.cc: In function `char* awk2(char*, unsigned int)':
aux.cc:144: error: `strcpy' undeclared (first use this function)
aux.cc:146: error: `strlen' undeclared (first use this function)
aux.cc: In function `unittype getunit(char*)':
aux.cc:171: error: `strstr' undeclared (first use this function)
aux.cc: In function `int gen_ipt_filter(bool&, char*, char*)':
aux.cc:225: error: `strlen' undeclared (first use this function)
aux.cc:226: error: `strcpy' undeclared (first use this function)
aux.cc:228: error: `strcmp' undeclared (first use this function)
aux.cc:229: error: `strcat' undeclared (first use this function)
aux.cc: In function `bool getip(char*, char*)':
aux.cc:374: error: `FILE' undeclared (first use this function)
aux.cc:374: error: `pp' undeclared (first use this function)
aux.cc:376: error: `strcpy' undeclared (first use this function)
aux.cc:378: error: `sprintf' undeclared (first use this function)
aux.cc:379: error: `popen' undeclared (first use this function)
aux.cc:380: error: `fgets' undeclared (first use this function)
aux.cc:381: error: `strcmp' undeclared (first use this function)
aux.cc:383: error: `pclose' undeclared (first use this function)
aux.cc: In function `void iptohostname(char*, char*)':
aux.cc:393: error: `uint32_t' undeclared (first use this function)
aux.cc:393: error: parse error before `;' token
aux.cc:396: error: `strcpy' undeclared (first use this function)
aux.cc:397: error: `addr' undeclared (first use this function)
aux.cc:397: error: `inet_addr' undeclared (first use this function)
aux.cc:398: error: `AF_INET' undeclared (first use this function)
aux.cc:398: error: `gethostbyaddr' undeclared (first use this function)
aux.cc:399: error: `NULL' undeclared (first use this function)
aux.cc:400: error: invalid use of undefined type `struct hostent'
aux.cc:394: error: forward declaration of `struct hostent'
aux.cc: In function `int split(char*, char*, char*)':
aux.cc:405: error: `strcpy' undeclared (first use this function)
aux.cc:407: error: `strcspn' undeclared (first use this function)
aux.cc:407: error: `strncpy' undeclared (first use this function)
aux.cc:411: error: `strstr' undeclared (first use this function)
aux.cc:417: error: `strlen' undeclared (first use this function)
aux.cc:418: error: `atoi' undeclared (first use this function)
aux.cc: In function `unsigned int read_fw_mark(char*)':
aux.cc:432: error: `strtoul' undeclared (first use this function)
aux.cc: At global scope:
aux.cc:435: error: `vector' was not declared in this scope
aux.cc:435: error: parse error before `*' token
aux.cc: In function `bool is_in_vector(...)':
aux.cc:437: error: `vector' undeclared (first use this function)
aux.cc:437: error: parse error before `*' token
aux.cc:439: error: `fpvi' undeclared (first use this function)
aux.cc:439: error: `fpv' undeclared (first use this function)
aux.cc:441: error: `pattern' undeclared (first use this function)
aux.cc:441: error: `strcmp' undeclared (first use this function)
aux.cc: At global scope:
aux.cc:448: error: parse error before `*' token
aux.cc: In function `int fpv_section_i(...)':
aux.cc:453: error: parse error before `*' token
aux.cc:455: error: `sprintf' undeclared (first use this function)
aux.cc:459: error: `strcmp' undeclared (first use this function)
aux.cc:459: error: `fpvi_begin' undeclared (first use this function)
aux.cc:470: error: `fpvi_end' undeclared (first use this function)
aux.cc: In function `void gen_fixed_tc_rateceil_buf(char*, unsigned int,
   unsigned int)':
aux.cc:485: error: `sprintf' undeclared (first use this function)
make[1]: *** [aux.o] Błąd 1
make[1]: Leaving directory `/home/pakiety/niceshaper/src'
make: *** [all] Błąd 2


łoco chodzi :?:

dodam tylko, ze dopiero co zainstalowalem od nowa NND.

Autor:  JakubC [ piątek, 25 lipca 2008, 14:05 ]
Tytuł: 

install_devel

Autor:  rafal1435 [ piątek, 25 lipca 2008, 15:51 ]
Tytuł: 

ja mam 0.5 i jestem bardzo zadowolony:P przesiadlem sie z 0.6 bo ten nie potrafil nie ograniczac lacza wewnatrz sieci... a ten smiga jak nalezy takze jesli dziala to po co kombinowac

Autor:  barte-k [ piątek, 25 lipca 2008, 21:40 ]
Tytuł: 

NS 0.6 nie ogranicza? Poczytaj jeszcze raz dokumentacje...

Autor:  rafal1435 [ piątek, 25 lipca 2008, 22:12 ]
Tytuł: 

barte-k pisze:
NS 0.6 nie ogranicza? Poczytaj jeszcze raz dokumentacje...

zle przeczytales wlasnie ogranicza... i za chiny nie idzie tego ominac

Autor:  Nova [ sobota, 26 lipca 2008, 09:56 ]
Tytuł: 

wiecie co... olałem nową wersje. Wrocilem do starej, skopiowalem configi i wszystko mi ladnie chodzi. Nie mam cierpliwosci do nowych rzeczy ktore nie dzialaja od kopa

Autor:  rafal1435 [ sobota, 26 lipca 2008, 11:32 ]
Tytuł: 

Nova pisze:
wiecie co... olałem nową wersje. Wrocilem do starej, skopiowalem configi i wszystko mi ladnie chodzi. Nie mam cierpliwosci do nowych rzeczy ktore nie dzialaja od kopa

potwierdzam powiedzcie mi co daje nowa wersja? Skoro dziala stara i ma wszystko czego trzeba to po co kombinowac?

Autor:  pectosol [ sobota, 26 lipca 2008, 14:12 ]
Tytuł: 

barte-k pisze:
NS 0.6 nie ogranicza? Poczytaj jeszcze raz dokumentacje...


może i ogranicza ale,
dokumentacja jest niespójna a konfiguracja przekombinowana.
Robiłem kilka prób podejścia do nowego nice ale przy pełnym obciążeniu nie dawał sobie rady tak dobrze jak niceshaper0.5

przykład: 55-hostów, dsl 4M/512k, przydział na usera 1M/200k,
niceshaper0.5: ping do onetu przy 50%wysyceniu 14ms i przy 85% wysyceniu 45ms
niceshaper0.6: ping do onetu przy 50%wysyceniu 26ms i przy 85% wysyceniu 560-1000ms (!!!)

Może coś zle skonfigurowałem ale nice0.5 skonfigurowalem praktycznie w jeden dzień natomiast z nowym nice do tej pory walczę z konfiguracją.

Tworzenie klas i markowanie na podstawie filtów jest fajne tylko po co?
Co chwilę powstają nowe pomysły na ominięcie ruchu markowanego p2p więc filtry stają się bezużyteczne.

Strona 1 z 3 Strefa czasowa UTC+2godz.
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/