Пытаюсь сделать dynashape на лунуксе ни чего не получается
[root@localhost utm5]# cat dynashape.cfg
##
## /netup/utm5/dynashape.cfg
## DynaShape configuration file
##
## tmp_file
## Description: A temporary file to store information on executed commands.
## Possible values: <path>
## Required field.
tmp_file=/netup/utm5/log/dynashape.tmp
## core_host
## Description: IP address of the host running UTM5 core.
## Possible values: IP address or 0.0.0.0
## Default value: 127.0.0.1
core_host=127.0.0.1
## core_port
## Description: Port where UTM5 is listening to URFA.
## Possible values: an integer from 1 to 65534
## Default value: 11758
core_port=11758
## core_login
## Description: Login of the system user to access the UTM5 core. The user
## should have rights to call the urfa-function with ID = 0x12001.
## Possible values: <string>
## Default value: init
core_login=init
## core_password
## Description: Password of the system user to access the UTM5 core.
## Possible values: <string>
## Default value: init
core_password=init
## group_id
## Description: ID of the group of users for which the shaper management
## commands are executed.
## Possible values: an integer
## Default value: unset
## t_class
## Description: Traffic classes to include in calculation of
## downloaded traffic.
## Possible values: a comma-separated list of positive integers
## Default value: unset
t_class=10
## firewall_path
## Description: Name of the executable file managing the software shaper.
## Possible values: <name of an executable file>
## Default value: unset
firewall_path=dino.sh
## fw_rule_offset
## Description: Sets the value to be added to user id to derive
## the value of RULE_ID.
## Possible values: <positive integer>
## Default value: unset
fw_rule_offset=2000
## vpn_only
## Description: Regulates use of 'non-VPN' option when setting IP groups that
## are used for creating the commands.
## Possible values: 0, 1, 2
## ---------------------------------------------------------
## | Value | 'non-VPN' option value for IP traffic service |
## |-------+-----------------------------------------------|
## | 0 | the option is unset |
## | 1 | the option is set |
## | 2 | the option is ignored |
## ---------------------------------------------------------
## Default value: 0
vpn_only=1
[root@localhost utm5]#
[root@localhost utm5]# cat dino.sh
#!/bin/bash
if=”eth0”
echo $*
echo “First create: tc qdisc add dev $if root han-dle 1: htb”
case “$7” in
1)
iptables -t mangle -A FORWARD -s 0/0 -d $2/$3 -j MARK --set-mark $1
tc filter add dev $if parent 1: protocol ip prio 3 handle $1 fw classid 1:$1
tc class add dev $if parent 1:1 classid 1:$1 htb rate $5kbit burst 20k
;;
0)
iptables -t mangle -D FORWARD -s 0/0 -d $2/$3 -j MARK --set-mark $1
tc filter del dev $if parent 1: protocol ip prio 3 handle $1 fw classid 1:$1
tc class del dev $if parent 1:1 classid 1:$1 htb rate $5kbit burst 20k
;;
2)
;;
3)
tc class change dev $if parent 1:1 classid 1:$1 htb rate $5kbit burst 20k
;;
*) echo “Usage: `basename $0` {ID IP BITMASK MASK SPEED INT_STATUS OPER_STATUS}” >&2
exit 64
;;
esac
Запускаю сначала utm5_dynashape -i
Создается пустой файл
dynashape.tmp
потом запускуаю без параметра i и в нем все равно пусто
в debug.log
-Stats : Dec 18 15:05:41 DBA Groups: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
Info : Dec 18 15:05:41 RPCConn[SSL]<init@127.0.0.1>: Access granted to [SSL]<init@127.0.0.1> (UID: -1)
?Debug : Dec 18 15:05:41 RPCConn[SSL]<init@127.0.0.1>: SSL type requested: SSLv3(2)
?Debug : Dec 18 15:05:41 RPCConn[SSL]<init@127.0.0.1>: Call: 0x12001 (get_shape_param)
?Debug : Dec 18 15:05:41 RPCConn[SSL]<init@127.0.0.1>: Real Call: 0x12001 (get_shape_param)
?Debug : Dec 18 15:05:41 UTM5 DBA: DBAccess instance created
?Debug : Dec 18 15:05:41 DBA:Ctx: Looking for free context
?Debug : Dec 18 15:05:41 DBCtx: <150389584> SQL SELECT query: SELECT distinct ig.ip as ip,us.value, a.id as accountid,a.int_status,ig.mask,sl.id FROM accounts a,iptraffic_service_links il,service_links sl,services_data sd,ip_groups ig,utm5_settings us WHERE a.id=sl.account_id AND a.is_deleted=0 AND sl.service_id=sd.id AND sd.tariff_id = us.variable AND sl.id=il.id AND ig.ip_group_id=il.ip_group_id AND sl.is_deleted=0 AND sd.is_deleted=0 AND ig.is_deleted=0 AND sd.service_type=3 AND sd.tariff_id!=0 AND ig.ip_type=0 GROUP BY ig.ip,us.value,a.id,a.int_status,ig.mask,sl.id ORDER BY a.id
?Debug : Dec 18 15:05:41 DBA:Ctx: Pushing back free context
-Stats : Dec 18 15:05:41 UTM5 DBA: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
В чем может быть проблема???
dynashape проблема
решил поднять тему
Info : Jun 04 03:08:27 RPCServer@0.0.0.0: Client connecting: 127.0.0.1:58272
Info : Jun 04 03:08:27 RPCConn: Connection from: 127.0.0.1:58272
?Debug : Jun 04 03:08:27 DBA Groups: Group: -1 from 1
-Stats : Jun 04 03:08:27 DBA Groups: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
Info : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Access granted to [SSL]<init@127.0.0.1> (UID: -1)
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: SSL type requested: SSLv3(2)
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Call: 0x12001 (get_shape_param)
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Real Call: 0x12001 (get_shape_param)
?Debug : Jun 04 03:08:27 UTM5 DBA: DBAccess instance created
?Debug : Jun 04 03:08:27 DBA:Ctx: Looking for free context
?Debug : Jun 04 03:08:27 DBCtx: <138840064> SQL SELECT query: SELECT distinct ig.ip as ip,us.value, a.id as accountid,a.int_status,ig.mask,sl.id FROM accounts a,iptraffic_service_links il,service_links sl,services_data sd,ip_groups ig,utm5_settings us WHERE a.id=sl.account_id AND a.is_deleted=0 AND sl.service_id=sd.id AND sd.tariff_id = us.variable AND sl.id=il.id AND ig.ip_group_id=il.ip_group_id AND sl.is_deleted=0 AND sd.is_deleted=0 AND ig.is_deleted=0 AND sd.service_type=3 AND sd.tariff_id!=0 AND ig.ip_type=0 GROUP BY ig.ip,us.value,a.id,a.int_status,ig.mask,sl.id ORDER BY a.id
ERROR : Jun 04 03:08:27 DBAExistingError: trying to get unexist ip traffic link 4180
?Debug : Jun 04 03:08:27 DBA:Ctx: Pushing back free context
-Stats : Jun 04 03:08:27 UTM5 DBA: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
ERROR : Jun 04 03:08:27 DBAExistingError: [__rpcf_get_shape_param] trying to get unexist ip traffic link 4180
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Call 0x12001 (get_shape_param) finished...
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Stream cleared
Info : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Connection terminated by peer
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Session closed...
динашейп не запускается пишет:
Unable to call get_shape_param function
Possible liburfa-dynashape not loaded.
библиотека подгружена
впадаю в ступр, причём до недавнешнего времени работал нормально, после добавления новых тарифов сдох, тарифы на синтексис проверил раз 20 ничего не обнаружел.
Подскажите куда копать.
в main.log
ERROR : Jun 04 03:33:00 DBAExistingError: trying to get unexist ip traffic link 4180
ERROR : Jun 04 03:33:00 DBAExistingError: [__rpcf_get_shape_param] trying to get unexist ip traffic link 4180
Info : Jun 04 03:08:27 RPCConn: Connection from: 127.0.0.1:58272
?Debug : Jun 04 03:08:27 DBA Groups: Group: -1 from 1
-Stats : Jun 04 03:08:27 DBA Groups: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
Info : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Access granted to [SSL]<init@127.0.0.1> (UID: -1)
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: SSL type requested: SSLv3(2)
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Call: 0x12001 (get_shape_param)
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Real Call: 0x12001 (get_shape_param)
?Debug : Jun 04 03:08:27 UTM5 DBA: DBAccess instance created
?Debug : Jun 04 03:08:27 DBA:Ctx: Looking for free context
?Debug : Jun 04 03:08:27 DBCtx: <138840064> SQL SELECT query: SELECT distinct ig.ip as ip,us.value, a.id as accountid,a.int_status,ig.mask,sl.id FROM accounts a,iptraffic_service_links il,service_links sl,services_data sd,ip_groups ig,utm5_settings us WHERE a.id=sl.account_id AND a.is_deleted=0 AND sl.service_id=sd.id AND sd.tariff_id = us.variable AND sl.id=il.id AND ig.ip_group_id=il.ip_group_id AND sl.is_deleted=0 AND sd.is_deleted=0 AND ig.is_deleted=0 AND sd.service_type=3 AND sd.tariff_id!=0 AND ig.ip_type=0 GROUP BY ig.ip,us.value,a.id,a.int_status,ig.mask,sl.id ORDER BY a.id
ERROR : Jun 04 03:08:27 DBAExistingError: trying to get unexist ip traffic link 4180
?Debug : Jun 04 03:08:27 DBA:Ctx: Pushing back free context
-Stats : Jun 04 03:08:27 UTM5 DBA: Stats: Uptime: 00:00:00. Events: 0; Errors: 0
ERROR : Jun 04 03:08:27 DBAExistingError: [__rpcf_get_shape_param] trying to get unexist ip traffic link 4180
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Call 0x12001 (get_shape_param) finished...
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Stream cleared
Info : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Connection terminated by peer
?Debug : Jun 04 03:08:27 RPCConn[SSL]<init@127.0.0.1>: Session closed...
динашейп не запускается пишет:
Unable to call get_shape_param function
Possible liburfa-dynashape not loaded.
библиотека подгружена
впадаю в ступр, причём до недавнешнего времени работал нормально, после добавления новых тарифов сдох, тарифы на синтексис проверил раз 20 ничего не обнаружел.
Подскажите куда копать.
в main.log
ERROR : Jun 04 03:33:00 DBAExistingError: trying to get unexist ip traffic link 4180
ERROR : Jun 04 03:33:00 DBAExistingError: [__rpcf_get_shape_param] trying to get unexist ip traffic link 4180
- Chrst
- Сообщения: 370
- Зарегистрирован: Пт май 11, 2007 09:28
- Откуда: Медиахолдинг "ЛеККС"
- Контактная информация:
Re: решил поднять тему
Это и был ответ наверняка.soft87 писал(а):Подскажите куда копать.
в main.log
ERROR : Jun 04 03:33:00 DBAExistingError: trying to get unexist ip traffic link 4180
ERROR : Jun 04 03:33:00 DBAExistingError: [__rpcf_get_shape_param] trying to get unexist ip traffic link 4180
Искать кому не хватает этого линка и срезать.
Хотел узнать в какой форме нужно использовать dynashape. Стоит голоя утм5 без дополнительных модулей. Для работы dynashape, нужна установка дополнительных модулей?
И еще инет идет через nat. Будет ли резать скорость пользователям, если тупо устанавливать скорость ограничения в тарифе. Без установок raduis.
И еще инет идет через nat. Будет ли резать скорость пользователям, если тупо устанавливать скорость ограничения в тарифе. Без установок raduis.
Простите за глупый вопрос сверху.
Пока учусь, изучаю систему. Есть пару вопросов к знатокам.
Чтобы ограничивать скорость с помощью dynashape читал книгу, понел что стандартная связка utm+dynashape не будет работать, неполучиться резать на eth2, обьяните что нужно установить, какие дополнения в системе. Как настроивать буду вкуривать сам, только укажить нужный путь=)
Centos 5.3, utm5.2.1-006, стоит комп две сетевухи eth1-инет, eth2-сеть (192.168.0/24) интернет делаю через nat iptables. Вообще стандартная настройка по книжке. Хочу научиться резать трафик по тарифам.
Спасибо
Пока учусь, изучаю систему. Есть пару вопросов к знатокам.
Чтобы ограничивать скорость с помощью dynashape читал книгу, понел что стандартная связка utm+dynashape не будет работать, неполучиться резать на eth2, обьяните что нужно установить, какие дополнения в системе. Как настроивать буду вкуривать сам, только укажить нужный путь=)
Centos 5.3, utm5.2.1-006, стоит комп две сетевухи eth1-инет, eth2-сеть (192.168.0/24) интернет делаю через nat iptables. Вообще стандартная настройка по книжке. Хочу научиться резать трафик по тарифам.
Спасибо
