Forum Discussion
monica_74227
Nimbostratus
May 26, 2009Help-inteligent sant iRule
Hey guys,
I write an iRule as the following:
when CLIENT_ACCEPTED {
if {[IP::addr [IP::local_addr] equals 10.96.44.4] and [serverside [UDP::remote_port] equals 53]}{
...
hoolio
Cirrostratus
May 26, 2009Hi,
There are a few syntax errors. The format for the serverside command is:
serverside {command}, not serverside [command]
when CLIENT_ACCEPTED {
if {([IP::addr [IP::local_addr] equals 10.96.44.4] or [IP::addr [IP::local_addr] equals 10.96.44.5]) and [serverside {UDP::remote_port}] == 53}{
snat 211.138.30.66
} elseif {[IP::addr [IP::local_addr] equals 10.96.44.4] and !([serverside {UDP::remote_port}] == 53)}{
snat 211.138.30.67
} elseif {[IP::addr [IP::local_addr] equals 10.96.44.5] and !([serverside {UDP::remote_port}] == 53)}{
snat 211.138.30.68
}
}
I'm not sure with UDP if the server side "connection" has been established in the CLIENT_ACCEPTED event. If you get a runtime error about no serverside connection, can you reply?
Thanks,
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
