Forum Discussion
atomicdog_7107
Nimbostratus
Mar 23, 2012Does anyone know why this wouldn't work?
Hey guys I'm trying to create an iRule to log when a specific source port hits a VS... this is what I've created.
when CLIENT_ACCEPTED {
if {[IP::addr[TCP::client_port] equals "...
atomicdog_7107
Nimbostratus
Mar 24, 2012I happened to find this thread and figured it out from that... Thanks Hoolio!
https://devcentral.f5.com/Community/GroupDetails/tabid/1082223/asg/50/aft/1144657/showtab/groupforums/Default.aspx
I just modified it slightly and came up with this:
when CLIENT_ACCEPTED {
Check if client's source port equals 1025 and if so log IP
switch [TCP::client_port] {
"1025"
{
log local0.info "IP and Port [IP::client_addr]:[TCP::client_port]"
}
}
}
I'm still don't totally understand why the former didn't work, if anyone knows why and would like to take the time to explain it to me I sure would appreciate it. Going to read up on 'switches' now. Good Saturday night reading lol.
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