EdgeMax User/MAC rate limiting

I am trying to figure out how to rate limit with the EdgeRouter/EdgeSwitch. I know on how to do it via Ports but the issue I have I am wanting to do it via user/mac due to each port can have multiple VMs on it and I want to limit each VMs max throughput.

We don’t usually use Edgerouters and I am not sure if it is possible to restrict by MAC.

They have an article on how to do it by network, maybe it can be done by IP.

Thank you for the quick response.
That seems like it will work. Although quite a bit of command line configuration.
Is it possible to do this under pfsense?

Yes, you can do per IP address rate limiting

okay. I will just use pfsense then.
thank you.