PDA

View Full Version : Приоритезация трафика: еще один путь


ABATAPA
17-03-2008, 12:23
Вот тут есть еще одно решение для приоритизации трафика:
http://sourceforge.net/projects/trafitizer/

"Traffic Prioritizer is designed to run on a linux router and prioritize users' traffic by their bandwidth consumption. It is aimed to shape the "bandwidth greedy" clients (p2p,youtube,IPTV) so that the ones who are just browsing do not lack bandwidth."

Что характерно, в конфиге по-умолчанию интерфейс 'br0'. ;)

sonice
17-03-2008, 13:54
Вот тут есть еще одно решение для приоритизации трафика:
http://sourceforge.net/projects/trafitizer/

"Traffic Prioritizer is designed to run on a linux router and prioritize users' traffic by their bandwidth consumption. It is aimed to shape the "bandwidth greedy" clients (p2p,youtube,IPTV) so that the ones who are just browsing do not lack bandwidth."

Что характерно, в конфиге по-умолчанию интерфейс 'br0'. ;)

У меня проблема как юзер грузит торретом- VOIP телефон страдает и QoS не помогает. Хочу попробовать trafitizer- но как поставить?
./configure && make && make install
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
/bin/sh: Can't open /opt/etc/trafitizer/trafitizer/missing
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Я нашел решение
http://forum.qmailrocks.org/archive/index.php/t-457.html
Поставил automake
ipkg install automake
Installing automake (1.10-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/automake_1.10-2_mipsel.ipk
Installing autoconf (2.61-2) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/autoconf_2.61-2_mipsel.ipk
Installing m4 (1.4.8-1) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/m4_1.4.8-1_mipsel.ipk
Configuring autoconf
Configuring automake
Configuring m4
Successfully terminated.

но не пошло...
automake --add-missing
-sh: automake: not found


потом нашел файл missing и добавил в папку отсюда ftp://ftp.gnu.org/gnu/sharutils/REL-4.6.3/sharutils-4.6.3.tar.gz но все равно -

./configure
checking for a BSD-compatible install... ./install-sh -c
checking whether build environment is sane... yes
/bin/sh: Can't open /opt/etc/trafitizer/missing
configure: WARNING: `missing' script is too old or missing
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

al37919
17-03-2008, 19:43
для компиляции на роутере надо ставить пакет optware-devel

piezomotor
18-03-2008, 02:27
для компиляции на роутере надо ставить пакет optware-devel

Поставил. Но опять-

cd trafitizer
[root@WL-001D60DEC437 trafitizer]$ ./configure && make && make install
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
/opt/bin/bash: /opt/etc/trafitizer/missing: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

al37919
18-03-2008, 05:34
надо не просто вбить комманду ipkg install optware-devel , а добиться ее выполнения без ошибок.

Отсутствует пакет buildroot. Он весит 42Мб, поэтому не у всех легко встает. Можно его выкачать отдельно, затем поставить с локального диска. После этого сделать ipkg install optware-devel еще раз

sonice
18-03-2008, 14:16
надо не просто вбить комманду ipkg install optware-devel , а добиться ее выполнения без ошибок.

Отсутствует пакет buildroot. Он весит 42Мб, поэтому не у всех легко встает. Можно его выкачать отдельно, затем поставить с локального диска. После этого сделать ipkg install optware-devel еще раз
Я поставил-
ipkg install buildroot
Installing buildroot (4.1.1-13) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/buildroot_4.1.1-13_mipsel.ipk
Configuring buildroot
Updating /opt/etc/ld.so.cache
Successfully terminated.

Я поставил-
ipkg install optware-devel
Installing optware-devel (6.8-7) to /opt/...
Downloading http://ipkg.nslu2-linux.org/feeds/optware/oleg/cross/stable/optware-devel_6.8-7_mipsel.ipk
Configuring optware-devel
Successfully terminated.

А теперь проблема с libpcap и missing, как поставить?
./configure && make && make install
checking for a BSD-compatible install... /opt/bin/install -c
checking whether build environment is sane... yes
/opt/bin/bash: /opt/etc/trafitizer/missing: No such file or directory
configure: WARNING: `missing' script is too old or missing
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ISO C89... none needed
checking for style of include used by make... GNU
checking dependency style of gcc... none
checking for local libpcap... no
checking for main in -lpcap... no
configure: error: You need libpcap in order to use trafitizer


Прочитал тут http://wl500g.info/showthread.php?t=10766&highlight=libpcap

но не ясно как поставить...
Спасибо!