Forum Discussion
RoutingLoop_179
Cirrus
Jan 29, 2013my DNS irule - how can i optimise it further or is there a better way?
Hi - i've created an irule losely based on DNS blackhole irules i've seend to rewrite DNS responses.
But my rule basically has to check a client source address against a list of subnets i...
RoutingLoop_179
Cirrus
Feb 12, 2013Yet another thank you - When i was researching/reading about optimising rules, a few posts I came across said you couldn't use switch with datagroups as i was trying to avoid if/elseif/elseif/elseif/elseif logic as suggested, especially as the number of sites grow. But couldn't seem to find a way, this is exactly what I was trying to do and it means i don't have to create loads of datagroups for each different site. Looks like F5 could sell me a place on the irules course next :-).
Regarding the not well formed XML, it seems that comments don't cancel out curly braces - when i removed the commented line it works as expected e.g. this is what didn't work.
if { [set FakeIPv4 [class match -value -- $fqdn equals site1_whitelist]] ne ""} {
if { [class match $fqdn equals site1_whitelist] } {
Client made a DNS request for a Whitelist site.
set Whitelist_Match 1
set FakeIPv4 [class match -value $fqdn equals site1_whitelist]
DNS::return
}
Regards
Adrian
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