Hello
I am setting up a freeradius server to authenticate my users with a Mikrotik DHCP server.
I want to redirect some non paying users to a webpage. So I was thinking in using Mikrotik-Mark-Id radius attribute to mangle that users but is seems it is not working.
Radius delivers all attributes but the mikrotik server does nothing with Mikrotik-Mark-Id and Filter-Id attributes. So the queue and dhcp lease are created.
/queue simple pr
Flags: X - disabled, I - invalid, D - dynamic
0 D name="dhcp<00:15:6D:D7:xx:xx/1:0:15:6d:d7:xx:xx/dhcp-xxxx>"
target-addresses=192.168.85.254/32 interface=all parent=none packet-marks=""
direction=both priority=8 queue=default-small/default-small limit-at=512k/512k
max-limit=512k/512k burst-limit=0/0 burst-threshold=0/0 burst-time=0s/0s
total-queue=default-small
/ip dhcp-server lease pr
Flags: X - disabled, R - radius, D - dynamic, B - blocked
ADDRESS MAC-ADDRESS HOST-NAME SERVER RATE-LIMIT STATUS
0 R 192.168.85.254 00:15:6D:D7:xx:xx picostation dhcp-xxx 512k/512k bound
/ip firewall mangle pr
Flags: X - disabled, I - invalid, D - dynamic
Also the debug shows the following
echo: radius,debug,packet Called-Station-Id = "dhcp-xxxx"
echo: radius,debug,packet User-Name = "00:15:6D:xx:xx:xx"
echo: radius,debug,packet User-Password = 0x
echo: radius,debug,packet NAS-Identifier = "xxxxxxx"
echo: radius,debug,packet NAS-IP-Address = 192.168.xxx.6
echo: radius,debug,packet received Access-Accept with id 129 from 192.168.xxx.5:1812
echo: radius,debug,packet Signature = 0x124bab4608fc3be45e6bf797fed4ec29
echo: radius,debug,packet MT-Rate-Limit = "512k/512k"
echo: radius,debug,packet Session-Timeout = 200
echo: radius,debug,packet MT-Mark-Id = "test"
echo: radius,debug,packet Filter-Id = "testing"
echo: radius,debug received reply for 17:4ba5
The question:
Can I use Mikrotik-Mark-Id and Filter-Id freeradius attributes with DHCP?