Forum Discussion
toshi_01_132399
Aug 30, 2013Nimbostratus
mysql ip access control
I would like to do the ip access control by using a irule.
However, I failed in the following way.
pool-allowhost-01 have kept some mysql.
when CLIENT_ACCEPTED {
if { [IP::addr [IP::remote_a...
Kevin_Stewart
Aug 31, 2013Employee
Okay, unless I'm just missing it, the iRule looks fine. Can you add in some logging and report back the results?
when CLIENT_ACCEPTED {
if { not ( [IP::addr [IP::client_addr] equals 192.168.1.0/24] ) and not ( [IP::addr [IP::client_addr] equals 172.20.1.262] ) } {
log local0. "Rejecting client: [IP::client_addr]"
reject
} else {
log local0. "Allowing client: [IP::client_addr]"
}
}
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