Forum Discussion
Rick_77318
Nimbostratus
Feb 05, 2008Filter for FTP access
I am new to iRules and am porting some from 4.x to 9.x. I have the following question.
We have an FTP rule which only allows access to specified clients. In version 4.x it had no event to trigger the rule but in 9.x I believe the rule needs to be triggered by an event (is this a correct assumption?).
when XXX {
if {[IP:addr [IP::client_addr] equals aa.bb.cc.dd]} {
use pool ftp
}
else {
discard
}
}
What is the XXX event I should use to trigger the iRule? (USER_REQUEST?), or am I going about this the wrong way?
Thanks
2 Replies
- Deb_Allen_18Historic F5 Accountyou're on the right track.
The event you are looking for is "CLIENT_ACCEPTED":when CLIENT_ACCEPTED { if {[IP:addr [IP::client_addr] equals aa.bb.cc.dd]} { use pool ftp } else { discard } }
/deb - Rick_77318
Nimbostratus
Perfect - Thanks Deb
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
