bgbilling 6.0 (1277 от 06.01.2014) схема IPOE+RedBack(SE100).
1) Используем активатор SmartEdgeClipsServiceActivator, при выключенном сервисе в договоре или при отрицательном балансе, сделали так чтобы клиенту выдавался адрес из серого пула (reject-to-accept), но когда клиент переходит в серый пулл биллинг начинает периодически (примерно через 1минуту) слать CoA(sa.radius.disable.attributes) запросы на Redback , на которые приходит NaK т.к парметры уже применены. Скажите как возможно это настроить чтобы биллинг отсылал один пакет и запоминал что сессия в состоянии "reject-to-accept"?
2) Когда клиент перешол в серый-пулл (reject-to-accept), биллинг не продлевает серый адрес по запросам renew, и после истечения времени lease для серого адреса сессия переустанавливаится. Как нибудь возможно настроить чтобы адреса продлевались также как и в белом пуле и сессия держалась постоянно ?
3) В активаторе SmartEdgeClipsServiceActivator не вызывается connectionModify когда отключенный сервис включается из-за этого невозможно убрать политику forward-policy=in:NOAUTH на RedBack при включении сервиса без разрыва сессии. Подскажите как это настраивается ?
const.access.attributes=IP-Interface-Name=CLIENTS;DHCP-Max-Leases=1;Acct-Interim-Interval=900
redirect.attributes=HTTP-Redirect-Profile-Name=NOAUTH;Forward-Policy=in:NOAUTH-IPOE;Acct-Interim-Interval=900
option.1.attributes=Service-Name:1=RSE-SVC-EXT;Service-Options:1=1;Service-Parameter:1=in-Rate=10000 out-Rate=10000 in-Burst=1250000 out-Burst=1250000;Service-Name:2=RSE-SVC-INT;Service-Options:2=1;Service-Parameter:2=in-Rate=10000 out-Rate=10000 in-Burst=1250000 out-Burst=1250000
option.5.attributes=Service-Name:1=RSE-SVC-EXT;Service-Options:1=1;Service-Parameter:1=in-Rate=100000 out-Rate=100000 in-Burst=1250000 out-Burst=1250000;Service-Name:2=RSE-SVC-INT;Service-Options:2=1;Service-Parameter:2=in-Rate=100000 out-Rate=100000 in-Burst=1250000 out-Burst=1250000
radius.realm.default.attributes={@const ... attributes}
radius.realm.default.ipCategories=1
radius.disable.accessCodes=1,2,3,4,10,11,12
radius.disable.ipCategories=3
radius.disable.pattern.attributes=IP-Interface-Name=REJECT;DHCP-Max-Leases=1;{@redirect.attributes}
radius.disable.attributes=IP-Interface-Name=REJECT;DHCP-Max-Leases=1;{@redirect.attributes}
radius.inetOption.1.attributes={@option.1.attributes}
radius.inetOption.5.attributes={@option.5.attributes}
dhcp.option.serverIdentifier=0.0.0.0
dhcp.option.leaseTime=900
dhcp.ipCategories=1
dhcp.disable.ipCategories=3
sa.radius.option.attributesPrefix=option.
sa.radius.connection.attributes=Acct-Session-Id
sa.radius.disable.attributes={@redirect.attributes}
sa.radius.service.closeAttributes=Deactivate-Service-Name:1=RSE-SVC-EXT;Deactivate-Service-Name:2=RSE-SVC-INT
sa.radius.connection.withoutBreak = 1
sa.radius.connection.coa.onEnable = 1
sa.radius.connection.stateModify = 0
radius.serviceName.disable = NOAUTH
radius.connection.checkDuplicate=1
radius.password.verification=0
radius.agent.option.removeHeader=2
radius.agent.option.remoteId.position=0
radius.agent.option.remoteId.length=6
dhcp.connection.closeOnNew=1
dhcp.option82.removeHeader=2
dhcp.option82.agentRemoteId.code=2
dhcp.option82.agentRemoteId.type=0
dhcp.option82.agentRemoteId.position=0
dhcp.option82.agentRemoteId.length=6
dhcp.option82.interfaceId.code=1
#dhcp.option82.interfaceId.type=0
dhcp.option82.interfaceId.position=3
dhcp.option82.interfaceId.length=1
dhcp.option82.vlanId.code=1
dhcp.option82.vlanId.position=2
dhcp.option82.vlanId.length=2
dhcp.deviceSearchMode=0
dhcp.servSearchMode=1
radius.servSearchMode=1
dhcp.renew=1
dhcp.key.pattern=$deviceId:$remoteId:$circuitId
radius.key.pattern=$deviceId:$remoteId:$circuitId
connection.start.fromAccept=1
connection.start.fromUpdate=2
connection.suspend.timeout=1200
connection.close.timeout=1200
connection.finish.timeout=3
session.split.onDeviceState=0
session.split.onTariffOption=1
connection.close.timeout.forceClose=1
connection 01-14/10:36:34 DEBUG [sa-p-13-t-2] EventWorker - Waiting 5000 millis for last future results will done... [120/4793]
connection 01-14/10:36:34 INFO [sa-p-13-t-2] EventWorker - Future is done
connection 01-14/10:36:34 WARN [sa-p-13-t-2] ServiceActivatorDeviceWorker - Task return false
connection 01-14/10:36:34 INFO [sa-p-13-t-2] ServiceActivatorSet - Disconnecting from device
access 01-14/10:36:42 DEBUG [access-p-6-t-1] SessionCountManager - Run SessionCountManager...
connection 01-14/10:37:09 INFO [sa-p-13-t-1] ServiceActivatorSet - Connecting to device
connection 01-14/10:37:09 DEBUG [sa-p-13-t-1] AcknowledgeConsumer - Caught BGInetAccounting:Event[ru.bitel.bgbilling.modules.inet.access.sa.ev
ent.InetSaStateModifyEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 0; deviceId: 3; inetServId: 6; connectionId: 48349; state: 0;
accessCode: 10; timestamp: 1389674229050
connection 01-14/10:37:09 INFO [sa-p-13-t-1] ServiceActivatorDeviceWorker - Do task deviceId: 3; Event[ru.bitel.bgbilling.modules.inet.access
.sa.event.InetSaStateModifyEvent] moduleId: 1; pluginId: no; cid: 1; scid: -1; userId: 0; deviceId: 3; inetServId: 6; connectionId: 48349; sta
te: 0; accessCode: 10; timestamp: 1389674229050
connection 01-14/10:37:09 INFO [sa-p-13-t-1] InetApplication - TariffOptionMap: {}
connection 01-14/10:37:09 INFO [sa-p-13-t-1] InetApplication - OptionSet: [5]
connection 01-14/10:37:09 INFO [sa-p-13-t-1] ServiceActivatorDeviceWorker - Command result event: ServiceActivatorEvent type=2; inetServId: 6
; call: true; oldState: 1; newState: 0; oldOptionSet: ; newOptionSet: 5
connection 01-14/10:37:09 INFO [sa-p-13-t-1] ServiceActivatorDeviceWorker - Processing deviceId:3; command ServiceActivatorEvent type=2; inet
ServId: 6; call: true; oldState: 1; newState: 0; oldOptionSet: ; newOptionSet: 5
connection 01-14/10:37:09 INFO [sa-p-13-t-1] ServiceActivatorSet - Invoking connectionModify
connection 01-14/10:37:09 INFO [sa-p-13-t-1] SmartEdgeServiceActivator - Connection modify: oldState: 1; newState: 0; oldOptionSet: []; newOp
tionSet: [5]
connection 01-14/10:37:09 INFO [sa-p-13-t-1] SmartEdgeServiceActivator - Connection close
connection 01-14/10:37:09 INFO [sa-p-13-t-1] InetDhcpHelperProcessor - Remove connection remove 3:4:26
connection 01-14/10:37:09 INFO [sa-p-13-t-1] SmartEdgeServiceActivator - Connection disable
connection 01-14/10:37:09 INFO [sa-p-13-t-1] SmartEdgeServiceActivator - Send CoA lock:
Packet type: CoA-Request
Identifier: 5
Authenticator: {4C AF 43 48 63 AE 4B 82 BF 97 A9 2F 8D D9 AF 69}
Attributes:
Acct-Interim-Interval=900
Acct-Session-Id=0101FFFF780053DB-52D4BE52
Forward-Policy=in:NOAUTH-IPOE
HTTP-Redirect-Profile-Name=NOAUTH