Forum Discussion
Tyson_James
Cirrus
Sep 20, 2018iRule to only allow private networks....
Hi, I have an iRule in place that is supposed to be rejecting all external network traffic coming into an LTM virtual server for a few select administrative pages. Someone on DevCentral had done som...
ItayG_188662
Nimbostratus
Sep 20, 2018Maybe this clients are behind NAT? you can check it by adding log to the iRule:
when HTTP_REQUEST {
switch -glob [string tolower [HTTP::uri]] {
"*/wp-admin/*" -
"*/wp-login.php" -
"*/phpmyadmin/*" -
"*/wp-config.php" {
if { !([class match [IP::client_addr] equals private_net])} {
log local0. "rejected client ip [IP::client_addr]" <-- new added line
reject
}
}
}
}
and check which IP do you see in /var/log/ltm
good luck!
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