Forum Discussion
Jacob_Becker_41
Nimbostratus
Jun 06, 2006redirect by ip to pool
I'm a newbie to the irules game and I'm just wondering if its possible to redirect traffic from a ip to a pool. Basically what I want to accomplish is redirect all traffic from port 3306 to a pool, b...
Jacob_Becker_41
Nimbostratus
Jun 07, 2006when using this code
when CLIENT_ACCEPTED {
if { [IP::remote_addr] == $ext_ip and [TCP::local_port] == 3306 } {
log local0.info "accepted connection from [IP::remote_addr]"
pool mysqlcluster
} else {
log local0.info "rejected connection from [IP::remote_addr]"
reject
}
}
where $ext_ip is our ip address I get the following error.
01070151:3: Rule [ext_mysql] error:
line 2: [parse error: PARSE syntax 60 {syntax error in expression " [IP::remote_addr] == $ext_ip and [TCP::local_port] ==...": extra tokens at end of expression}] [{ [IP::remote_addr] == $ext_ip and [TCP::local_port] == 3306 }]
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