Forum Discussion
Douglas_Wilson_
Nimbostratus
Mar 16, 2005Applying rules to Real Media Streams
I'm tossing this out here as a last ditch attempt --
We'd love to be able to filter real media files that are requested through an F5 using rules, but can't figure out a way to do it.
The more granular http rules don't work because this is not HTTP.
The tcp_content rules don't work, because the first few packets exchanged in the Real Media Session are negotiation between the client and the server, and don't include the file name. So the only thing I can think of is trying to come up with a rule that ignores the beginning of the session, and then grabs the file name. I have no idea if this is even possible with the 4.x ruleset. We can't deploy v 9.x for a while for this system (and even then, I don't know if it is possible).
If anyone has any experience with anything like this, suggestions would be appreciated.
Doug
- bknotwell_12713Historic F5 AccountA cut'n'paste from chapter 5 of the reference guide:
assumption: you want an deny what's not allowed approach for streams b class allowedRealStreamFiles '{ "test1.ra" "test2.ram" "zzz.ra" }' replace the 3600 with something from testing b rule realMediaFilter { if(tcp_content contains one of allowedRealStreamFiles) { use pool outboundgateways } else if(tcp_bytes_collected < 3600) { accumulate } else { discard } }
- Douglas_Wilson_
Nimbostratus
sorry to follow up so late -- but thanks a bunch! I got pulled of onto other projects, but we are going to test this in our lab now. I'll let you know how it turns out. - bknotwell_12713Historic F5 AccountAfter re-reading my response, I became worried I wasn't explanatory enough.
- Douglas_Wilson_
Nimbostratus
understood -- we have packet captures in our environment we are basing it on. I'll let you know how it turns out (lab time is hard to get).
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