Forum Discussion
Adding ACL to filter traffic on LTM for incoming Traffic?
Hi,
What's the best way to use ACL on f5 to filter incoming IP's?
I'm using this iRule, but its not working, any other suggestions?
when CLIENT_ACCEPTED { if { not ( [class match [IP::client_addr] equals ALLOWEDIPS] ) } { reject } }
ALLOWEDIPS is a data group list with all the IPs....
2 Replies
- gbam_190768
Cirrus
The proper solution is to use AFM otherwise yes you can use iRules though I would really look into AFM.
- Vijay_E
Cirrus
You can use packet-filters, AFM or iRules. For just a few IP addresses, I would say use iRule. If you are looking for something along the lines of a stateful filtering, AFM is a great solution with packet-filters falling between the 2 solutions.
Your iRule looks good. Use the log statement to make sure the right IP address is being seen by the F5. Sometimes the original IP address may be masked by a proxy of some kind.
when CLIENT_ACCEPTED { if { not ( [class match [IP::client_addr] equals ALLOWEDIPS] ) } { log local0. "[IP::client_addr]" reject } }
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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