Нет статистики

Установка, настройка, поддержка
Ответить
bondarchuk
Сообщения: 12
Зарегистрирован: Вт май 17, 2011 10:56 pm

Нет статистики

Сообщение bondarchuk »

Debian 6.0+abills+freeradius+pppoe

Подключение происходит, интернет раздается, но в мониторинге нет статистики получено/отправлено и
если клиент отключается, сессия все равно висит в билинге.

freeradius -X
FreeRADIUS Version 2.1.10, for host i486-pc-linux-gnu, built on Nov 14 2010 at 20:41:03
Copyright (C) 1999-2009 The FreeRADIUS server project and contributors.
There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE.
You may redistribute copies of FreeRADIUS under the terms of the
GNU General Public License v2.
Starting - reading configuration files ...
including configuration file /etc/freeradius/radiusd.conf
including configuration file /etc/freeradius/proxy.conf
including configuration file /etc/freeradius/clients.conf
including configuration file /etc/freeradius/snmp.conf
including configuration file /etc/freeradius/policy.conf
including files in directory /etc/freeradius/sites-enabled/
including configuration file /etc/freeradius/sites-enabled/default
main {
user = "freerad"
group = "freerad"
allow_core_dumps = no
}
including dictionary file /etc/freeradius/dictionary
main {
prefix = "/usr"
localstatedir = "/var"
logdir = "/var/log/freeradius"
libdir = "/usr/lib/freeradius"
radacctdir = "/var/log/freeradius/radacct"
hostname_lookups = no
max_request_time = 30
cleanup_delay = 5
max_requests = 1024
pidfile = "/var/run/freeradius/freeradius.pid"
checkrad = "/usr/sbin/checkrad"
debug_level = 0
proxy_requests = yes
log {
stripped_names = no
auth = no
auth_badpass = no
auth_goodpass = no
}
security {
max_attributes = 200
reject_delay = 1
status_server = yes
}
}
radiusd: #### Loading Realms and Home Servers ####
proxy server {
retry_delay = 5
retry_count = 3
default_fallback = no
dead_time = 120
wake_all_if_all_dead = no
}
home_server localhost {
ipaddr = 127.0.0.1
port = 1812
type = "auth"
secret = "testing123"
response_window = 20
max_outstanding = 65536
require_message_authenticator = yes
zombie_period = 40
status_check = "status-server"
ping_interval = 30
check_interval = 30
num_answers_to_alive = 3
num_pings_to_alive = 3
revive_interval = 120
status_check_timeout = 4
irt = 2
mrt = 16
mrc = 5
mrd = 30
}
home_server_pool my_auth_failover {
type = fail-over
home_server = localhost
}
realm example.com {
auth_pool = my_auth_failover
}
realm LOCAL {
}
radiusd: #### Loading Clients ####
client localhost {
require_message_authenticator = no
secret = "radsecret"
shortname = "shortname"
}
radiusd: #### Instantiating modules ####
instantiate {
Module: Linked to module rlm_exec
Module: Instantiating module "exec" from file /etc/freeradius/radiusd.conf
exec {
wait = yes
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
Module: Linked to module rlm_expr
Module: Instantiating module "expr" from file /etc/freeradius/radiusd.conf
Module: Linked to module rlm_expiration
Module: Instantiating module "expiration" from file /etc/freeradius/radiusd.conf
expiration {
reply-message = "Password Has Expired "
}
Module: Linked to module rlm_logintime
Module: Instantiating module "logintime" from file /etc/freeradius/radiusd.conf
logintime {
reply-message = "You are calling outside your allowed timespan "
minimum-timeout = 60
}
}
radiusd: #### Loading Virtual Servers ####
server { # from file /etc/freeradius/radiusd.conf
modules {
Module: Checking authorize {...} for more modules to load
Module: Linked to module rlm_preprocess
Module: Instantiating module "preprocess" from file /etc/freeradius/radiusd.conf
preprocess {
huntgroups = "/etc/freeradius/huntgroups"
hints = "/etc/freeradius/hints"
with_ascend_hack = no
ascend_channels_per_line = 23
with_ntdomain_hack = no
with_specialix_jetstream_hack = no
with_cisco_vsa_hack = no
with_alvarion_vsa_hack = no
}
Module: Instantiating module "abills_preauth" from file /etc/freeradius/radiusd.conf
exec abills_preauth {
wait = yes
program = "/usr/abills/libexec/rauth.pl pre_auth"
input_pairs = "request"
output_pairs = "config"
shell_escape = yes
}
Module: Instantiating module "abills_auth" from file /etc/freeradius/radiusd.conf
exec abills_auth {
wait = yes
program = "/usr/abills/libexec/rauth.pl"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
Module: Checking preacct {...} for more modules to load
Module: Instantiating module "abills_acc" from file /etc/freeradius/radiusd.conf
exec abills_acc {
wait = yes
program = "/usr/abills/libexec/racct.pl"
input_pairs = "request"
output_pairs = "reply"
shell_escape = yes
}
Module: Checking post-auth {...} for more modules to load
Module: Instantiating module "abills_postauth" from file /etc/freeradius/radiusd.conf
exec abills_postauth {
wait = yes
program = "/usr/abills/libexec/rauth.pl post_auth"
input_pairs = "request"
output_pairs = "config"
shell_escape = yes
}
} # modules
} # server
radiusd: #### Opening IP addresses and Ports ####
listen {
type = "auth"
ipaddr = *
port = 0
}
listen {
type = "acct"
ipaddr = *
port = 0
}
Listening on authentication address * port 1812
Listening on accounting address * port 1813
Listening on proxy address * port 1814
Ready to process requests.
rad_recv: Access-Request packet from host 127.0.0.1 port 59196, id=185, length=92
Service-Type = Framed-User
Framed-Protocol = PPP
User-Name = "biz001"
CHAP-Challenge = 0x4e733de5c1436da43e681e07df2a39b490a415
CHAP-Password = 0x0a19606a09160e065b5029e082edcdb71c
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
# Executing section authorize from file /etc/freeradius/sites-enabled/default
+- entering group authorize {...}
++[preprocess] returns ok
Exec-Program output: Auth-Type := Accept
Exec-Program-Wait: value-pairs: Auth-Type := Accept
Exec-Program: returned: 0
++[abills_preauth] returns ok
Exec-Program output: Session-Timeout = 1202725, Session-Octets-Limit = 2146435072, PPPD-Downstream-Speed-Limit = 256, Acct-Interim-Interval = 120, User-Name = biz001, PPPD-Upstream-Speed-Limit = 256, Octets-Direction = 0, Framed-IP-Address = 172.16.0.51, Framed-IP-Netmask = 255.255.255.255,
Exec-Program-Wait: value-pairs: Session-Timeout = 1202725, Session-Octets-Limit = 2146435072, PPPD-Downstream-Speed-Limit = 256, Acct-Interim-Interval = 120, User-Name = biz001, PPPD-Upstream-Speed-Limit = 256, Octets-Direction = 0, Framed-IP-Address = 172.16.0.51, Framed-IP-Netmask = 255.255.255.255,
Exec-Program: returned: 0
++[abills_auth] returns 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 /etc/freeradius/sites-enabled/default
Sending Access-Accept of id 185 to 127.0.0.1 port 59196
Session-Timeout = 1202725
Session-Octets-Limit = 2146435072
PPPD-Downstream-Speed-Limit = 256
Acct-Interim-Interval = 120
User-Name = "biz001"
PPPD-Upstream-Speed-Limit = 256
Octets-Direction = Route-IP-No
Framed-IP-Address = 172.16.0.51
Framed-IP-Netmask = 255.255.255.255
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 53022, id=186, length=98
Acct-Session-Id = "4DD2FCAB0A0100"
User-Name = "biz001"
Acct-Status-Type = Start
Service-Type = Framed-User
Framed-Protocol = PPP
Acct-Authentic = RADIUS
NAS-Port-Type = Virtual
Framed-IP-Address = 172.16.0.51
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Acct-Delay-Time = 0
# Executing section preacct from file /etc/freeradius/sites-enabled/default
+- entering group preacct {...}
++[preprocess] returns ok
Exec-Program output:
Exec-Program: returned: 0
++[abills_acc] returns ok
WARNING: Empty accounting section. Using default return values.
Finished request 1.
Cleaning up request 1 ID 186 with timestamp +30
Going to the next request
Waking up in 4.7 seconds.
как понимаю не сыпется аккаутинг, в чем может быть причина?
Последний раз редактировалось bondarchuk Ср май 18, 2011 7:49 am, всего редактировалось 2 раза.

bondarchuk
Сообщения: 12
Зарегистрирован: Вт май 17, 2011 10:56 pm

Re: Нет статистики

Сообщение bondarchuk »

UPDATE: сессии через время в мониторинге пропадают полностью, хотя абонент подключен.

Ответить