Freesco, NND, CDN, EOS http://forum.freesco.pl/ |
|
Niceshaper0.6-rc3 przycina ruch lokalny http://forum.freesco.pl/viewtopic.php?f=22&t=14690 |
Strona 1 z 1 |
Autor: | marckamillus [ czwartek, 1 lutego 2007, 10:49 ] |
Tytuł: | Niceshaper0.6-rc3 przycina ruch lokalny |
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 |
Autor: | hx [ czwartek, 1 lutego 2007, 11:01 ] |
Tytuł: | |
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 |
Autor: | marckamillus [ czwartek, 1 lutego 2007, 11:06 ] |
Tytuł: | |
niestety nie pomoglo, dalej przycina ruch lokalny ![]() |
Autor: | barte-k [ czwartek, 1 lutego 2007, 19:29 ] |
Tytuł: | |
zmieniles adresy IP odpowiednio do swojej klasy? |
Autor: | marckamillus [ czwartek, 1 lutego 2007, 19:34 ] |
Tytuł: | |
tak oczywiscie, kombinowalem juz na rozne sposoby, na niceshaper 0.5 normalnie nie tnie transferu lokalnego, dodam jeszcze tylko ze mam pppoe |
Autor: | przemek_nnd [ czwartek, 1 lutego 2007, 20:58 ] |
Tytuł: | |
no to może eth0 |
Autor: | marckamillus [ czwartek, 1 lutego 2007, 21:32 ] |
Tytuł: | |
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 |
Autor: | MarkosX [ piątek, 2 lutego 2007, 04:14 ] |
Tytuł: | |
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.. |
Autor: | marckamillus [ piątek, 2 lutego 2007, 19:08 ] |
Tytuł: | |
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 |
Autor: | MarkosX [ niedziela, 4 lutego 2007, 04:55 ] |
Tytuł: | |
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 ? |
Autor: | Szurik [ poniedziałek, 5 lutego 2007, 00:33 ] |
Tytuł: | |
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 |
Autor: | marckamillus [ niedziela, 25 lutego 2007, 22:15 ] |
Tytuł: | |
nie dziala dalej ![]() ![]() ![]() ![]() |
Autor: | tompl [ sobota, 31 marca 2007, 12:37 ] |
Tytuł: | |
[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. |
Strona 1 z 1 | Strefa czasowa UTC+2godz. |
Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |