PPPoE, Internet, не подсчитывается

Модуль организации Diulup и VPN доступа
Ответить
azudim2
Сообщения: 1
Зарегистрирован: Чт июн 11, 2015 6:11 am

PPPoE, Internet, не подсчитывается

Сообщение azudim2 »

Имеем:
FreeBSD 10.1 (ESXi 5.0 guest)
Freeradius
NAS-сервер: PPPOED (FreeBSD ppp daemon)
Abills 0.57 (включен только модуль DV)

Проблема: трафик по сессии не считается.

Изображение

Если в качестве NAS использовать mikrotik - работает нормально.

Клиент PPPoE - PC Windows7, IP-адрес на соединение приходит и устанавливается (из пула или статик).

Пробовал:
NAS на других серверах (FreeBSD 7.0, FreeeBSD 9.0)
Абиллс на других серверах
NAS на этом сервере, Abills 0.40 на другом
Запуск billd -all ни чего не изменяет.

Лог Internet
Изображение

Лог radiusd -X авторизация

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

Listening on authentication address * port 1812
Listening on accounting address * port 1813
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1 port 41131, id=188, length=120
        User-Name = "bbtest"
        Service-Type = Framed-User
        Framed-Protocol = PPP
        CHAP-Password = 0x018a2c3c4e0e38087fa483f56717de98eb
        CHAP-Challenge = 0x30323630343530393032323139393036
        NAS-IP-Address = 192.168.10.252
        NAS-Identifier = "APPAB"
        Calling-Station-Id = "54:4:a6:b4:b0:d5"
        NAS-Port-Type = Ethernet
        NAS-Port = 5
# Executing section authorize from file /usr/local/etc/raddb/sites-enabled/abills_default
+group authorize {
++[preprocess] = ok
++[mschap] = noop
[files] users: Matched entry DEFAULT at line 38
++[files] = ok
Auth-Type := Accept
rlm_perl: Added pair NAS-IP-Address = 192.168.10.252
rlm_perl: Added pair Service-Type = Framed-User
rlm_perl: Added pair User-Name = bbtest
rlm_perl: Added pair CHAP-Challenge = 0x30323630343530393032323139393036
rlm_perl: Added pair Framed-Protocol = PPP
rlm_perl: Added pair NAS-Identifier = APPAB
rlm_perl: Added pair NAS-Port = 5
rlm_perl: Added pair CHAP-Password = 0x018a2c3c4e0e38087fa483f56717de98eb
rlm_perl: Added pair NAS-Port-Type = Ethernet
rlm_perl: Added pair Calling-Station-Id = 54:4:a6:b4:b0:d5
rlm_perl: Added pair Framed-IP-Address = 10.0.0.150
rlm_perl: Added pair Framed-IP-Netmask = 255.255.255.255
rlm_perl: Added pair Session-Timeout = 1676746
rlm_perl: Added pair Acct-Interim-Interval = 300
rlm_perl: Added pair Auth-Type = Accept
++[perl] = ok
+} # group authorize = ok
Found Auth-Type = Accept
Auth-Type = Accept, accepting the user
  WARNING: Empty post-auth section.  Using default return values.
# Executing section post-auth from file /usr/local/etc/raddb/sites-enabled/abills_default
Sending Access-Accept of id 188 to 127.0.0.1 port 41131
        Framed-IP-Address = 10.0.0.150
        Framed-IP-Netmask = 255.255.255.255
        Session-Timeout = 1676746
        Acct-Interim-Interval = 300
Finished request 0.
Going to the next request
Waking up in 4.9 seconds.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 64049, id=52, length=130
        User-Name = "bbtest"
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-Interface-Id = e8d0:333d:f0f8:ccaa
        Calling-Station-Id = "54:4:a6:b4:b0:d5"
        NAS-IP-Address = 192.168.10.252
        NAS-Identifier = "APPAB"
        NAS-Port-Type = Ethernet
        NAS-Port = 5
        Acct-Status-Type = Start
        Acct-Session-Id = "1393-bbtest1434021254"
        Acct-Delay-Time = 0
# Executing section preacct from file /usr/local/etc/raddb/sites-enabled/abills_default
+group preacct {
++[preprocess] = ok
+} # group preacct = ok
# Executing section accounting from file /usr/local/etc/raddb/sites-enabled/abills_default
+group accounting {
<pre><code>
REPLACE INTO dv_calls
       (status, user_name, started, lupdated, nas_ip_address, nas_port_id, acct_session_id, framed_ip_address, CID, CONNECT_INFO,   nas_id, tp_id,
        uid, join_service)
         values ('1',
        'bbtest',
        FROM_UNIXTIME(UNIX_TIMESTAMP()),
        UNIX_TIMESTAMP(),
        INET_ATON('192.168.10.252'),
        '5',
        '1393-bbtest1434021254',
        INET_ATON('0.0.0.0'),
        '54:4:a6:b4:b0:d5',
        '',
        '1',
        '100', '2',
        '0');
</code></pre>
<pre><code>
DELETE FROM dv_calls WHERE nas_id='1' AND acct_session_id='IP' AND (framed_ip_address=INET_ATON('0.0.0.0') or UNIX_TIMESTAMP()-UNIX_TIMESTAMP(started) > 120 );
</code></pre>
rlm_perl: Added pair NAS-IP-Address = 192.168.10.252
rlm_perl: Added pair Service-Type = Framed-User
rlm_perl: Added pair User-Name = bbtest
rlm_perl: Added pair Acct-Delay-Time = 0
rlm_perl: Added pair Acct-Session-Id = 1393-bbtest1434021254
rlm_perl: Added pair Framed-Protocol = PPP
rlm_perl: Added pair NAS-Identifier = APPAB
rlm_perl: Added pair NAS-Port = 5
rlm_perl: Added pair Acct-Status-Type = Start
rlm_perl: Added pair Framed-Interface-Id = e8d0:333d:f0f8:ccaa
rlm_perl: Added pair Calling-Station-Id = 54:4:a6:b4:b0:d5
rlm_perl: Added pair NAS-Port-Type = Ethernet
++[perl] = ok
+} # group accounting = ok
Sending Accounting-Response of id 52 to 127.0.0.1 port 64049
Finished request 1.
Cleaning up request 1 ID 52 with timestamp +26
Going to the next request
Waking up in 4.9 seconds.
Cleaning up request 0 ID 188 with timestamp +25
Ready to process requests.
и первый пакет, приходящий от NAS

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

rad_recv: Accounting-Request packet from host 127.0.0.1 port 19304, id=124, length=147
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Framed-IP-Address = 10.0.0.150
        Framed-IP-Netmask = 0.0.0.0
        Calling-Station-Id = "54:4:a6:b4:b0:d5"
        NAS-IP-Address = 192.168.10.252
        NAS-Identifier = "APPAB"
        NAS-Port-Type = Ethernet
        NAS-Port = 5
        Acct-Status-Type = Interim-Update
        Acct-Delay-Time = 0
        Acct-Input-Octets = 7494
        Acct-Input-Gigawords = 0
        Acct-Input-Packets = 77
        Acct-Output-Octets = 2471
        Acct-Output-Gigawords = 0
        Acct-Output-Packets = 25
        Acct-Session-Time = 30
# Executing section preacct from file /usr/local/etc/raddb/sites-enabled/abills_default
+group preacct {
++[preprocess] = ok
+} # group preacct = ok
# Executing section accounting from file /usr/local/etc/raddb/sites-enabled/abills_default
+group accounting {
Use of uninitialized value in numeric gt (>) at /usr/abills/libexec/../Abills/mysql/Acct.pm line 67.
Use of uninitialized value in pattern match (m//) at /usr/abills/libexec/../Abills/mysql/Acct.pm line 87.
Use of uninitialized value in concatenation (.) or string at /usr/abills/libexec/../Abills/mysql/Acct.pm line 422.
Use of uninitialized value in concatenation (.) or string at /usr/abills/libexec/../Abills/mysql/Acct.pm line 422.
rlm_perl: Added pair Acct-Input-Gigawords = 0
rlm_perl: Added pair Framed-IP-Address = 10.0.0.150
rlm_perl: Added pair Acct-Delay-Time = 0
rlm_perl: Added pair Acct-Session-Time = 30
rlm_perl: Added pair Framed-Protocol = PPP
rlm_perl: Added pair NAS-Identifier = APPAB
rlm_perl: Added pair Acct-Input-Octets = 7494
rlm_perl: Added pair Acct-Status-Type = Interim-Update
rlm_perl: Added pair Calling-Station-Id = 54:4:a6:b4:b0:d5
rlm_perl: Added pair NAS-IP-Address = 192.168.10.252
rlm_perl: Added pair Service-Type = Framed-User
rlm_perl: Added pair Framed-IP-Netmask = 0.0.0.0
rlm_perl: Added pair Acct-Output-Gigawords = 0
rlm_perl: Added pair Acct-Input-Packets = 77
rlm_perl: Added pair NAS-Port = 5
rlm_perl: Added pair Acct-Output-Octets = 2471
rlm_perl: Added pair Acct-Output-Packets = 25
rlm_perl: Added pair NAS-Port-Type = Ethernet
++[perl] = ok
+} # group accounting = ok
Sending Accounting-Response of id 124 to 127.0.0.1 port 19304
Finished request 2.
Cleaning up request 2 ID 124 with timestamp +56
Going to the next request
Ready to process requests.
Я понимаю, что возможно лучше будет использовать MPD, но все работало и в один момент перестало.. все крутилось на одном сервере FreeBSD 7.0, Abills 0.40 лет 6-7 без перенастройки.. Единственное, что изменилось - с железа переехали на Виртуалку ESXi 5.0.

Ответить