radius

Технические вопросы по UTM 5.0
Ответить
xxxupg
Сообщения: 457
Зарегистрирован: Вс май 02, 2010 10:00

radius

Сообщение xxxupg »

уважаемые!

радиус сервер от нетап работает нормально 3-4 дня, потом авторизовывает всё нормально но не ишет сессии абонентов, перезапуск службы помогает на пару дней.

расскажите что можно посмотреть?

конфиг стандартный:

Код: Выделить всё

##
## /netup/utm5/radius5.cfg
## UTM5 RADIUS server configuration file
##

## =============================================================================
## MAIN RADIUS SERVER PARAMETERS
## =============================================================================

## core_host
##  Description: IP address of a host running the utm5_core
##  Possible values: an IP address
##  Required field.
core_host=127.0.0.1

## core_port
##  Description: UTM5 core listening port. Equal to stream_bind_port parameter
##   in utm5.cfg.
##  Possible values: an integer from 1 to 65534
##  Required field.
core_port=12758

## radius_login
##  Description: A system user login to access the UTM5 core.
##  Possible values&#58; <string>
##  Default value&#58; radius

## radius_password
##  Description&#58; A system user password to access the UTM5 core.
##  Possible values&#58; <string>
##  Default value&#58; radius

## radius_ssl_type
##  Description&#58; SSL connection type. If 'none' is set, the connection
##   is unencrypted.
##  Possible values&#58; tls1, ssl3, none
##  Default value&#58; none
#radius_ssl_type=none

## radius_acct_host
##  Description&#58; IP address of the host receiving Accounting-Requests.
##  Possible values&#58; interface IP address or 0.0.0.0
##  Default value&#58; 0.0.0.0

## radius_acct_port
##  Description&#58; Port of the host receiving Accounting-Requests.
##  Possible values&#58; an integer from 1 to 65534
##  Default value&#58; 1813

## radius_auth_host
##  Description&#58; IP address of the host receiving Access-Requests.
##  Possible values&#58; interface IP address or 0.0.0.0
##  Default value&#58; 0.0.0.0

## radius_auth_port
##  Description&#58; Port of the host receiving Access-Requests.
##  Possible values&#58; an integer from 1 to 65534
##  Default value&#58; 1812

## radius_auth_mppe
##  Description&#58; Enables MPPE 128 bit key generation used for authorization
##   via MS-CHAP-v2 protocol.
##  Possible values&#58; enable
##  Default value&#58; the keys are not generated
radius_auth_mppe=enable

## radius_auth_vap
##  Description&#58; If the value is set, authorization of blocked users, whose
##   logins are set in IP traffic service link, is disallowed.
##  Possible values&#58; 1
##  Default value&#58; authorization is allowed

## radius_ippool_acct_timeout
##  Description&#58; A time interval during which the IP address is labeled as
##   occupied after sending Access-Accept.
##  Possible values&#58; time in seconds 
##  Default value&#58; 30

## radius_ippool_timeout
##  Description&#58; A time interval during which the IP address is labeled as
##   occupied after receiving Accounting-Start.
##  Possible values&#58; time in seconds
##  Default value&#58; The address is labeled as occupied until coming of the
##   Stop packet

## radius_auth_null
##  Description&#58; If enabled, the RADIUS server authorizes requests without
##   User-Password&#40;2&#41; attribute, if the user's password, defined in the
##   service link, is empty.
##  Possible values&#58; yes, enable
##  Default value&#58; authorization without a password is not performed
#radius_auth_null=yes

## radius_auth_h323_remote_address
##  Description&#58; If enabled, then telephone calls authentication is performed
##   using h323-remote-address&#40;9;23&#41; attribute value, but not using
##   User-Name&#40;1&#41; attribute. The attribute value is used as a login.
##  Possible values&#58; enable, on, yes
##  Default value&#58; replacement of login with h323-remote-address is not
##   performed

## radius_nas_port_vpn
##  Description&#58; This parameter is checked against NAS-Port-Type&#40;61&#41; attribute
##   value when connecting using the login specified in the IP traffic service
##   link. Several values can be set.
##  Possible values&#58; a positive integer
##  Default value&#58; Checking against NAS-Port-Type for the IP traffic service
##   link is not performed

## radius_nas_port_dialup
##  Description&#58; This parameter is checked against NAS-Port-Type&#40;61&#41; attribute
##   value when connecting using the login specified in the Dial-up service
##   link. Several values can be set.
##  Possible values&#58; a positive integer
##  Default value&#58; checking against NAS-Port-Type for the Dial-up service link
##   is not performed

## radius_nas_port_tel
##  Description&#58; This parameter is checked against NAS-Port-Type&#40;61&#41; attribute
##   value when connecting using the login specified in the Telephony service
##   link. Several values can be set.
##  Possible values&#58; a positive integer
##  Default value&#58; checking against NAS-Port-Type for the Telephony service
##   link is not performed

## radius_card_autoadd
##  Description&#58; If 'yes' is set, the automatic registration of users is
##   enabled via the RADIUS server using prepaid cards. In this case in the
##   Login field a user enters the card number and in the Password field - the
##   PIN code. In case of the Telephony service, in the Login field it is
##   entered the PIN code or its first part and the remainder is used as a
##   password.

##  Possible values&#58; yes, on, enable
##  Default value&#58; automatic registration is not performed
##  закоменчено 06.07.14. был баг.
##  radius_card_autoadd=yes

## send_xpgk_ep_number
##  Description&#58; If this option is enabled, for the Telephony service, when a
##   user is being authorized, in Access-Accept it is transmitted the
##   Cisco-AVPair&#40;9;1&#41; attribute with the value&#58;
##   xpgk-ep-number=<a semicolon separated list of telephone numbers>.
##  Possible values&#58; <any>
##  Default value&#58; telephone numbers are not transmitted in affirmative replies
##   to authorization requests

## send_h323_ivr_in
##  Description&#58; If this option is enabled, for the Telephony service, when a
##   user is being authorized, in Access-Accept it is transmitted the
##   Cisco-AVPair&#40;9;1&#41; attribute with the value&#58; h323-ivr-in=terminal-alias&#58;
##   <a semicolon separated list of telephone numbers>.
##  Possible values&#58; <any>
##  Default value&#58; telephone numbers are not transmitted in affirmative replies
##   to authorization requests

## enable_fast_telephony
##  Description&#58; This option enables the rapid mechanism for determination of
##   directions and zones when rating telephone calls. In this case templates
##   for telephone directions must contain the digits from 0 to 9 and the
##   symbols&#58; ^ $ + &#41;&#40; |.
##  Possible values&#58; enable, yes
##  Default value&#58; the default mechanism for determination of zone/direction
##   is used

## h323_origin_reject
##  Description&#58; Sets zero cost for Accounting-Requests in which the
##   h323-call-origin&#40;9;26&#41; attribute equals the value of this parameter.
##  Possible values&#58; <string>
##  Default value&#58; unset
#h323_origin_reject=originate &#123;answer|callback|etc&#125;

## interim_update_interval
##  Description&#58; Enables session control mechanism using Interim-Update
##   packets. The value is transmitted in the Acct-Interim-Interval&#40;85&#41;
##   attribute of the Access-Accept packet.
##  Possible values&#58; time in seconds, more than 61
##  Default value&#58; the default session closure control mechanism is used
interim_update_interval=62

## radius_default_session_timeout
##  Description&#58; A value of the Session-Timeout&#40;27&#41; attribute transmitted in
##   Access-Accept for the IP traffic service link.
##  Possible values&#58; a positive integer
##  Default value&#58; 86400

## radius_callback_avpair_enable
##  Description&#58; Enables transmission of the Cisco-AVPair&#40;9;1&#41; attribute with
##   the value lcp&#58;callback-dialstring=<callback number>, where
##   <callback number> is the part of the login from the beginning to the
##   '&#58;'-symbol.
##  Possible values&#58; <any>
##  Default value&#58; unset

## radius_acct_rewrite_login_answer
##  Description&#58; If the value of the h323-call-origin&#40;9;26&#41; attribute is
##   'originate', then setting this parameter enables replacing of the login
##   with the value of the h323-remote-address&#40;9;23&#41; attribute when processing
##   Accounting..
##  Possible values&#58; enable, on, true
##  Default value&#58; unset

## radius_acct_rewrite_login_originate
##  Description&#58; If the value of the h323-call-origin&#40;9;26&#41; attribute is
##   'answer', then setting this parameter enables replacing of the login with
##   the value of the h323-remote-address&#40;9;23&#41; attribute when processing
##   Accounting-Request packets.
##  Possible values&#58; enable, on, true
##  Default value&#58; unset

## =============================================================================
## LOGGING &#40;valid if logfile rotation is enabled&#41;
## =============================================================================

log_level=3
##  Description&#58; Logging level.
##  Possible values&#58; 0, 1, 2, 3
##  Default value&#58; 2

## log_file_main
##  Description&#58; Main logfile path.
##  Possible values&#58; <filename>
##  Default value&#58; STDERR
log_file_main=radius_main.log

## log_file_debug
##  Description&#58; Debug logfile path.
##  Possible values&#58; <filename>
##  Default value&#58; STDERR
log_file_debug=radius_debug.log

## log_file_critical
##  Description&#58; Critical logfile path.
##  Possible values&#58; <filename>
##  Default value&#58; STDERR

rotate_logs=enable
##  Description&#58; Enables rotation of logfiles.
##  Possible values&#58; yes, on, enable
##  Default value&#58; rotation is disabled

max_logfile_size=6485760
##  Description&#58; Maximum logfile size. When logfile size reaches this limit,
##   a rotation is performed.
##  Possible values&#58; a size in bytes
##  Default value&#58; 2485760

max_logfile_count=10
##  Description&#58; Maximum number of logfiles to retain. Valid if logfile rotation
##   is on.
##  Default value&#58; not limited


##radius_card_autoadd=yes
radius_auth_vap=0
radius_ippool_timeout=0
radius_ippool_acct_timeout=0
blocked_pool_name=pppout

banec
Сообщения: 269
Зарегистрирован: Вт сен 11, 2007 09:06

Сообщение banec »

не очень понятна проблема.
Что происходит то подробнее?

xxxupg
Сообщения: 457
Зарегистрирован: Вс май 02, 2010 10:00

Сообщение xxxupg »

радиус сервер продолжает работать в нормальном режиме в плане: авторизовывает ППП клиентов и пишет логи в лог файл
но не пишет по каждому клиенту сессии (вообще не пишет ничего по сессиям)., т.е. если построить диалап по абоненту тестовому (который только что подключился и работает) сессию ППП он на сервере поднимает, а запись про это не делает, если сделать радиусу стоп, а потом запустить заново, всё начинает работать нормально. и сессии есть и записи делает.

banec
Сообщения: 269
Зарегистрирован: Вт сен 11, 2007 09:06

Сообщение banec »

По мониторьте обращения к диску iostat
гляньте в сторону базы.

похожая ситуация проблема с малой производительностью HDD

xxxupg
Сообщения: 457
Зарегистрирован: Вс май 02, 2010 10:00

Сообщение xxxupg »

радиус должен писать чтото в лог файл когда заносит данные в mysql? можно это как -- то проверить по логам?

banec
Сообщения: 269
Зарегистрирован: Вт сен 11, 2007 09:06

Сообщение banec »

радиус не пишет - пишет ядро.
смотрите дебаг файл.
у меня писало в лог SQL но в базе появлялись с задержкой.

xxxupg
Сообщения: 457
Зарегистрирован: Вс май 02, 2010 10:00

Сообщение xxxupg »

самое главное что помогает рестарт не ядра билинга (core) а именно радиус службы..

xxxupg
Сообщения: 457
Зарегистрирован: Вс май 02, 2010 10:00

Сообщение xxxupg »

сегодня снова та-же история, авторизация проходит, но сессию в базу не пишет.

выглядит это так на порту билинга:

Код: Выделить всё

http&#58;//pixs.ru/showimage/biljpeg_5117178_22017320.jpg
сессии определяет нормально, авторизовывает нормано, в базу ничего не пишет, как будто сессии нет...

после рестарта только радиус сервиса происходит такое:

Код: Выделить всё

http&#58;//pixs.ru/showimage/bil2jpeg_2216859_22017324.jpg
в 18:55 рестарт и появляется трафик исходящий...

как можно это отдиагностировать? и из-за чего такое может быть?

Ответить