Forum Discussion
Ken_50869
Nimbostratus
Aug 14, 2007Compress content by IP
Hello,
I've created the following iRULE to compress content based on the client's source IP address. However, as soon as I apply the iRULE to the virtual server, client's are no longer able...
hoolio
Cirrostratus
Aug 14, 2007You can check the /var/log/ltm log file for TCL errors generated from your iRule. It's also viewable in the GUI under system >> logs >> local traffic.
You can use the IP::addr command (Click here) to compare IP addresses.
Here's an example:
if {[IP::addr [IP::client_addr]/24 equals 192.168.10.0] \
or [IP::addr [IP::client_addr]/24 equals 192.168.20.0]}{
log local0. "matched for [IP::client_addr]"
COMPRESS::enable
} else {
log local0. "didn't match for [IP::client_addr]"
COMPRESS::disable
}Aaron
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