Forum Discussion
Techgeeeg_28888
Nimbostratus
Sep 10, 2015Irule to block users based on mac address
Hi Everyone,
I would like to know from experts that is there a way irule can be used to block the users access to the application based on their mac address. Will this be achievable using irule ...
Hannes_Rapp
Nimbostratus
Sep 10, 2015Hello,
You sure can do it using iRules. Use
LINK::lasthop to return the value of source MAC address. Once you have the value, you can then use a basic comparison against a list of entries in LTM data-group and decide theher the packet will be dropped, rejected or accepted.
https://devcentral.f5.com/wiki/iRules.LINK__lasthop.ashx
Note: if your clients are not in the same VLAN, the value returned by LINK::lasthop command will always be the MAC address of your router interface (or another L3 device you're using to implement cross-VLAN routing).
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects