Inernet+ Статус

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Inernet+ Статус

Сообщение sash007 » Вс окт 22, 2017 9:01 am

Версия биллинга 0.76.45 свободная!
Тестируем модуль Internet+
Отсутствие реакции на поле статус в карточке абонента! если сервис "приостановление" или "отключен" абонент все равно подключается... только сбрасывает его по billd...

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

CHANGE_STATE DEPOSIT: 147.73 CREDIT: 0 SESSION_SUM: 0 STATUS: 1 SESSION_ID: 1cd915b461894c14 GUEST: 0 Hangup: 1 DURATION

Опнция

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

$conf{INTERNET_STATUS_NEG_DEPOSIT}=1;
тоже никак не влияет!
Что то изменилось???

~AsmodeuS~
Site Admin
Сообщения: 5446
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение ~AsmodeuS~ » Вс окт 22, 2017 9:22 am

$AUTH{accel_ppp}='Auth2';
$ACCT{accel_ppp}='Acct2';

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Вс окт 22, 2017 9:38 am

Эта опция изначально стоит... и для mpd и для accel_ppp

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

our %AUTH = ();
$AUTH{gnugk} = 'Voip_aaa';
$AUTH{accel_ppp}='Auth2';
$AUTH{mpd}='Auth2';

our %ACCT = ();
$ACCT{gnugk} = 'Voip_aaa';
$ACCT{accel_ppp}='Acct2';
$ACCT{mpd}='Acct2';

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Вс окт 22, 2017 6:16 pm

что касаемо INTERNET_STATUS_NEG_DEPOSIT то код просто закомментирован в фале Auth2.pm


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

else {
      #if ($CONF->{INTERNET_STATUS_NEG_DEPOSIT} && $self->{NEG_DEPOSIT_FILTER_ID}) {
        return $self->neg_deposit_filter_former($RAD, $NAS, $self->{NEG_DEPOSIT_FILTER_ID},
          {
            RAD_PAIRS   => $RAD_PAIRS,
            FILTER_TYPE => 'DISABLE',
            MESSAGE     => "Service Disabled $self->{DISABLE}"
          });

~AsmodeuS~
Site Admin
Сообщения: 5446
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение ~AsmodeuS~ » Пн окт 23, 2017 11:27 am

решили убрать эту опцию так как большенство людей и так хотят что то абонентам показать даже если они отключены

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Пн окт 23, 2017 11:42 am

Ну опция то фиг с ним! Но когда статус "отключено" или "приостановлено" не должно же авторизовать и пускать в инет! А оно пускает! Но правда сбрасывается каждые пять минут billd-ом!

~AsmodeuS~
Site Admin
Сообщения: 5446
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение ~AsmodeuS~ » Пн окт 23, 2017 11:45 am

sash007 писал(а):Ну опция то фиг с ним! Но когда статус "отключено" или "приостановлено" не должно же авторизовать и пускать в инет! А оно пускает! Но правда сбрасывается каждые пять минут billd-ом!


должно запускать сессию с флагом гостевая, и устанавливатсья фильтр для блокировки трафика

покажите лог сбросса сессии что там пишет

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Пн окт 23, 2017 12:01 pm

Вот что в логах

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

2017-10-23 14:55:08   LOG_INFO   AUTH   Kirovograd10   CID: 78:54:2e:e1:20:4c GT: 0.00384   NAS_Pppoe/
2017-10-23 14:55:00   LOG_WARNING   HANGUP   Kirovograd10   CHANGE_STATE DEPOSIT: 147.73 CREDIT: 0 SESSION_SUM: 0 STATUS: 1 SESSION_ID: 1cd915b4618c5de6 GUEST: 0 Hangup: 1 DURATION   NAS_Pppoe/
2017-10-23 14:50:08   LOG_INFO   AUTH   Kirovograd10   CID: 78:54:2e:e1:20:4c GT: 0.00885   NAS_Pppoe/
2017-10-23 14:50:03   LOG_INFO   AUTH   Kirovograd10   CID: 78:54:2e:e1:20:4c GT: 0.00621   NAS_Pppoe/
2017-10-23 14:50:00   LOG_WARNING   HANGUP   Kirovograd10   CHANGE_STATE DEPOSIT: 147.73 CREDIT: 0 SESSION_SUM: 0 STATUS: 1 SESSION_ID: 1cd915b4618c5bb0 GUEST: 0 Hangup: 1 DURATION   NAS_Pppoe/
2017-10-23 14:45:08   LOG_INFO   AUTH   Kirovograd10   CID: 78:54:2e:e1:20:4c GT: 0.00607   NAS_Pppoe/
2017-10-23 14:45:00   LOG_WARNING   HANGUP   Kirovograd10   CHANGE_STATE DEPOSIT: 147.73 CREDIT: 0 SESSION_SUM: 0 STATUS: 1 SESSION_ID: 1cd915b4618c5989 GUEST: 0 Hangup: 1 DURATION   NAS_Pppoe/
2017-10-23 14:40:09   LOG_INFO   AUTH   Kirovograd10   CID: 78:54:2e:e1:20:4c GT: 0.01315   NAS_Pppoe/
2017-10-23 14:40:03   LOG_INFO   AUTH   Kirovograd10   CID: 78:54:2e:e1:20:4c GT: 0.00571   NAS_Pppoe/
2017-10-23 14:40:00   LOG_WARNING   HANGUP   Kirovograd10   CHANGE_STATE DEPOSIT: 147.73 CREDIT: 0 SESSION_SUM: 0 STATUS: 1 SESSION_ID: 1cd915b4618c5756 GUEST: 0 Hangup: 1 DURATION

картинку пользователя приложил!
в тарифном плане в поле фильтра негативного депозита стоит просто RAD: и выбран пул негативного депозита!
у пользователей у кого негативный депозит нормально перекидывает в пул!
Вложения
ab1.png
ab1.png (13.92 КБ) 201 просмотр

~AsmodeuS~
Site Admin
Сообщения: 5446
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение ~AsmodeuS~ » Пн окт 23, 2017 3:23 pm

непонятно почему без признака guest сессии

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Ср окт 25, 2017 7:52 am

Ток что проверил! если возвратить юзеров на модуль Dv то приостановление работает в штатном режим... Надо смотреть что может быть не так...

~AsmodeuS~
Site Admin
Сообщения: 5446
Зарегистрирован: Пт янв 28, 2005 3:11 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение ~AsmodeuS~ » Ср окт 25, 2017 9:24 am

можно радиус запрос ?
и завести абонента в демо ?

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Ср окт 25, 2017 10:34 am

Вот сам запрос!

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

Ready to process requests
(125) Received Access-Request Id 1 from 192.168.88.55:49775 to 192.168.88.56:1812 length 144
(125)   User-Name = "Kirovograd10"
(125)   NAS-Identifier = "accel-ppp"
(125)   NAS-IP-Address = 192.168.88.55
(125)   NAS-Port-Type = Virtual
(125)   Service-Type = Framed-User
(125)   Framed-Protocol = PPP
(125)   Calling-Station-Id = "78:54:2e:e1:20:4c"
(125)   Called-Station-Id = "c8:0a:a9:57:4f:0c"
(125)   CHAP-Challenge = 0x709ce3ae5f9902fc24ed6ee26f6bb65a
(125)   CHAP-Password = 0x012e165cbdf944904b1fae77d188bfd963
(125) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default
(125)   authorize {
(125)     [preprocess] = ok
(125)     [mschap] = noop
(125) files: users: Matched entry DEFAULT at line 1
(125)     [files] = ok
(125) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> 'Kirovograd10'
(125) perl:   $RAD_REQUEST{'CHAP-Password'} = &request:CHAP-Password -> '0x012e165cbdf944904b1fae77d188bfd963'
(125) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(125) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(125) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(125) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(125) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '78:54:2e:e1:20:4c'
(125) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(125) perl:   $RAD_REQUEST{'CHAP-Challenge'} = &request:CHAP-Challenge -> '0x709ce3ae5f9902fc24ed6ee26f6bb65a'
(125) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(125) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508926667'
(125) perl:   $RAD_CHECK{'Auth-Type'} = &control:Auth-Type -> 'Perl'
(125) perl:   $RAD_CONFIG{'Auth-Type'} = &control:Auth-Type -> 'Perl'
rlm_perl: authorize Auth-Type: Perl User-Name: Kirovograd10
(125) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(125) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(125) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> 'Kirovograd10'
(125) perl: &request:CHAP-Challenge = $RAD_REQUEST{'CHAP-Challenge'} -> '0x709ce3ae5f9902fc24ed6ee26f6bb65a'
(125) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(125) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508926667'
(125) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(125) perl: &request:CHAP-Password = $RAD_REQUEST{'CHAP-Password'} -> '0x012e165cbdf944904b1fae77d188bfd963'
(125) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(125) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '78:54:2e:e1:20:4c'
(125) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(125) perl: &control:Auth-Type = $RAD_CHECK{'Auth-Type'} -> 'Perl'
(125)     [perl] = ok
(125)   } # authorize = ok
(125) Found Auth-Type = Perl
(125) # Executing group from file /usr/local/etc/raddb/sites-enabled/default
(125)   Auth-Type Perl {
(125) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> 'Kirovograd10'
(125) perl:   $RAD_REQUEST{'CHAP-Password'} = &request:CHAP-Password -> '0x012e165cbdf944904b1fae77d188bfd963'
(125) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(125) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(125) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(125) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(125) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '78:54:2e:e1:20:4c'
(125) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(125) perl:   $RAD_REQUEST{'CHAP-Challenge'} = &request:CHAP-Challenge -> '0x709ce3ae5f9902fc24ed6ee26f6bb65a'
(125) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(125) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508926667'
(125) perl:   $RAD_CHECK{'Auth-Type'} = &control:Auth-Type -> 'Perl'
(125) perl:   $RAD_CONFIG{'Auth-Type'} = &control:Auth-Type -> 'Perl'
rlm_perl: authenticate Auth-Type: Perl User-Name: Kirovograd10
rlm_perl: _auth Auth-Type: Perl User-Name: Kirovograd10
(125) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(125) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(125) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> 'Kirovograd10'
(125) perl: &request:CHAP-Challenge = $RAD_REQUEST{'CHAP-Challenge'} -> '0x709ce3ae5f9902fc24ed6ee26f6bb65a'
(125) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(125) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508926667'
(125) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(125) perl: &request:CHAP-Password = $RAD_REQUEST{'CHAP-Password'} -> '0x012e165cbdf944904b1fae77d188bfd963'
(125) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(125) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '78:54:2e:e1:20:4c'
(125) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(125) perl: &reply:PPPD-Upstream-Speed-Limit = $RAD_REPLY{'PPPD-Upstream-Speed-Limit'} -> '10240'
(125) perl: &reply:PPPD-Downstream-Speed-Limit = $RAD_REPLY{'PPPD-Downstream-Speed-Limit'} -> '10240'
(125) perl: &reply:Session-Timeout = $RAD_REPLY{'Session-Timeout'} -> '556934'
(125) perl: &reply:Framed-IP-Netmask = $RAD_REPLY{'Framed-IP-Netmask'} -> '255.255.0.0'
(125) perl: &reply:Framed-IP-Address = $RAD_REPLY{'Framed-IP-Address'} -> '10.4.6.239'
(125) perl: &reply:Acct-Interim-Interval = $RAD_REPLY{'Acct-Interim-Interval'} -> '300'
(125) perl: &control:Auth-Type = $RAD_CHECK{'Auth-Type'} -> 'Accept'
(125)     [perl] = ok
(125)   } # Auth-Type Perl = ok
(125) # Executing section post-auth from file /usr/local/etc/raddb/sites-enabled/default
(125)   post-auth {
(125) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> 'Kirovograd10'
(125) perl:   $RAD_REQUEST{'CHAP-Password'} = &request:CHAP-Password -> '0x012e165cbdf944904b1fae77d188bfd963'
(125) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(125) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(125) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(125) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(125) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '78:54:2e:e1:20:4c'
(125) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(125) perl:   $RAD_REQUEST{'CHAP-Challenge'} = &request:CHAP-Challenge -> '0x709ce3ae5f9902fc24ed6ee26f6bb65a'
(125) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(125) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508926667'
(125) perl:   $RAD_REPLY{'PPPD-Upstream-Speed-Limit'} = &reply:PPPD-Upstream-Speed-Limit -> '10240'
(125) perl:   $RAD_REPLY{'PPPD-Downstream-Speed-Limit'} = &reply:PPPD-Downstream-Speed-Limit -> '10240'
(125) perl:   $RAD_REPLY{'Acct-Interim-Interval'} = &reply:Acct-Interim-Interval -> '300'
(125) perl:   $RAD_REPLY{'Framed-IP-Address'} = &reply:Framed-IP-Address -> '10.4.6.239'
(125) perl:   $RAD_REPLY{'Framed-IP-Netmask'} = &reply:Framed-IP-Netmask -> '255.255.0.0'
(125) perl:   $RAD_REPLY{'Session-Timeout'} = &reply:Session-Timeout -> '556934'
(125) perl:   $RAD_CHECK{'Auth-Type'} = &control:Auth-Type -> 'Accept'
(125) perl:   $RAD_CONFIG{'Auth-Type'} = &control:Auth-Type -> 'Accept'
rlm_perl: post_auth Auth-Type: Accept Post:  User-Name: Kirovograd10 Q: 2
(125) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(125) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(125) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> 'Kirovograd10'
(125) perl: &request:CHAP-Challenge = $RAD_REQUEST{'CHAP-Challenge'} -> '0x709ce3ae5f9902fc24ed6ee26f6bb65a'
(125) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(125) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508926667'
(125) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(125) perl: &request:CHAP-Password = $RAD_REQUEST{'CHAP-Password'} -> '0x012e165cbdf944904b1fae77d188bfd963'
(125) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(125) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '78:54:2e:e1:20:4c'
(125) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(125) perl: &reply:PPPD-Upstream-Speed-Limit = $RAD_REPLY{'PPPD-Upstream-Speed-Limit'} -> '10240'
(125) perl: &reply:PPPD-Downstream-Speed-Limit = $RAD_REPLY{'PPPD-Downstream-Speed-Limit'} -> '10240'
(125) perl: &reply:Session-Timeout = $RAD_REPLY{'Session-Timeout'} -> '556934'
(125) perl: &reply:Framed-IP-Netmask = $RAD_REPLY{'Framed-IP-Netmask'} -> '255.255.0.0'
(125) perl: &reply:Acct-Interim-Interval = $RAD_REPLY{'Acct-Interim-Interval'} -> '300'
(125) perl: &reply:Framed-IP-Address = $RAD_REPLY{'Framed-IP-Address'} -> '10.4.6.239'
(125) perl: &control:Auth-Type = $RAD_CHECK{'Auth-Type'} -> 'Accept'
(125)     [perl] = ok
(125)   } # post-auth = ok
(125) Sent Access-Accept Id 1 from 192.168.88.56:1812 to 192.168.88.55:49775 length 0
(125)   PPPD-Upstream-Speed-Limit = 10240
(125)   PPPD-Downstream-Speed-Limit = 10240
(125)   Session-Timeout = 556934
(125)   Framed-IP-Netmask = 255.255.0.0
(125)   Acct-Interim-Interval = 300
(125)   Framed-IP-Address = 10.4.6.239
(125) Finished request
Waking up in 4.9 seconds.
(126) Received Accounting-Request Id 1 from 192.168.88.55:8454 to 192.168.88.56:1813 length 199
(126)   User-Name = "Kirovograd10"
(126)   NAS-Identifier = "accel-ppp"
(126)   NAS-IP-Address = 192.168.88.55
(126)   NAS-Port = 725
(126)   NAS-Port-Id = "ppp7"
(126)   NAS-Port-Type = Virtual
(126)   Service-Type = Framed-User
(126)   Framed-Protocol = PPP
(126)   Calling-Station-Id = "78:54:2e:e1:20:4c"
(126)   Called-Station-Id = "c8:0a:a9:57:4f:0c"
(126)   Acct-Status-Type = Start
(126)   Acct-Authentic = RADIUS
(126)   Acct-Session-Id = "1cd915b46191a02d"
(126)   Acct-Session-Time = 0
(126)   Acct-Input-Octets = 0
(126)   Acct-Output-Octets = 0
(126)   Acct-Input-Packets = 0
(126)   Acct-Output-Packets = 0
(126)   Acct-Input-Gigawords = 0
(126)   Acct-Output-Gigawords = 0
(126)   Framed-IP-Address = 10.4.6.239
(126) # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default
(126)   preacct {
(126)     [preprocess] = ok
(126)   } # preacct = ok
(126) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/default
(126)   accounting {
(126) perl:   $RAD_REQUEST{'Acct-Input-Gigawords'} = &request:Acct-Input-Gigawords -> '0'
(126) perl:   $RAD_REQUEST{'Acct-Output-Gigawords'} = &request:Acct-Output-Gigawords -> '0'
(126) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> 'Kirovograd10'
(126) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(126) perl:   $RAD_REQUEST{'NAS-Port'} = &request:NAS-Port -> '725'
(126) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(126) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(126) perl:   $RAD_REQUEST{'Framed-IP-Address'} = &request:Framed-IP-Address -> '10.4.6.239'
(126) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(126) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '78:54:2e:e1:20:4c'
(126) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(126) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(126) perl:   $RAD_REQUEST{'Acct-Status-Type'} = &request:Acct-Status-Type -> 'Start'
(126) perl:   $RAD_REQUEST{'Acct-Input-Octets'} = &request:Acct-Input-Octets -> '0'
(126) perl:   $RAD_REQUEST{'Acct-Output-Octets'} = &request:Acct-Output-Octets -> '0'
(126) perl:   $RAD_REQUEST{'Acct-Session-Id'} = &request:Acct-Session-Id -> '1cd915b46191a02d'
(126) perl:   $RAD_REQUEST{'Acct-Authentic'} = &request:Acct-Authentic -> 'RADIUS'
(126) perl:   $RAD_REQUEST{'Acct-Session-Time'} = &request:Acct-Session-Time -> '0'
(126) perl:   $RAD_REQUEST{'Acct-Input-Packets'} = &request:Acct-Input-Packets -> '0'
(126) perl:   $RAD_REQUEST{'Acct-Output-Packets'} = &request:Acct-Output-Packets -> '0'
(126) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508926667'
(126) perl:   $RAD_REQUEST{'NAS-Port-Id'} = &request:NAS-Port-Id -> 'ppp7'
(126) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_OUTBYTE2"
(126) perl: ERROR:     &request:INTERIUM_OUTBYTE2 = $RAD_REQUEST{'INTERIUM_OUTBYTE2'} -> '0'
(126) perl: &request:Acct-Output-Octets = $RAD_REQUEST{'Acct-Output-Octets'} -> '0'
(126) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> 'Kirovograd10'
(126) perl: &request:Acct-Session-Time = $RAD_REQUEST{'Acct-Session-Time'} -> '0'
(126) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(126) perl: &request:Acct-Output-Gigawords = $RAD_REQUEST{'Acct-Output-Gigawords'} -> '0'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_OUTBYTE"
(126) perl: ERROR:     &request:INTERIUM_OUTBYTE = $RAD_REQUEST{'INTERIUM_OUTBYTE'} -> '0'
(126) perl: &request:Acct-Input-Octets = $RAD_REQUEST{'Acct-Input-Octets'} -> '0'
(126) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(126) perl: &request:Connect-Info = $RAD_REQUEST{'Connect-Info'} -> ''
(126) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(126) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '78:54:2e:e1:20:4c'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INBYTE2"
(126) perl: ERROR:     &request:INBYTE2 = $RAD_REQUEST{'INBYTE2'} -> '0'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "OUTBYTE"
(126) perl: ERROR:     &request:OUTBYTE = $RAD_REQUEST{'OUTBYTE'} -> '0'
(126) perl: &request:Acct-Input-Gigawords = $RAD_REQUEST{'Acct-Input-Gigawords'} -> '0'
(126) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(126) perl: &request:Acct-Authentic = $RAD_REQUEST{'Acct-Authentic'} -> 'RADIUS'
(126) perl: &request:NAS-Port-Id = $RAD_REQUEST{'NAS-Port-Id'} -> 'ppp7'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_INBYTE"
(126) perl: ERROR:     &request:INTERIUM_INBYTE = $RAD_REQUEST{'INTERIUM_INBYTE'} -> '0'
(126) perl: &request:Acct-Output-Packets = $RAD_REQUEST{'Acct-Output-Packets'} -> '0'
(126) perl: &request:NAS-Port = $RAD_REQUEST{'NAS-Port'} -> '725'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INBYTE"
(126) perl: ERROR:     &request:INBYTE = $RAD_REQUEST{'INBYTE'} -> '0'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "OUTBYTE2"
(126) perl: ERROR:     &request:OUTBYTE2 = $RAD_REQUEST{'OUTBYTE2'} -> '0'
(126) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508926667'
(126) perl: &request:Acct-Input-Packets = $RAD_REQUEST{'Acct-Input-Packets'} -> '0'
(126) perl: &request:Acct-Status-Type = $RAD_REQUEST{'Acct-Status-Type'} -> 'Start'
(126) perl: &request:Acct-Session-Id = $RAD_REQUEST{'Acct-Session-Id'} -> '1cd915b46191a02d'
(126) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_INBYTE2"
(126) perl: ERROR:     &request:INTERIUM_INBYTE2 = $RAD_REQUEST{'INTERIUM_INBYTE2'} -> '0'
(126) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(126) perl: &request:Framed-IP-Address = $RAD_REQUEST{'Framed-IP-Address'} -> '10.4.6.239'
(126)     [perl] = ok
(126)   } # accounting = ok
(126) Sent Accounting-Response Id 1 from 192.168.88.56:1813 to 192.168.88.55:8454 length 0
(126) Finished request
(126) Cleaning up request packet ID 1 with timestamp +15

авторизуется как будто простой юзер!
в демке заведу и тариф и пользователя ток демка не тогойт...
Вложения
demo_cr.png
demo_cr.png (5.83 КБ) 184 просмотра
Последний раз редактировалось sash007 Ср окт 25, 2017 11:36 am, всего редактировалось 1 раз.

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Ср окт 25, 2017 11:32 am

а вот радиус запрос-ответ пользователя с отрицательным балансом! видно что передается Filter-ID

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

Ready to process requests
(91) Received Access-Request Id 1 from 192.168.88.55:33596 to 192.168.88.56:1812 length 202
(91)   User-Name = "20partsezda67"
(91)   NAS-Identifier = "accel-ppp"
(91)   NAS-IP-Address = 192.168.88.55
(91)   NAS-Port-Type = Virtual
(91)   Service-Type = Framed-User
(91)   Framed-Protocol = PPP
(91)   Calling-Station-Id = "1c:af:f7:44:2f:53"
(91)   Called-Station-Id = "c8:0a:a9:57:4f:0c"
(91)   ADSL-Agent-Circuit-Id = 0x31302e31302e3131302e36352065746820312f383a313337
(91)   ADSL-Agent-Remote-Id = 0x38432d45412d31422d38362d33372d3438
(91)   CHAP-Challenge = 0x1839513f6fada21f80d0230812e97faa
(91)   CHAP-Password = 0x0116be8c37e60ea562099469cc4d104d02
(91) # Executing section authorize from file /usr/local/etc/raddb/sites-enabled/default
(91)   authorize {
(91)     [preprocess] = ok
(91)     [mschap] = noop
(91) files: users: Matched entry DEFAULT at line 1
(91)     [files] = ok
(91) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> '20partsezda67'
(91) perl:   $RAD_REQUEST{'CHAP-Password'} = &request:CHAP-Password -> '0x0116be8c37e60ea562099469cc4d104d02'
(91) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(91) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(91) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(91) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(91) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '1c:af:f7:44:2f:53'
(91) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(91) perl:   $RAD_REQUEST{'CHAP-Challenge'} = &request:CHAP-Challenge -> '0x1839513f6fada21f80d0230812e97faa'
(91) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(91) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508930735'
(91) perl:   $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} = &request:ADSL-Agent-Circuit-Id -> '0x31302e31302e3131302e36352065746820312f383a313337'
(91) perl:   $RAD_REQUEST{'ADSL-Agent-Remote-Id'} = &request:ADSL-Agent-Remote-Id -> '0x38432d45412d31422d38362d33372d3438'
(91) perl:   $RAD_CHECK{'Auth-Type'} = &control:Auth-Type -> 'Perl'
(91) perl:   $RAD_CONFIG{'Auth-Type'} = &control:Auth-Type -> 'Perl'
rlm_perl: authorize Auth-Type: Perl User-Name: 20partsezda67
(91) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(91) perl: &request:ADSL-Agent-Remote-Id = $RAD_REQUEST{'ADSL-Agent-Remote-Id'} -> '0x38432d45412d31422d38362d33372d3438'
(91) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(91) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(91) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(91) perl: &request:ADSL-Agent-Circuit-Id = $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} -> '0x31302e31302e3131302e36352065746820312f383a313337'
(91) perl: &request:CHAP-Password = $RAD_REQUEST{'CHAP-Password'} -> '0x0116be8c37e60ea562099469cc4d104d02'
(91) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508930735'
(91) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(91) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> '20partsezda67'
(91) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '1c:af:f7:44:2f:53'
(91) perl: &request:CHAP-Challenge = $RAD_REQUEST{'CHAP-Challenge'} -> '0x1839513f6fada21f80d0230812e97faa'
(91) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(91) perl: &control:Auth-Type = $RAD_CHECK{'Auth-Type'} -> 'Perl'
(91)     [perl] = ok
(91)   } # authorize = ok
(91) Found Auth-Type = Perl
(91) # Executing group from file /usr/local/etc/raddb/sites-enabled/default
(91)   Auth-Type Perl {
(91) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> '20partsezda67'
(91) perl:   $RAD_REQUEST{'CHAP-Password'} = &request:CHAP-Password -> '0x0116be8c37e60ea562099469cc4d104d02'
(91) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(91) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(91) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(91) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(91) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '1c:af:f7:44:2f:53'
(91) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(91) perl:   $RAD_REQUEST{'CHAP-Challenge'} = &request:CHAP-Challenge -> '0x1839513f6fada21f80d0230812e97faa'
(91) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(91) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508930735'
(91) perl:   $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} = &request:ADSL-Agent-Circuit-Id -> '0x31302e31302e3131302e36352065746820312f383a313337'
(91) perl:   $RAD_REQUEST{'ADSL-Agent-Remote-Id'} = &request:ADSL-Agent-Remote-Id -> '0x38432d45412d31422d38362d33372d3438'
(91) perl:   $RAD_CHECK{'Auth-Type'} = &control:Auth-Type -> 'Perl'
(91) perl:   $RAD_CONFIG{'Auth-Type'} = &control:Auth-Type -> 'Perl'
rlm_perl: authenticate Auth-Type: Perl User-Name: 20partsezda67
rlm_perl: _auth Auth-Type: Perl User-Name: 20partsezda67
(91) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(91) perl: &request:ADSL-Agent-Remote-Id = $RAD_REQUEST{'ADSL-Agent-Remote-Id'} -> '0x38432d45412d31422d38362d33372d3438'
(91) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(91) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(91) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(91) perl: &request:ADSL-Agent-Circuit-Id = $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} -> '0x31302e31302e3131302e36352065746820312f383a313337'
(91) perl: &request:CHAP-Password = $RAD_REQUEST{'CHAP-Password'} -> '0x0116be8c37e60ea562099469cc4d104d02'
(91) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508930735'
(91) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(91) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> '20partsezda67'
(91) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '1c:af:f7:44:2f:53'
(91) perl: &request:CHAP-Challenge = $RAD_REQUEST{'CHAP-Challenge'} -> '0x1839513f6fada21f80d0230812e97faa'
(91) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(91) perl: &reply:Acct-Interim-Interval = $RAD_REPLY{'Acct-Interim-Interval'} -> '300'
(91) perl: &reply:Filter-Id = $RAD_REPLY{'Filter-Id'} -> 'RAD:'
(91) perl: &reply:Framed-IP-Address = $RAD_REPLY{'Framed-IP-Address'} -> '192.168.252.64'
(91) perl: &control:Auth-Type = $RAD_CHECK{'Auth-Type'} -> 'Accept'
(91)     [perl] = ok
(91)   } # Auth-Type Perl = ok
(91) # Executing section post-auth from file /usr/local/etc/raddb/sites-enabled/default
(91)   post-auth {
(91) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> '20partsezda67'
(91) perl:   $RAD_REQUEST{'CHAP-Password'} = &request:CHAP-Password -> '0x0116be8c37e60ea562099469cc4d104d02'
(91) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(91) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(91) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(91) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(91) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '1c:af:f7:44:2f:53'
(91) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(91) perl:   $RAD_REQUEST{'CHAP-Challenge'} = &request:CHAP-Challenge -> '0x1839513f6fada21f80d0230812e97faa'
(91) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(91) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508930735'
(91) perl:   $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} = &request:ADSL-Agent-Circuit-Id -> '0x31302e31302e3131302e36352065746820312f383a313337'
(91) perl:   $RAD_REQUEST{'ADSL-Agent-Remote-Id'} = &request:ADSL-Agent-Remote-Id -> '0x38432d45412d31422d38362d33372d3438'
(91) perl:   $RAD_REPLY{'Acct-Interim-Interval'} = &reply:Acct-Interim-Interval -> '300'
(91) perl:   $RAD_REPLY{'Framed-IP-Address'} = &reply:Framed-IP-Address -> '192.168.252.64'
(91) perl:   $RAD_REPLY{'Filter-Id'} = &reply:Filter-Id -> 'RAD:'
(91) perl:   $RAD_CHECK{'Auth-Type'} = &control:Auth-Type -> 'Accept'
(91) perl:   $RAD_CONFIG{'Auth-Type'} = &control:Auth-Type -> 'Accept'
rlm_perl: post_auth Auth-Type: Accept Post:  User-Name: 20partsezda67 Q: 2
(91) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(91) perl: &request:ADSL-Agent-Remote-Id = $RAD_REQUEST{'ADSL-Agent-Remote-Id'} -> '0x38432d45412d31422d38362d33372d3438'
(91) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(91) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(91) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(91) perl: &request:ADSL-Agent-Circuit-Id = $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} -> '0x31302e31302e3131302e36352065746820312f383a313337'
(91) perl: &request:CHAP-Password = $RAD_REQUEST{'CHAP-Password'} -> '0x0116be8c37e60ea562099469cc4d104d02'
(91) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508930735'
(91) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(91) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> '20partsezda67'
(91) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '1c:af:f7:44:2f:53'
(91) perl: &request:CHAP-Challenge = $RAD_REQUEST{'CHAP-Challenge'} -> '0x1839513f6fada21f80d0230812e97faa'
(91) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(91) perl: &reply:Acct-Interim-Interval = $RAD_REPLY{'Acct-Interim-Interval'} -> '300'
(91) perl: &reply:Filter-Id = $RAD_REPLY{'Filter-Id'} -> 'RAD:'
(91) perl: &reply:Framed-IP-Address = $RAD_REPLY{'Framed-IP-Address'} -> '192.168.252.64'
(91) perl: &control:Auth-Type = $RAD_CHECK{'Auth-Type'} -> 'Accept'
(91)     [perl] = ok
(91)   } # post-auth = ok
(91) Sent Access-Accept Id 1 from 192.168.88.56:1812 to 192.168.88.55:33596 length 0
(91)   Acct-Interim-Interval = 300
(91)   Filter-Id = "RAD:"
(91)   Framed-IP-Address = 192.168.252.64
(91) Finished request
Waking up in 4.9 seconds.
(92) Received Accounting-Request Id 1 from 192.168.88.55:5574 to 192.168.88.56:1813 length 258
(92)   User-Name = "20partsezda67"
(92)   NAS-Identifier = "accel-ppp"
(92)   NAS-IP-Address = 192.168.88.55
(92)   NAS-Port = 1121
(92)   NAS-Port-Id = "ppp11"
(92)   NAS-Port-Type = Virtual
(92)   Service-Type = Framed-User
(92)   Framed-Protocol = PPP
(92)   Calling-Station-Id = "1c:af:f7:44:2f:53"
(92)   Called-Station-Id = "c8:0a:a9:57:4f:0c"
(92)   ADSL-Agent-Circuit-Id = 0x31302e31302e3131302e36352065746820312f383a313337
(92)   ADSL-Agent-Remote-Id = 0x38432d45412d31422d38362d33372d3438
(92)   Acct-Status-Type = Start
(92)   Acct-Authentic = RADIUS
(92)   Acct-Session-Id = "1cd915b46191bf54"
(92)   Acct-Session-Time = 0
(92)   Acct-Input-Octets = 0
(92)   Acct-Output-Octets = 0
(92)   Acct-Input-Packets = 0
(92)   Acct-Output-Packets = 0
(92)   Acct-Input-Gigawords = 0
(92)   Acct-Output-Gigawords = 0
(92)   Framed-IP-Address = 192.168.252.64
(92) # Executing section preacct from file /usr/local/etc/raddb/sites-enabled/default
(92)   preacct {
(92)     [preprocess] = ok
(92)   } # preacct = ok
(92) # Executing section accounting from file /usr/local/etc/raddb/sites-enabled/default
(92)   accounting {
(92) perl:   $RAD_REQUEST{'Acct-Input-Gigawords'} = &request:Acct-Input-Gigawords -> '0'
(92) perl:   $RAD_REQUEST{'Acct-Output-Gigawords'} = &request:Acct-Output-Gigawords -> '0'
(92) perl:   $RAD_REQUEST{'User-Name'} = &request:User-Name -> '20partsezda67'
(92) perl:   $RAD_REQUEST{'NAS-IP-Address'} = &request:NAS-IP-Address -> '192.168.88.55'
(92) perl:   $RAD_REQUEST{'NAS-Port'} = &request:NAS-Port -> '1121'
(92) perl:   $RAD_REQUEST{'Service-Type'} = &request:Service-Type -> 'Framed-User'
(92) perl:   $RAD_REQUEST{'Framed-Protocol'} = &request:Framed-Protocol -> 'PPP'
(92) perl:   $RAD_REQUEST{'Framed-IP-Address'} = &request:Framed-IP-Address -> '192.168.252.64'
(92) perl:   $RAD_REQUEST{'Called-Station-Id'} = &request:Called-Station-Id -> 'c8:0a:a9:57:4f:0c'
(92) perl:   $RAD_REQUEST{'Calling-Station-Id'} = &request:Calling-Station-Id -> '1c:af:f7:44:2f:53'
(92) perl:   $RAD_REQUEST{'NAS-Identifier'} = &request:NAS-Identifier -> 'accel-ppp'
(92) perl:   $RAD_REQUEST{'NAS-Port-Type'} = &request:NAS-Port-Type -> 'Virtual'
(92) perl:   $RAD_REQUEST{'Acct-Status-Type'} = &request:Acct-Status-Type -> 'Start'
(92) perl:   $RAD_REQUEST{'Acct-Input-Octets'} = &request:Acct-Input-Octets -> '0'
(92) perl:   $RAD_REQUEST{'Acct-Output-Octets'} = &request:Acct-Output-Octets -> '0'
(92) perl:   $RAD_REQUEST{'Acct-Session-Id'} = &request:Acct-Session-Id -> '1cd915b46191bf54'
(92) perl:   $RAD_REQUEST{'Acct-Authentic'} = &request:Acct-Authentic -> 'RADIUS'
(92) perl:   $RAD_REQUEST{'Acct-Session-Time'} = &request:Acct-Session-Time -> '0'
(92) perl:   $RAD_REQUEST{'Acct-Input-Packets'} = &request:Acct-Input-Packets -> '0'
(92) perl:   $RAD_REQUEST{'Acct-Output-Packets'} = &request:Acct-Output-Packets -> '0'
(92) perl:   $RAD_REQUEST{'Event-Timestamp'} = &request:Event-Timestamp -> '1508930735'
(92) perl:   $RAD_REQUEST{'NAS-Port-Id'} = &request:NAS-Port-Id -> 'ppp11'
(92) perl:   $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} = &request:ADSL-Agent-Circuit-Id -> '0x31302e31302e3131302e36352065746820312f383a313337'
(92) perl:   $RAD_REQUEST{'ADSL-Agent-Remote-Id'} = &request:ADSL-Agent-Remote-Id -> '0x38432d45412d31422d38362d33372d3438'
(92) perl: &request:NAS-Identifier = $RAD_REQUEST{'NAS-Identifier'} -> 'accel-ppp'
(92) perl: &request:Acct-Output-Octets = $RAD_REQUEST{'Acct-Output-Octets'} -> '0'
(92) perl: &request:User-Name = $RAD_REQUEST{'User-Name'} -> '20partsezda67'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_OUTBYTE"
(92) perl: ERROR:     &request:INTERIUM_OUTBYTE = $RAD_REQUEST{'INTERIUM_OUTBYTE'} -> '0'
(92) perl: &request:Framed-IP-Address = $RAD_REQUEST{'Framed-IP-Address'} -> '192.168.252.64'
(92) perl: &request:Framed-Protocol = $RAD_REQUEST{'Framed-Protocol'} -> 'PPP'
(92) perl: &request:Service-Type = $RAD_REQUEST{'Service-Type'} -> 'Framed-User'
(92) perl: &request:Event-Timestamp = $RAD_REQUEST{'Event-Timestamp'} -> '1508930735'
(92) perl: &request:NAS-Port-Type = $RAD_REQUEST{'NAS-Port-Type'} -> 'Virtual'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_OUTBYTE2"
(92) perl: ERROR:     &request:INTERIUM_OUTBYTE2 = $RAD_REQUEST{'INTERIUM_OUTBYTE2'} -> '0'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INBYTE"
(92) perl: ERROR:     &request:INBYTE = $RAD_REQUEST{'INBYTE'} -> '0'
(92) perl: &request:NAS-Port = $RAD_REQUEST{'NAS-Port'} -> '1121'
(92) perl: &request:Acct-Input-Gigawords = $RAD_REQUEST{'Acct-Input-Gigawords'} -> '0'
(92) perl: &request:Acct-Input-Octets = $RAD_REQUEST{'Acct-Input-Octets'} -> '0'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_INBYTE"
(92) perl: ERROR:     &request:INTERIUM_INBYTE = $RAD_REQUEST{'INTERIUM_INBYTE'} -> '0'
(92) perl: &request:Acct-Output-Gigawords = $RAD_REQUEST{'Acct-Output-Gigawords'} -> '0'
(92) perl: &request:Acct-Session-Id = $RAD_REQUEST{'Acct-Session-Id'} -> '1cd915b46191bf54'
(92) perl: &request:NAS-IP-Address = $RAD_REQUEST{'NAS-IP-Address'} -> '192.168.88.55'
(92) perl: &request:Acct-Session-Time = $RAD_REQUEST{'Acct-Session-Time'} -> '0'
(92) perl: &request:ADSL-Agent-Remote-Id = $RAD_REQUEST{'ADSL-Agent-Remote-Id'} -> '0x38432d45412d31422d38362d33372d3438'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INTERIUM_INBYTE2"
(92) perl: ERROR:     &request:INTERIUM_INBYTE2 = $RAD_REQUEST{'INTERIUM_INBYTE2'} -> '0'
(92) perl: &request:Called-Station-Id = $RAD_REQUEST{'Called-Station-Id'} -> 'c8:0a:a9:57:4f:0c'
(92) perl: &request:NAS-Port-Id = $RAD_REQUEST{'NAS-Port-Id'} -> 'ppp11'
(92) perl: &request:Acct-Output-Packets = $RAD_REQUEST{'Acct-Output-Packets'} -> '0'
(92) perl: &request:ADSL-Agent-Circuit-Id = $RAD_REQUEST{'ADSL-Agent-Circuit-Id'} -> '0x31302e31302e3131302e36352065746820312f383a313337'
(92) perl: &request:Connect-Info = $RAD_REQUEST{'Connect-Info'} -> ''
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "OUTBYTE"
(92) perl: ERROR:     &request:OUTBYTE = $RAD_REQUEST{'OUTBYTE'} -> '0'
(92) perl: &request:Calling-Station-Id = $RAD_REQUEST{'Calling-Station-Id'} -> '1c:af:f7:44:2f:53'
(92) perl: &request:Acct-Authentic = $RAD_REQUEST{'Acct-Authentic'} -> 'RADIUS'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "INBYTE2"
(92) perl: ERROR:     &request:INBYTE2 = $RAD_REQUEST{'INBYTE2'} -> '0'
(92) perl: ERROR: Failed to create pair - Invalid vendor name in attribute name "OUTBYTE2"
(92) perl: ERROR:     &request:OUTBYTE2 = $RAD_REQUEST{'OUTBYTE2'} -> '0'
(92) perl: &request:Acct-Status-Type = $RAD_REQUEST{'Acct-Status-Type'} -> 'Start'
(92) perl: &request:Acct-Input-Packets = $RAD_REQUEST{'Acct-Input-Packets'} -> '0'
(92)     [perl] = ok
(92)   } # accounting = ok
(92) Finished request
(92) Cleaning up request packet ID 1 with timestamp +16

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Ср окт 25, 2017 12:56 pm

Разобрался!
Там в SQL запросе в файлике Auth2.pm немного недозабирают поля! Он поле internet.disable вообще не спрашивает!

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

--- Auth2.pm.bak   2017-10-25 12:33:27.541166000 +0300
+++ Auth2.pm   2017-10-25 15:52:15.445918000 +0300
@@ -135,6 +135,7 @@
   UNIX_TIMESTAMP(DATE_FORMAT(FROM_UNIXTIME(UNIX_TIMESTAMP()), '%Y-%m-%d')) AS day_begin,
   DAYOFWEEK(FROM_UNIXTIME(UNIX_TIMESTAMP())) AS day_of_week,
   DAYOFYEAR(FROM_UNIXTIME(UNIX_TIMESTAMP())) AS day_of_year,
+  internet.disable,
   tp.max_session_duration,
   tp.payment_type,
   tp.credit_tresshold,



Поправил запрос стало норм!

sash007
Сообщения: 24
Зарегистрирован: Пн ноя 26, 2007 12:14 pm
Контактная информация:

Re: Inernet+ Статус

Сообщение sash007 » Чт окт 26, 2017 8:23 am

А так полнее

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

--- Auth2.pm.bak        2017-10-25 12:33:27.541166000 +0300
+++ Auth2.pm    2017-10-26 11:10:09.329964000 +0300
@@ -135,6 +135,10 @@
   UNIX_TIMESTAMP(DATE_FORMAT(FROM_UNIXTIME(UNIX_TIMESTAMP()), '%Y-%m-%d')) AS day_begin,
   DAYOFWEEK(FROM_UNIXTIME(UNIX_TIMESTAMP())) AS day_of_week,
   DAYOFYEAR(FROM_UNIXTIME(UNIX_TIMESTAMP())) AS day_of_year,
+  internet.disable,
+  internet.join_service,
+  internet.speed AS user_speed,
+  internet.tp_id AS tp_num,
   tp.max_session_duration,
   tp.payment_type,
   tp.credit_tresshold,
@@ -149,7 +153,8 @@
   tp.tp_id,
   tp.active_day_fee,
   tp.neg_deposit_ippool,
-  IF(internet.ip>0, INET_NTOA(internet.ip), 0) AS ip
+  IF(internet.ip>0, INET_NTOA(internet.ip), 0) AS ip,
+  INET_NTOA(internet.netmask) AS netmask
      FROM internet_main internet
      LEFT JOIN tarif_plans tp ON (internet.tp_id=tp.tp_id)
      LEFT JOIN users_nas un ON (un.uid = internet.uid)


Вернуться в «Сообщения об ошибках и поддержка»

Кто сейчас на конференции

Сейчас этот форум просматривают: нет зарегистрированных пользователей и 20 гостей