Не передаются пары (attr-down=PPPD-Downstream-Speed-Limit)

Установка, настройка, поддержка
Ответить
hybrid2k3
Сообщения: 12
Зарегистрирован: Вт мар 22, 2011 1:23 pm

Не передаются пары (attr-down=PPPD-Downstream-Speed-Limit)

Сообщение hybrid2k3 » Ср июл 25, 2018 6:57 am

Все привет коллеги. Подскажите с вопросом.Не передаются пары attr-down=PPPD-Downstream-Speed-Limit
attr-up=PPPD-Upstream-Speed-Limit, соответственно не режется скорость у пользаков.Чего имеем:
  • CENTOS7 +accel-pppd
  • Лог Авторизации и аккаунтинга

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

Sending Access-Accept of id 1 to 127.0.0.1 port 55592
        Session-Timeout = 569509
        MS-MPPE-Send-Key = 0x8b543acd688f68df7ca626f98d666518
        MS-MPPE-Encryption-Types = 0x00000006
        MS-MPPE-Encryption-Policy = 0x00000001
        Acct-Interim-Interval = 60
        MS-MPPE-Recv-Key = 0x904fb9a9407b998743c6a0a6900f5002
        MS-CHAP2-Success = 0x01533d31463033424534443830393344413031324643373246374334353232364633443037333632444536
        Framed-IP-Address = 192.168.1.221
Finished request 0.
Going to the next request
Waking up in 4.8 seconds.
rad_recv: Accounting-Request packet from host 127.0.0.1 port 43960, id=1, length=180
        User-Name = "test"
        NAS-Identifier = "accel-ppp"
        NAS-IP-Address = 127.0.0.1
        NAS-Port = 0
        NAS-Port-Type = Virtual
        Tunnel-Type:0 = PPTP
        Service-Type = Framed-User
        Framed-Protocol = PPP
        Calling-Station-Id = "172.16.82.21"
        Called-Station-Id = "172.16.82.10"
        Acct-Status-Type = Start
        Acct-Authentic = RADIUS
        Acct-Session-Id = "1534ee7faeb1c2ab"
        Acct-Session-Time = 0
        Acct-Input-Octets = 0
        Acct-Output-Octets = 0
        Acct-Input-Packets = 0
        Acct-Output-Packets = 0
        Acct-Input-Gigawords = 0
        Acct-Output-Gigawords = 0
        Framed-IP-Address = 192.168.1.221
# Executing section preacct from file /usr/local/freeradius/etc/raddb/sites-enabled/abills_default
+group preacct {
++[preprocess] = ok
+} # group preacct = ok
# Executing section accounting from file /usr/local/freeradius/etc/raddb/sites-enabled/abills_default
+group accounting {
rlm_perl: Added pair Acct-Input-Octets = 0
rlm_perl: Added pair NAS-Port-Type = Virtual
rlm_perl: ERROR: Failed to create pair INTERIUM_OUTBYTE = 0
rlm_perl: Added pair Acct-Session-Id = 1534ee7faeb1c2ab
rlm_perl: Added pair Acct-Output-Gigawords = 0
rlm_perl: ERROR: Failed to create pair INBYTE2 = 0
rlm_perl: Added pair Service-Type = Framed-User
rlm_perl: ERROR: Failed to create pair INTERIUM_INBYTE2 = 0
rlm_perl: Added pair Tunnel-Type = PPTP
rlm_perl: Added pair Called-Station-Id = 172.16.82.10
rlm_perl: ERROR: Failed to create pair INTERIUM_OUTBYTE2 = 0
rlm_perl: Added pair Acct-Authentic = RADIUS
rlm_perl: Added pair Acct-Status-Type = Start
rlm_perl: Added pair Connect-Info =
rlm_perl: Added pair Acct-Output-Packets = 0
rlm_perl: ERROR: Failed to create pair INTERIUM_INBYTE = 0
rlm_perl: ERROR: Failed to create pair OUTBYTE2 = 0
rlm_perl: Added pair NAS-IP-Address = 127.0.0.1
rlm_perl: Added pair Acct-Output-Octets = 0
rlm_perl: ERROR: Failed to create pair OUTBYTE = 0
rlm_perl: Added pair Acct-Session-Time = 0
rlm_perl: Added pair Calling-Station-Id = 172.16.82.21
rlm_perl: Added pair Framed-Protocol = PPP
rlm_perl: Added pair User-Name = test
rlm_perl: Added pair NAS-Identifier = accel-ppp
rlm_perl: Added pair Acct-Input-Gigawords = 0
rlm_perl: Added pair Framed-IP-Address = 192.168.1.221
rlm_perl: Added pair Acct-Input-Packets = 0
rlm_perl: ERROR: Failed to create pair INBYTE = 0
rlm_perl: Added pair NAS-Port = 0
++[perl] = ok
  • Словари

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

/usr/local/share/accel-ppp/radius/dictionary

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

# Limit session traffic
ATTRIBUTE Session-Octets-Limit 227 integer
# What to assume as limit - 0 in+out, 1 in, 2 out, 3 max(in,out)
ATTRIBUTE Octets-Direction 228 integer
# Connection Speed Limit
ATTRIBUTE PPPD-Upstream-Speed-Limit 230 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit 231 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-1 232 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-1 233 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-2 234 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-2 235 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-3 236 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-3 237 integer
ATTRIBUTE Acct-Interim-Interval 85 integer
ATTRIBUTE Acct-Input-Gigawords    52      integer
ATTRIBUTE Acct-Output-Gigawords   53      integer
  • /usr/local/freeradius/etc/raddb/dictionary

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

# Limit session traffic
ATTRIBUTE Session-Octets-Limit 227 integer
# What to assume as limit - 0 in+out, 1 in, 2 out, 3 max(in,out)
ATTRIBUTE Octets-Direction 228 integer
# Connection Speed Limit
ATTRIBUTE PPPD-Upstream-Speed-Limit 230 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit 231 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-1 232 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-1 233 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-2 234 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-2 235 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-3 236 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-3 237 integer
ATTRIBUTE Acct-Interim-Interval 85 integer
ATTRIBUTE Acct-Input-Gigawords    52      integer
  • Accel-ppp.conf

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

#ABillS 2018-07-18
[modules]
log_file
radius
ippool
pptp
shaper
pppoe
auth_mschap_v2
auth_pap
auth_chap_md5
auth_mschap_v1
chap-secrets
sigchld
pppd_compat
#shaper_tbf

[core]
log-error=/var/log/accel-ppp/core.log
thread-count=1

#[common]
#single-session=replace
#sid-case=upper
#sid-source=seq

[radius]
dictionary=/usr/local/share/accel-ppp/radius/dictionary
nas-identifier=accel-ppp
nas-ip-address=127.0.0.1
#server=127.0.0.1,secretpass,auth-port=1812,acct-port=1813,req-limit=50,fail-timeout=0,max-fail=10,weight=1
#dae-server=:3799,secretpass
auth-server=127.0.0.1:1812,secretpass
acct-server=127.0.0.1:1813,secretpass
dae-server=127.0.0.1:3799,secretpass
verbose=100
##attr-tunnel-type=NAS-Identifier
gw-ip-address=192.168.1.1

##[ipoe]
##verbose=100
##interface=eth2,mode=L2,start=dhcpv4,shared=1,ifcfg=1
##gw-ip-address=10.0.0.1/24
# attr-dhcp-client-ip
##attr-dhcp-lease-time=Acct-Interim-Interval
##attr-dhcp-router-ip=DHCP-Router-IP-Address
##attr-dhcp-mask=DHCP-Mask
##lease-time=600
##max-lease-time=86400
##proxy-arp=1
##username=lua:username
##lua-file=/etc/accel-ppp.lua
##nas-identifier=accel-ipoe
#l4-redirect-on-reject=600
#l4-redirect-ip-pool=pool1
#l4-redirect-ipset=l4-redirect
[pptp]
#bind=172.16.82.10
verbose=1
mppe=allow
echo-interval=30

[ppp]
verbose=1
min-mtu=1400
mtu=1492
mru=1492
#ccp=0
#sid-case=lower
mppe=allow
#ipv4=require
#lcp-echo-interval=3
#lcp-echo-failure=9

[pppoe]
interface=eno1
#nas-identifier=accel-pppoe
#ac-name=xxx
#service-name=yyy
#pado-delay=0
#pado-delay=0,100:100,200:200,-1:500
#ifname-in-sid=called-sid
#tr101=1
verbose=1


[client-ip-range]
172.16.0.0/16

[dns]
#dns1=8.8.8.8

[log]
log-file=/var/log/accel-ppp/accel-ppp.log
log-emerg=/var/log/accel-ppp/emerg.log
log-fail-file=/var/log/accel-ppp/auth-fail.log
copy=1
color=1
#per-user-dir=per_user
#per-session-dir=per_session
#per-session=1
level=100
shaper]
##attr=Filter-Id
#down-burst-factor=0.1
#up-burst-factor=1.0
#latency=50
#mpu=0
#mtu=0
#r2q=10
#quantum=1500
#moderate-quantum=1
#hightspeed shaper
##ifb=ifb0
##cburst=1534
#up-limiter=police
#down-limiter=htb
#low speed shaper
#up-limiter=police
#down-limiter=tbftbf
#leaf-qdisc=sfq perturb 10
#leaf-qdisc=fq_codel [limit PACKETS] [flows NUMBER] [target TIME] [interval TIME] [quantum BYTES] [[no]ecn]
#rate-multiplier=1
#fwmark=1
attr-down=PPPD-Downstream-Speed-Limit
attr-up=PPPD-Upstream-Speed-Limit
verbose=1

#[pppd-compat]
#ip-up=/etc/ppp/ip-up
#ip-down=/etc/ppp/ip-down
#radattr-prefix=/var/run/radattr
#verbose=1

[cli]
verbose=100
telnet=127.0.0.1:2000
tcp=127.0.0.1:2001
password=secretpass

[snmp]
master=0
agent-name=accel-ppp

[connlimit]
limit=10/min
burst=3
timeout=60

  • Тарифные план создал unlimited,т.е везде нули где ограничения, интервал - полные сутки
Может быть что-то в 7 версии надо прописать еще ? У меня в продакшене 5 Абилс с такими настройками работает. Благодарю если кто-то подскажет.
P.S Если сделать вручную переконфигурацию шейпера - /usr/abills/libexec/billd checkspeed accel_ppp=1 то скорость у пользаков начинает резаться до переподключения.

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

Re: Не передаются пары (attr-down=PPPD-Downstream-Speed-Limit)

Сообщение ~AsmodeuS~ » Ср июл 25, 2018 10:15 am

2 радиус ?

посмотрите на старте подгружает ли словарь и какие права доступа н словарь


потом попробуйте

/usr/local/freeradius/sbin/radiusd -X


и покажите весь вывод

hybrid2k3
Сообщения: 12
Зарегистрирован: Вт мар 22, 2011 1:23 pm

Re: Не передаются пары (attr-down=PPPD-Downstream-Speed-Limit)

Сообщение hybrid2k3 » Ср июл 25, 2018 10:31 am

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

 ll /usr/local/freeradius/etc/raddb/dictionary
-rw-r-----. 1 freerad freerad 1631 Jul 18 10:48 /usr/local/freeradius/etc/raddb/dictionary

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

 ll /usr/local/share/accel-ppp/radius/dictionary
-rw-r--r--. 1 root root 6101 Jul 25 11:05 /usr/local/share/accel-ppp/radius/dictionary
Судя по строке

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

including dictionary file /usr/local/freeradius/etc/raddb/dictionary
словарь подгружает.
Вывод /usr/local/freeradius/sbin/radiusd -X

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

radiusd: FreeRADIUS Version 2.2.10, for host x86_64-unknown-linux-gnu, built on Jul 18 2018 at 10:45:52
Copyright (C) 1999-2015 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.
For more information about these matters, see the file named COPYRIGHT.
Starting - reading configuration files ...
including configuration file /usr/local/freeradius/etc/raddb/radiusd.conf
including configuration file /usr/local/freeradius/etc/raddb/clients.conf
including files in directory /usr/local/freeradius/etc/raddb/modules/
including configuration file /usr/local/freeradius/etc/raddb/modules/soh
including configuration file /usr/local/freeradius/etc/raddb/modules/redis
including configuration file /usr/local/freeradius/etc/raddb/modules/rediswho
including configuration file /usr/local/freeradius/etc/raddb/modules/krb5
including configuration file /usr/local/freeradius/etc/raddb/modules/linelog
including configuration file /usr/local/freeradius/etc/raddb/modules/cui
including configuration file /usr/local/freeradius/etc/raddb/modules/smsotp
including configuration file /usr/local/freeradius/etc/raddb/modules/files
including configuration file /usr/local/freeradius/etc/raddb/modules/attr_rewrite
including configuration file /usr/local/freeradius/etc/raddb/modules/realm
including configuration file /usr/local/freeradius/etc/raddb/modules/logintime
including configuration file /usr/local/freeradius/etc/raddb/modules/otp
including configuration file /usr/local/freeradius/etc/raddb/modules/ntlm_auth
including configuration file /usr/local/freeradius/etc/raddb/modules/mac2ip
including configuration file /usr/local/freeradius/etc/raddb/modules/always
including configuration file /usr/local/freeradius/etc/raddb/modules/pap
including configuration file /usr/local/freeradius/etc/raddb/modules/wimax
including configuration file /usr/local/freeradius/etc/raddb/modules/radutmp
including configuration file /usr/local/freeradius/etc/raddb/modules/passwd
including configuration file /usr/local/freeradius/etc/raddb/modules/sqlcounter_expire_on_login
including configuration file /usr/local/freeradius/etc/raddb/modules/perl
including configuration file /usr/local/freeradius/etc/raddb/modules/mac2vlan
including configuration file /usr/local/freeradius/etc/raddb/modules/exec
including configuration file /usr/local/freeradius/etc/raddb/modules/policy
including configuration file /usr/local/freeradius/etc/raddb/modules/attr_filter
including configuration file /usr/local/freeradius/etc/raddb/modules/detail
including configuration file /usr/local/freeradius/etc/raddb/modules/sradutmp
including configuration file /usr/local/freeradius/etc/raddb/modules/preprocess
including configuration file /usr/local/freeradius/etc/raddb/modules/ippool
including configuration file /usr/local/freeradius/etc/raddb/modules/detail.log
including configuration file /usr/local/freeradius/etc/raddb/modules/inner-eap
including configuration file /usr/local/freeradius/etc/raddb/modules/mschap
including configuration file /usr/local/freeradius/etc/raddb/modules/etc_group
including configuration file /usr/local/freeradius/etc/raddb/modules/cache
including configuration file /usr/local/freeradius/etc/raddb/modules/smbpasswd
including configuration file /usr/local/freeradius/etc/raddb/modules/echo
including configuration file /usr/local/freeradius/etc/raddb/modules/unix
including configuration file /usr/local/freeradius/etc/raddb/modules/counter
including configuration file /usr/local/freeradius/etc/raddb/modules/dhcp_sqlippool
including configuration file /usr/local/freeradius/etc/raddb/sql/mysql/ippool-dhcp.conf
including configuration file /usr/local/freeradius/etc/raddb/modules/replicate
including configuration file /usr/local/freeradius/etc/raddb/modules/radrelay
including configuration file /usr/local/freeradius/etc/raddb/modules/dynamic_clients
including configuration file /usr/local/freeradius/etc/raddb/modules/sql_log
including configuration file /usr/local/freeradius/etc/raddb/modules/opendirectory
including configuration file /usr/local/freeradius/etc/raddb/modules/ldap
including configuration file /usr/local/freeradius/etc/raddb/modules/acct_unique
including configuration file /usr/local/freeradius/etc/raddb/modules/chap
including configuration file /usr/local/freeradius/etc/raddb/modules/detail.example.com
including configuration file /usr/local/freeradius/etc/raddb/modules/checkval
including configuration file /usr/local/freeradius/etc/raddb/modules/pam
including configuration file /usr/local/freeradius/etc/raddb/modules/expiration
including configuration file /usr/local/freeradius/etc/raddb/modules/expr
including configuration file /usr/local/freeradius/etc/raddb/modules/digest
including configuration file /usr/local/freeradius/etc/raddb/sql.conf
including configuration file /usr/local/freeradius/etc/raddb/policy.conf
including configuration file /usr/local/freeradius/etc/raddb/sites-enabled/abills_default
main {
	user = "freerad"
	group = "freerad"
	allow_core_dumps = no
}
including dictionary file /usr/local/freeradius/etc/raddb/dictionary
main {
	name = "radiusd"
	prefix = "/usr/local/freeradius"
	localstatedir = "/var"
	sbindir = "/usr/local/freeradius/sbin"
	logdir = "/usr/local/freeradius/var/log"
	run_dir = "/var/run/radiusd"
	libdir = "/usr/local/freeradius/lib"
	radacctdir = "/usr/local/freeradius/var/log/radacct"
	hostname_lookups = no
	max_request_time = 30
	cleanup_delay = 5
	max_requests = 512000
	pidfile = "/var/run/radiusd/radiusd.pid"
	checkrad = "/usr/local/freeradius/sbin/checkrad"
	debug_level = 0
	proxy_requests = no
 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 ####
radiusd: #### Loading Clients ####
radiusd: #### Instantiating modules ####
 instantiate {
 Module: Linked to module rlm_expiration
 Module: Instantiating module "expiration" from file /usr/local/freeradius/etc/raddb/modules/expiration
  expiration {
  	reply-message = "Password Has Expired  "
  }
 Module: Linked to module rlm_logintime
 Module: Instantiating module "logintime" from file /usr/local/freeradius/etc/raddb/modules/logintime
  logintime {
  	reply-message = "You are calling outside your allowed timespan  "
  	minimum-timeout = 60
  }
 Module: Linked to module rlm_sql
 Module: Instantiating module "sql" from file /usr/local/freeradius/etc/raddb/sql.conf
  sql {
  	driver = "rlm_sql_mysql"
  	server = "localhost"
  	port = ""
  	login = "abills"
  	password = "rhtyntktr"
  	radius_db = "abills"
  	read_groups = yes
  	sqltrace = no
  	sqltracefile = "/usr/local/freeradius/var/log/sqltrace.sql"
  	readclients = yes
  	deletestalesessions = yes
  	num_sql_socks = 5
  	lifetime = 0
  	max_queries = 0
  	sql_user_name = ""
  	default_user_profile = ""
  	nas_query = "SET sql_mode=''; SET sql_mode=''; SELECT ip, INET_NTOA(ip), CONCAT('NAS_', id), nas_type, DECODE(mng_password, 'test12345678901234567890') FROM nas GROUP BY ip"
  	authorize_check_query = ""
  	authorize_group_check_query = ""
  	authorize_group_reply_query = ""
  	accounting_onoff_query = ""
  	accounting_update_query = ""
  	accounting_update_query_alt = ""
  	accounting_start_query = ""
  	accounting_start_query_alt = ""
  	accounting_stop_query = ""
  	accounting_stop_query_alt = ""
  	connect_failure_retry_delay = 60
  	simul_count_query = ""
  	simul_verify_query = ""
  	postauth_query = ""
  	safe-characters = "@abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789.-_: /"
  }
rlm_sql (sql): Driver rlm_sql_mysql (module rlm_sql_mysql) loaded and linked
rlm_sql (sql): Attempting to connect to abills@localhost:/abills
rlm_sql (sql): starting 0
rlm_sql (sql): Attempting to connect rlm_sql_mysql #0
rlm_sql_mysql: Starting connect to MySQL server for #0
rlm_sql (sql): Connected new DB handle, #0
rlm_sql (sql): starting 1
rlm_sql (sql): Attempting to connect rlm_sql_mysql #1
rlm_sql_mysql: Starting connect to MySQL server for #1
rlm_sql (sql): Connected new DB handle, #1
rlm_sql (sql): starting 2
rlm_sql (sql): Attempting to connect rlm_sql_mysql #2
rlm_sql_mysql: Starting connect to MySQL server for #2
rlm_sql (sql): Connected new DB handle, #2
rlm_sql (sql): starting 3
rlm_sql (sql): Attempting to connect rlm_sql_mysql #3
rlm_sql_mysql: Starting connect to MySQL server for #3
rlm_sql (sql): Connected new DB handle, #3
rlm_sql (sql): starting 4
rlm_sql (sql): Attempting to connect rlm_sql_mysql #4
rlm_sql_mysql: Starting connect to MySQL server for #4
rlm_sql (sql): Connected new DB handle, #4
rlm_sql (sql): Processing generate_sql_clients
rlm_sql (sql) in generate_sql_clients: query is SET sql_mode=''; SET sql_mode=''; SELECT ip, INET_NTOA(ip), CONCAT('NAS_', id), nas_type, DECODE(mng_password, 'test12345678901234567890') FROM nas GROUP BY ip
rlm_sql (sql): Reserving sql socket id: 4
rlm_sql (sql): Read entry nasname=127.0.0.1,shortname=NAS_2,secret=secretpass
rlm_sql (sql): Adding client 127.0.0.1 (NAS_2, server=<none>) to clients list
rlm_sql (sql): Released sql socket id: 4
 }
radiusd: #### Loading Virtual Servers ####
server { # from file /usr/local/freeradius/etc/raddb/radiusd.conf
 modules {
  Module: Creating Auth-Type = Perl
 Module: Checking authenticate {...} for more modules to load
 Module: Linked to module rlm_pap
 Module: Instantiating module "pap" from file /usr/local/freeradius/etc/raddb/modules/pap
  pap {
  	encryption_scheme = "auto"
  	auto_header = no
  }
 Module: Linked to module rlm_mschap
 Module: Instantiating module "mschap" from file /usr/local/freeradius/etc/raddb/modules/mschap
  mschap {
  	use_mppe = yes
  	require_encryption = no
  	require_strong = no
  	with_ntdomain_hack = no
  	allow_retry = yes
  }
 Module: Linked to module rlm_perl
 Module: Instantiating module "perl" from file /usr/local/freeradius/etc/raddb/modules/perl
  perl {
  	module = "/usr/abills/libexec/rlm_perl.pl"
  	func_authorize = "authorize"
  	func_authenticate = "authenticate"
  	func_accounting = "accounting"
  	func_preacct = "preacct"
  	func_checksimul = "checksimul"
  	func_detach = "detach"
  	func_xlat = "xlat"
  	func_pre_proxy = "pre_proxy"
  	func_post_proxy = "post_proxy"
  	func_post_auth = "post_auth"
  	func_recv_coa = "recv_coa"
  	func_send_coa = "send_coa"
  }
 Module: Checking authorize {...} for more modules to load
 Module: Linked to module rlm_preprocess
 Module: Instantiating module "preprocess" from file /usr/local/freeradius/etc/raddb/modules/preprocess
  preprocess {
  	huntgroups = "/usr/local/freeradius/etc/raddb/huntgroups"
  	hints = "/usr/local/freeradius/etc/raddb/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
  }
reading pairlist file /usr/local/freeradius/etc/raddb/huntgroups
reading pairlist file /usr/local/freeradius/etc/raddb/hints
 Module: Linked to module rlm_files
 Module: Instantiating module "files" from file /usr/local/freeradius/etc/raddb/modules/files
  files {
  	usersfile = "/usr/local/freeradius/etc/raddb/users"
  	acctusersfile = "/usr/local/freeradius/etc/raddb/acct_users"
  	preproxy_usersfile = "/usr/local/freeradius/etc/raddb/preproxy_users"
  	compat = "no"
  }
reading pairlist file /usr/local/freeradius/etc/raddb/users
reading pairlist file /usr/local/freeradius/etc/raddb/acct_users
reading pairlist file /usr/local/freeradius/etc/raddb/preproxy_users
 Module: Checking preacct {...} for more modules to load
 Module: Checking accounting {...} for more modules to load
 Module: Checking post-auth {...} for more modules to load
 } # 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
Ready to process requests.

sergey2018
Сообщения: 8
Зарегистрирован: Ср май 30, 2018 5:36 am

Re: Не передаются пары (attr-down=PPPD-Downstream-Speed-Limit)

Сообщение sergey2018 » Ср июл 25, 2018 10:37 am

hybrid2k3 писал(а):
Ср июл 25, 2018 6:57 am
Все привет коллеги. Подскажите с вопросом.Не передаются пары attr-down=PPPD-Downstream-Speed-Limit
attr-up=PPPD-Upstream-Speed-Limit, соответственно не режется скорость у пользаков.Чего имеем:
  • CENTOS7 +accel-pppd
  • Словари

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

/usr/local/share/accel-ppp/radius/dictionary

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

# Limit session traffic
ATTRIBUTE Session-Octets-Limit 227 integer
# What to assume as limit - 0 in+out, 1 in, 2 out, 3 max(in,out)
ATTRIBUTE Octets-Direction 228 integer
# Connection Speed Limit
ATTRIBUTE PPPD-Upstream-Speed-Limit 230 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit 231 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-1 232 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-1 233 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-2 234 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-2 235 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-3 236 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-3 237 integer
ATTRIBUTE Acct-Interim-Interval 85 integer
ATTRIBUTE Acct-Input-Gigawords    52      integer
ATTRIBUTE Acct-Output-Gigawords   53      integer
тут есть: ATTRIBUTE Acct-Output-Gigawords 53 integer
  • /usr/local/freeradius/etc/raddb/dictionary

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

# Limit session traffic
ATTRIBUTE Session-Octets-Limit 227 integer
# What to assume as limit - 0 in+out, 1 in, 2 out, 3 max(in,out)
ATTRIBUTE Octets-Direction 228 integer
# Connection Speed Limit
ATTRIBUTE PPPD-Upstream-Speed-Limit 230 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit 231 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-1 232 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-1 233 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-2 234 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-2 235 integer
ATTRIBUTE PPPD-Upstream-Speed-Limit-3 236 integer
ATTRIBUTE PPPD-Downstream-Speed-Limit-3 237 integer
ATTRIBUTE Acct-Interim-Interval 85 integer
ATTRIBUTE Acct-Input-Gigawords    52      integer

а тут его нет (ATTRIBUTE Acct-Output-Gigawords 53 integer)

hybrid2k3
Сообщения: 12
Зарегистрирован: Вт мар 22, 2011 1:23 pm

Re: Не передаются пары (attr-down=PPPD-Downstream-Speed-Limit)

Сообщение hybrid2k3 » Ср июл 25, 2018 10:45 am

Добавил, но увы, так и не передаются.

Ответить