Forum Discussion
Brandon
Jan 20, 2023Cirrostratus
irule logging question
I would like the ability to log the IPs that are dropped.
when FLOW_INIT {
set ipaddr [IP::client_addr]
set fromCountry [whereis $ipaddr country]
if { (not[class match $fromCountry equals AnyConnect_VPN_PermitCountryCode_DataGroup] )} {
set vsname [virtual]
# log local0.notice
drop
}
}
Have you tried something like this:
log local0.notice "Denied IP on VIP $vsname : $ipaddr"
Have you tried something like this:
log local0.notice "Denied IP on VIP $vsname : $ipaddr"
- BrandonCirrostratus
thank you works great
- JamesCorreiaNimbostratus
Thanks, I will try it.
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