Freesco, NND, CDN, EOS

http://www.freesco.pl
Dzisiaj jest czwartek, 26 czerwca 2025, 22:53

Strefa czasowa UTC+2godz.




Nowy temat Odpowiedz w temacie  [ Posty: 13 ] 
Autor Wiadomość
Post: czwartek, 1 lutego 2007, 10:49 
Offline
Użytkownik

Rejestracja: poniedziałek, 19 grudnia 2005, 11:03
Posty: 189
Witam
Niceshaper dziala prawidłowo przycina userkow tak jak powinien, nie moge jednak skonfigurowac go zeby nie przycinal ruchu lokalnego z serwera do uzytkownikow w sieci lan, probowalem na rozne sposoby, oto moje configi:

config:
: [/] [] ()
<global>
    run download upload
    support mark on eth0
    stats unit kB/s
    stats file /home/httpd/html/nicestats.txt
    stats owner root group root mode 644
</global>

<download>
    iface imq1 match dstip 192.168.1.0/24
    section speed 64kB/s
    section shape 63kB/s
    default low 3kB/s
    default ceil 63kB/s
    mode download
    reload 5s
</download>

<upload>
    iface imq0 match srcip 192.168.1.0/24
    section speed 16kB/s
    section shape 15kB/s
    default low 2kB/s
    default ceil 15kB/s
    mode upload
    reload 2s
</upload>


class:

: [/] [] ()
class download imq1 ftp
    match from localhost srcip 192.168.1.1 dstip 192.168.1.0/24
    do-not-shape

class upload imq0 ftp
    match to localhost srcip 192.168.1.0/24 dstip 192.168.1.1
    do-not-shape

#############################################
# dla estetyki standardowe rozdzielenie linii
#####

class download imq1 darek
    match dstip 192.168.1.2
    ceil 25kB/s
class upload imq0 darek
    match srcip 192.168.1.2
    ceil 6kB/s


class download imq1 paluch
    match dstip 192.168.1.3
    ceil 25kB/s
class upload imq0 paluch
    match srcip 192.168.1.3
    ceil 6kB/s



Na górę
 Wyświetl profil  
 
 Tytuł:
Post: czwartek, 1 lutego 2007, 11:01 
Offline
Użytkownik

Rejestracja: czwartek, 19 sierpnia 2004, 15:18
Posty: 1273
Lokalizacja: Tychy
: [/] [] ()
class download eth1 ftp ; match from localhost srcip 192.168.0.1 dstip 192.168.0.0/24 proto tcp ; do-not-shape
class upload eth1 ftp ; match to localhost srcip 192.168.0.1 dstip 192.168.0.0/24 proto tcp ; do-not-shape

_________________
Pomogłem ? wypij moje zdrowie
Nie polemizuj z idiotą - najpierw sprowadzi Cię do swojego poziomu, a później pobije doświadczeniem.


Ostatnio zmieniony czwartek, 1 lutego 2007, 11:11 przez hx, łącznie zmieniany 1 raz

Na górę
 Wyświetl profil  
 
 Tytuł:
Post: czwartek, 1 lutego 2007, 11:06 
Offline
Użytkownik

Rejestracja: poniedziałek, 19 grudnia 2005, 11:03
Posty: 189
niestety nie pomoglo, dalej przycina ruch lokalny :(


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: czwartek, 1 lutego 2007, 19:29 
Offline
Użytkownik

Rejestracja: środa, 8 czerwca 2005, 19:39
Posty: 571
zmieniles adresy IP odpowiednio do swojej klasy?

_________________
| ArchLinux X64 2.6.29-6 (Custom) @ IBM eServer 235
| Intel Xeon 2,4GHz (x2) : 2GB RAM : 2x36GB SCSI (RAID1)
| httpd2.6 mysql exim dhcpd named proftpd stats niceshaper06
| WAN: 35|35 mb/s (GTS) @ 500+ hosts


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: czwartek, 1 lutego 2007, 19:34 
Offline
Użytkownik

Rejestracja: poniedziałek, 19 grudnia 2005, 11:03
Posty: 189
tak oczywiscie, kombinowalem juz na rozne sposoby, na niceshaper 0.5 normalnie nie tnie transferu lokalnego, dodam jeszcze tylko ze mam pppoe


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: czwartek, 1 lutego 2007, 20:58 
Offline
Użytkownik

Rejestracja: sobota, 1 stycznia 2005, 21:33
Posty: 416
Lokalizacja: Włocławek
no to może eth0


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: czwartek, 1 lutego 2007, 21:32 
Offline
Użytkownik

Rejestracja: poniedziałek, 19 grudnia 2005, 11:03
Posty: 189
probowalem eth0, eth1, roznie na zmiane tez, jakos nie zadzialalo do tej pory, mam dwie sieciowki w serwerze, jedna odbiera neta z modemu zewnetrzenego ktory dziala w trybue ''modem'' ( w systemie rozpoznawany jako ppp0) a druga sieciówka wysyla necik na siec lokalna, dla jasnosci interfejs eth0 to trn modem widziany w nnd jako ppp0 a eth1 to wyjscie netu na siec lokalna


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: piątek, 2 lutego 2007, 04:14 
Offline

Rejestracja: środa, 2 listopada 2005, 00:08
Posty: 69
Lokalizacja: almost Gdańsk
marckamillus pisze:
dla jasnosci interfejs eth0 to trn modem widziany w nnd jako ppp0 a eth1 to wyjscie netu na siec lokalna


Czyli masz modem podpięty do sieciówki na serwerze przez skrętke (RJ-45) ? tak ?

W tym przypadku zakładam, że eth0 to sieciówka zewnętrzna, a eth1 to wewnątrzna.

: [/] [] ()
class download eth1 lokal ; match from localhost srcip 192.168.1.1 dstip 192.168.1.0/24 ; do-not-shape

class upload eth0 lokal ; match from localhost srcip 192.168.1.0/24 dstip 192.168.1.1 ; do-not-shape


Tak jak powyżej działało u mnie, natomiast o zrobieniu tego samego na imq - zapomnij. Może w następnym wydaniu NS..

_________________
W LAN-ie wszyscy jesteśmy jedną wielką rodziną.
DSL 4mbit | 12 osób


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: piątek, 2 lutego 2007, 19:08 
Offline
Użytkownik

Rejestracja: poniedziałek, 19 grudnia 2005, 11:03
Posty: 189
Cytuj:
Czyli masz modem podpięty do sieciówki na serwerze przez skrętke (RJ-45) ? tak ?

W tym przypadku zakładam, że eth0 to sieciówka zewnętrzna, a eth1 to wewnątrzna.

dokaldnie tak jest.

Ale niestety dalej nie dziala tak jak powinno, cos mi sie wydaje ze to wina tego modemu co jest podpiety, bo on jest w sysytemie widziany jako ppp0 oprocz tego ze jest eth0 i eth1


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 4 lutego 2007, 04:55 
Offline

Rejestracja: środa, 2 listopada 2005, 00:08
Posty: 69
Lokalizacja: almost Gdańsk
marckamillus pisze:
bo on jest w sysytemie widziany jako ppp0 oprocz tego ze jest eth0 i eth1


Czyli ifconfig pokazuje Ci 3 interfejsy tj. ppp0, eth0 i eth1 czy tylko ppp0 i eth1 ? Jeśli tak jest, to może zamiast eth0 wpisz w niceshaperze ppp0 jako interfejs zewnętrzny.

I co to za modem działający jako "modem" ? Nie możesz go ustawić ,żeby działał w trybie transparentnym (przezroczysty) tak ,aby tylko przepuszczał neta ?

_________________
W LAN-ie wszyscy jesteśmy jedną wielką rodziną.
DSL 4mbit | 12 osób


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: poniedziałek, 5 lutego 2007, 00:33 
Offline
Użytkownik

Rejestracja: wtorek, 18 kwietnia 2006, 10:58
Posty: 266
Lokalizacja: Rzeszów
Mi dziala tak

### lokal ###
class download eth1 lokal
match from localhost srcip 192.168.0.1 dstip 192.168.0.0/24
do-not-shape

class upload eth1 lokal
match from localhost srcip 192.168.0.1 dstip 192.168.0.1/24
do-not-shape

_________________
AMD Se 2600+ / HDD: 80Gb / DDR 512Mb / Neo 6Mb/s / 25 maszyn


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: niedziela, 25 lutego 2007, 22:15 
Offline
Użytkownik

Rejestracja: poniedziałek, 19 grudnia 2005, 11:03
Posty: 189
nie dziala dalej :( :( :evil: :evil:


Na górę
 Wyświetl profil  
 
 Tytuł:
Post: sobota, 31 marca 2007, 12:37 
Offline

Rejestracja: wtorek, 21 marca 2006, 21:09
Posty: 70
[root@serwer niceshaper]# ./install.sh
In file included from /usr/include/unistd.h:190,
from niceshaper.h:6,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/bits/types.h:31:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from niceshaper.h:6,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/unistd.h:199:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from niceshaper.h:6,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/unistd.h:310: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:310: error: parse error before `)' token
/usr/include/unistd.h:313: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:313: error: parse error before `)' token
/usr/include/unistd.h:317: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:317: error: parse error before `,' token
/usr/include/unistd.h:319: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:319: error: parse error before `,' token
/usr/include/unistd.h:340: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:340: error: parse error before `,' token
/usr/include/unistd.h:344: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:344: error: parse error before `,' token
/usr/include/unistd.h:423: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:423: error: parse error before `)' token
In file included from niceshaper.h:6,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/unistd.h:513: error: syntax error before `(' token
/usr/include/unistd.h:682: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:682: error: parse error before `)' token
/usr/include/unistd.h:707: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:707: error: parse error before `)' token
/usr/include/unistd.h:730: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:730: error: parse error before `)' token
In file included from niceshaper.h:6,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/unistd.h:752: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:752: error: parse error before `)' token
/usr/include/unistd.h:759: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:759: error: parse error before `)' token
/usr/include/unistd.h:769: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:769: error: parse error before `)' token
/usr/include/unistd.h:770: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:770: error: parse error before `)' token
/usr/include/unistd.h:787: error: type specifier omitted for parameter `size_t'
/usr/include/unistd.h:787: error: parse error before `,' token
In file included from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/stdlib.h:33:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/stdlib.h:137: error: syntax error before `(' token
In file included from /usr/include/stdlib.h:414,
from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/sys/types.h:147:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/sys/types.h:266,
from /usr/include/stdlib.h:414,
from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/bits/pthreadtypes.h:48: error: 'size_t' is used as a type, but is
not defined as a type.
/usr/include/bits/pthreadtypes.h:51: error: 'size_t' is used as a type, but is
not defined as a type.
In file included from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/stdlib.h:431: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:431: error: parse error before `)' token
/usr/include/stdlib.h:460: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:460: error: parse error before `,' token
/usr/include/stdlib.h:554: error: `size_t' was not declared in this scope
/usr/include/stdlib.h:554: error: parse error before `)' token
/usr/include/stdlib.h:556: error: `size_t' was not declared in this scope
/usr/include/stdlib.h:556: error: parse error before `,' token
/usr/include/stdlib.h:565: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:565: error: parse error before `)' token
In file included from /usr/include/stdlib.h:576,
from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/alloca.h:25:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/stdlib.h:576,
from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/alloca.h:33: error: `size_t' was not declared in this scope
/usr/include/alloca.h:33: error: parse error before `)' token
In file included from niceshaper.h:7,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/stdlib.h:581: error: `size_t' was not declared in this scope
/usr/include/stdlib.h:581: error: parse error before `)' token
/usr/include/stdlib.h:586: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:586: error: parse error before `,' token
/usr/include/stdlib.h:731: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:731: error: parse error before `,' token
/usr/include/stdlib.h:735: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:735: error: parse error before `,' token
/usr/include/stdlib.h:804: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:804: error: parse error before `)' token
/usr/include/stdlib.h:807: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:807: error: parse error before `)' token
/usr/include/stdlib.h:811: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:811: error: parse error before `)' token
/usr/include/stdlib.h:814: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:814: error: parse error before `)' token
/usr/include/stdlib.h:822: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:822: error: parse error before `)' token
/usr/include/stdlib.h:826: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:826: error: parse error before `)' token
/usr/include/stdlib.h:833: error: syntax error before `(' token
/usr/include/stdlib.h:836: error: syntax error before `(' token
/usr/include/stdlib.h:898: error: type specifier omitted for parameter `size_t'
/usr/include/stdlib.h:898: error: parse error before `)' token
In file included from /usr/include/signal.h:328,
from niceshaper.h:8,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/bits/sigstack.h:54: error: 'size_t' is used as a type, but is not
defined as a type.
In file included from niceshaper.h:10,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/fcntl.h:130: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:130: error: parse error before `,' token
/usr/include/fcntl.h:142: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:142: error: parse error before `,' token
/usr/include/fcntl.h:149: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:149: error: parse error before `)' token
/usr/include/fcntl.h:160: error: type specifier omitted for parameter `size_t'
/usr/include/fcntl.h:160: error: parse error before `)' token
In file included from /usr/include/netinet/in.h:212,
from /usr/include/netdb.h:28,
from niceshaper.h:11,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/bits/socket.h:29:20: stddef.h: Nie ma takiego pliku ani katalogu
In file included from /usr/include/bits/socket.h:31,
from /usr/include/netinet/in.h:212,
from /usr/include/netdb.h:28,
from niceshaper.h:11,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/limits.h:124:26: no include path in which to find limits.h
In file included from /usr/include/netinet/in.h:212,
from /usr/include/netdb.h:28,
from niceshaper.h:11,
from ns_class.h:4,
from ns_class.cc:1:
/usr/include/bits/socket.h:221: error: 'size_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:224: error: 'size_t' is used as a type, but is not
defined as a type.
/usr/include/bits/socket.h:232: error: 'size_t' is used as a type, but is not
defined as a type.

czemu nie moge skopmilowac nice'a? kiedys juz to robilem, teraz od nowa zainstalowalme nnd z develem i nie moge.


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

Strefa czasowa UTC+2godz.


Kto jest online

Użytkownicy przeglądający to forum: Obecnie na forum nie ma żadnego zarejestrowanego użytkownika i 12 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:  
cron
Technologię dostarcza phpBB® Forum Software © phpBB Group
Hosting: Compus-Net
RobertKonik.pl