Forum Discussion
superd_88943
Nimbostratus
Jul 16, 2014iRule for FTP traffic
Hi all..
Im looking to create the following iRule:
scans for traffic on port 21 (FTP) from source = proxy servers (10.1.1.1 & 10.1.1.2)
and destination: 212.10.10.10 and 212.11.11.11...
superd_88943
Nimbostratus
Jul 17, 2014Iv tried implementing the the following iRule but getting some parse errors. Any idea on where the syntax is wrong?
when CLIENT_ACCEPTED {
if { [[IP::client_addr] equals "10.10.10.10"]] and [[TCP::remote_port] equals "21"] } {
node 10.9.9.9
log local0. "FTP connection"
}
else {
pool side-http
}
}
Another iRule im testing is for all FTP traffic, but for some reason i dont see it triggering
when CLIENT_ACCEPTED {
if {[TCP::remote_port] != 21} {
node 10.9.9.9
log local0. "FTP connection"
}
else {
pool side-http
}
}
Any feedback on either much appreciated!
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