I want to use a centralized freeradius server to authenticate LAN connected computers on my 750UP based on MAC address. My freeradius server is running and reachable. I have tried to create a radius service like:
It depends on how the LAN-connected computers are attached - if they are using PPPoE clients you would already have a PPPoE server configured on the Mikrotik, and these authenticate with username/password.
I don’t want customer router WAN’s to need PPPoE config, just a straight DHCP broadcast/lease with a traffic profile from a radius at the network core relayed back through the Mikrotik. Here’s my setup:
You have nowhere where ethernet traffic is blocked until authorised. At most you can control IP address assignment to the customer router by configuring the DHCP server on the Mikrotik to use RADIUS, the Access-Accept can configure a simple queue in addition to the IP address handed to the customer.
Is it best practice to have the DHCP server pre-authorize with the remote Radius server before allowing the client to connect and give a lease? I guess the radius profile 10M/2M (or whatever) would then push this policy to the MT and it would enforce the rate-limit?
The DHCP server receives a DHCP request from the customer device, issues a RADIUS request based on the DHCP request and will offer a DHCP lease if a RADIUS Access-Accept is received - there is no caching.
I’m not sure how the Mikrotik handles DHCP renews if you change the rate limits, and I recall that there were (maybe still are) issues with DHCP RADIUS accounting.
Regardless of using Mikrotik or anything else you can’t revoke a DHCP issued address until it has completely expired, unlike a PPPoE connection which can be killed at any point, and you have no control over any traffic between clients on the same tower. Big ISPs using DHCP often use a lease time of a few minutes, with caching DHCP proxies to handle the renew traffic locally, and option 82 injection at the edge so the client can be identified independently of the MAC address on their router.
I also recall there is a Juniper white paper discussing PPPoE and IPoE in broadband networks, although it is mainly aimed at DSL / FTTx networks it has some applicability to fixed wireless too so might be worth a search for.