Все налаштував, клієтів авторизовує, шейпить, але мозолить мене одна проблема.
Можливо, це і не є проблемою, я просто не досконало розумію принцип роботи радіус сервера, та якщо стартувати демон з ключем -Х, то сипляться що 5 сек наступні повідомлення і з*являється триччі помилка Use of uninitialized value in string at /usr/abills/libexec/racct.pl line 325..
кусок логу з радіуса:
Код: Выделить всё
--- Walking the entire request list ---
Cleaning up request 15 ID 40 with timestamp 4c23d83f
Nothing to do. Sleeping until we see a request.
rad_recv: Accounting-Request packet from host 10.0.0.3:48715, id=41, length=168
Service-Type = Framed-User
Framed-Protocol = PPP
NAS-Port = 114
NAS-Port-Type = Virtual
User-Name = "joli"
Calling-Station-Id = "10.0.252.248"
Called-Station-Id = "10.0.0.3"
Acct-Session-Id = "81000037"
Framed-IP-Address = 10.128.16.255
Acct-Authentic = RADIUS
Event-Timestamp = "Jun 25 2010 01:12:20 EEST"
Acct-Session-Time = 6001
Acct-Input-Octets = 8502561
Acct-Input-Gigawords = 0
Acct-Input-Packets = 91482
Acct-Output-Octets = 67861786
Acct-Output-Gigawords = 0
Acct-Output-Packets = 102317
Acct-Status-Type = Interim-Update
NAS-Identifier = "NAS1"
NAS-IP-Address = 10.0.0.3
Acct-Delay-Time = 0
Processing the preacct section of radiusd.conf
modcall: entering group preacct for request 16
modcall[preacct]: module "preprocess" returns noop for request 16
rlm_acct_unique: Hashing 'NAS-Port = 114,Client-IP-Address = 10.0.0.3,NAS-IP-Address = 10.0.0.3,Acct-Session-Id = "81000037",User-Name = "joli"'
rlm_acct_unique: Acct-Unique-Session-ID = "8243a57ab1a10311".
modcall[preacct]: module "acct_unique" returns ok for request 16
rlm_realm: No '@' in User-Name = "joli", looking up realm NULL
rlm_realm: No such realm "NULL"
modcall[preacct]: module "suffix" returns noop for request 16
acct_users: Matched entry DEFAULT at line 5
modcall[preacct]: module "files" returns ok for request 16
modcall: leaving group preacct (returns ok) for request 16
Processing the accounting section of radiusd.conf
modcall: entering group accounting for request 16
radius_xlat: '/var/log/radius/radacct/10.0.0.3/detail-20100625'
rlm_detail: /var/log/radius/radacct/%{Client-IP-Address}/detail-%Y%m%d expands to /var/log/radius/radacct/10.0.0.3/detail-20100625
modcall[accounting]: module "detail" returns ok for request 16
modcall[accounting]: module "unix" returns noop for request 16
radius_xlat: '/var/log/radius/radutmp'
radius_xlat: 'joli'
modcall[accounting]: module "radutmp" returns ok for request 16
modcall: leaving group accounting (returns ok) for request 16
radius_xlat: '/usr/abills/libexec/racct.pl'
Exec-Program: /usr/abills/libexec/racct.pl
Sending Accounting-Response of id 41 to 10.0.0.3 port 48715
Finished request 16
Going to the next request
--- Walking the entire request list ---
Waking up in 6 seconds...
Use of uninitialized value in string at /usr/abills/libexec/racct.pl line 325.
Use of uninitialized value in string at /usr/abills/libexec/racct.pl line 325.
Use of uninitialized value in string at /usr/abills/libexec/racct.pl line 325.
Код: Выделить всё
if (defined($res)) {
my @pairs = split(/ /, $res);
foreach my $pair (@pairs) {
my ($side, $value) = split(/=/, $pair);
$RAD->{$side} = "$value";

Дуже розраховую на Вашу підтримку та допомогу.
Наперед, дуже вдячний.
ПС Автору великий респект та повага, за те, що, безкоштовністю даного білінгу, дозволяє "встати на ноги" невеликим мережам.