Недавно приобрели и поставили 5.3-003. Проблема в том, что при создании пользователя и привязки ему тарифа со static IP в utm5_rfw не прилетает соответствующая директива и в тиблицу IPFW ничего не записывается, однако если на шейпере перезапустить utm5_rfw - правила в таблице появляются. На блокировку работает как надо. Есть подозрение, что косяк где-то в правилах firewall. Правила делал по аналогии с 5.2-008 - там все работало.
Настроена статическая выдача IP-адресов и динамическое шейпирование. UTM стоит на одном сервере, шейпер(ipfw) на другом. В настройках firewall созданы правила по добавлению в table 1 связки IP-скорость для ограничения скорости, в table 2 - для блокировки.
Правила firewall следующие:
1. table 1 add UIP/UBITS BANDWIDTH при установке ширины вх. канала
2. table 1 delete UIP/UBITS при изменении ширины вх. канала
3. table 1 add UIP/UBITS BANDWIDTH при изменении ширины вх. канала
4. table 1 delete UIP/UBITS снятие ограничений на вх. канал
5. table 2 add UIP/UBITS - выключение интернета
6. table 2 delete UIP/UBITS - включение интернета
Логика работы: создаю пользователя, присваиваю ему тарифный план с услугами передача IP-трафика и абонентская плата. Для передачи IP_трафика есть правила динамического шейпирования при входящем трафике (там ничего не делится по временным диапазонам: весь день - одна и та же скорость). После создания записи и включения интернета вручную (положив предварительно кредит) - запись в table 1 rfw не появляется. Если выключить интернет - правило в таблице 2 появляется, при повторном включении - из таблицы 2 правило пропадает.
Стоит на шейпере перезапустить utm5_rfw - все записи в таблице 1 появляются с указанием скорости.
Подскажите в какую сторону копать, т.к. на преыдущей версии (в другой компании) такой проблемы даже не проявлялось.
Код: Выделить всё
##
## /netup/utm5/rfw5.cfg
## UTM5 RFW configuration file
##
## =============================================================================
## MAIN PARAMETERS
## =============================================================================
## rfw_name
## Description: Name of UTM5 rfw by which it is identified when connecting to
## the UTM5 core. The same value must be set in the 'Name' field in the list
## of firewalls in UTM_Admin.
## Possible values: <string>
## Required field
rfw_name=nat1
## core_host
## Description: IP address of the host running UTM5 core.
## Possible values: <IP address>
## Required field
core_host=172.16.0.2
## core_port
## Description: Port where UTM5 core is listening to Stream.
## Possible values: an integer from 1 to 65534
## Required field
core_port=12758
## rfw_login
## Description: Login used to access to the UTM5 core.
## Required field.
rfw_login=nat1
## rfw_password
## Description: Password used to access to the UTM5 core.
## Required field.
rfw_password=
## firewall_type
## Description: Firewall type. Must conform with the 'Type' parameter of the
## firewall with the corresponding name.
## Possible values: local, cisco
## Default value: local
#firewall_type=cisco
## rfw_ssl_type
## Description: SSL connection type. If 'none' is set, the connection is
## unencrypted.
## Possible values: tls1, ssl3, none
## Default value: none
#rfw_ssl_type=none
## sync_flags
## Description: Startup synchronization options. Specified actions will be executed at startup.
## Possible value: enable:disable:shaping:dialup:iptraffic:blocks:users
## E.g.:
## enable - Execute 'Internet ON' rules of startup
## disable - Execute 'Internet OFF' rules of startup
## users - Execute 'User Added' rules of startup
## iptraffic - Execute 'IP-traffic link added' rules of startup
## dialup - Execute 'Dialup link added' rules of startup
## blocks - Execute 'Modified block type' rules of startup
## shaping - Execute 'Setup dynamic shaping' rules of startup
sync_flags=shaping:disable:enable
## =============================================================================
## PARAMETERS THAT ARE VALID WHEN firewall_type=local
## =============================================================================
### firewall_path
## Description: Path to the executable file that performs firewall management.
## Possible values: <name of an executable file>
## Required field
firewall_path=/sbin/ipfw
# sudo_path
## Description: Sudo program path.
## Possible values: <path to an executable file>
## Default value: <unset>
#sudo_path=/usr/bin/sudo
## dont_fork
## Description: If set, firewall rules are applied one-by-one. Recommended when
## using iptables.
## Possible values: yes, enable, true
## Default value: yes
dont_fork=yes
## =============================================================================
## PARAMETERS THAT ARE VALID WHEN firewall_type=cisco
## =============================================================================
## cisco_ip
## Description: IP address the commands are sent to via rsh protocol.
## Possible values: <IP address>
## Required field
#cisco_ip=10.0.0.1
## =============================================================================
## LOGGING
## =============================================================================
## log_level
## Description: Logging level.
## Possible values: 0, 1, 2, 3
## Default value: 1
log_level=3
## log_file_main
## Description: Main logfile path.
## Possible values: <filename>
## Default value: STDERR
log_file_main=/netup/utm5/log/rfw.log
## log_file_debug
## Description: Debug logfile path.
## Possible values: <filename>
## Default value: STDERR
log_file_debug=/netup/utm5/log/rfw.log
## log_file_critical
## Description: Critical logfile path.
## Possible values: <filename>
## Default value: STDERR
log_file_critical=/netup/utm5/log/rfw.log
## rotate_logs
## Description: Enables logfile rotation.
## Possible values: yes, on, enable
## Default value: disabled
## max_logfile_count
## Description: Maximum number of logfiles to retain. Valid if logfile rotation
## is on.
## Possible values: a positive integer
## Default value: not limited
## max_logfile_size
## Description: Maximum logfile size. When logfile size reaches this limit, a
## rotation is performed. Valid if logfile rotation is on.
## Possible values: <size in bytes>
## Default value: 10485760
## pid_file
## Description: PID file path.
## Possible values: <filename>
## Default value: /var/run/utm5_rfw.pid
## =============================================================================
## MISCELLANEOUS
## =============================================================================
## firewall_flush_cmd
## Possible values: <filename>
#firewall_flush_cmd=/usr/sbin/iptables -F
## OBSOLETE. NOT RECOMMENDED TO USE
## Description and default values for these parameters are not provided.
## core_timeout
## Possible values: 5