Forum Discussion
iRule based upon username and source IP
Your description is not detailed but I can think of using the F5 table command and to save the APM username session variable (session.logon.last.username) to an irule with the commmand ACCESS::session and the source IP address during the authentication and then to allow the traffic or block it based on if the user matches the bad ip address. The table key can be the username and the value the table IP address that the user used to log in.
https://community.f5.com/t5/technical-articles/the-table-command-examples/ta-p/278490
https://clouddocs.f5.com/api/irules/ACCESS__session.html
https://community.f5.com/t5/technical-articles/advanced-irules-tables/ta-p/290369
Maybe helpfull if issues are seen and for ideas:
https://support.f5.com/csp/article/K23154551
Recent Discussions
Related Content
* 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