Нашел багу.
Код: Выделить всё
#$conf{ng_car}=1;
$conf{mpd_filters}=1;
фильтры и шейп по фильтрам от радиуса приходит.
External Accounting - IPN - фильтров нет, шейпа нет.
linkup|linkdown скрипты не используются.
Код: Выделить всё
#$conf{ng_car}=1;
$conf{mpd_filters}=1;
Код: Выделить всё
Sending Access-Request of id 205 to 127.0.0.1 port 1812
User-Name = "mike"
User-Password = "12121212"
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Framed-Protocol = PPP
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=205, length=534
Session-Timeout = 1226464
Framed-IP-Address = 192.168.20.23
mpd-filter = "1#1=match dst net 172.16.0.0/24"
mpd-filter = "2#1=match src net 172.16.0.0/24"
mpd-filter = "1#2=match dst net 10.100.0.0/30"
mpd-filter = "2#2=match src net 10.100.0.0/30"
mpd-filter = "1#4=match dst net 192.168.20.0/22"
mpd-filter = "2#4=match src net 192.168.20.0/22"
mpd-filter = "1#5=match dst net 10.101.0.0/24"
mpd-filter = "2#5=match src net 10.101.0.0/24"
Framed-IP-Netmask = 255.255.255.255
mpd-limit = "in#1#1=flt1 pass"
mpd-limit = "out#1#1=flt2 pass"
mpd-limit = "out#2#0=all pass"
mpd-limit = "in#2#0=all pass"
Код: Выделить всё
Sending Access-Request of id 9 to 127.0.0.1 port 1812
User-Name = "mike"
User-Password = "12121212"
NAS-IP-Address = 127.0.0.1
NAS-Port = 0
Framed-Protocol = PPP
rad_recv: Access-Accept packet from host 127.0.0.1:1812, id=9, length=184
Session-Timeout = 1226464
Framed-IP-Address = 192.168.20.23
Framed-IP-Netmask = 255.255.255.255
Код: Выделить всё
mpd-limit = "out#2#0=all shape 16777216 4000"
mpd-limit = "in#2#0=all shape 16777216 4000"