Forum Discussion
Can you redirect https//domain.com to https://www.domain.com
I've also seem unusual problems where the default device group for a partition has been CHANGED AFTER the creation of objects in the partition... It doesn't seem clever enough to go round & fix things up when you do that.
H
- Nikoolayy1Jun 25, 2021
MVP
From what I know this feature is for the ASM security policy to learn violations faster like the "trusted ip address" option, bypass the ip intelligence , etc. ,this is why I don't think it is under ip-intelligence. You can check your versions F5 device rest api support by going to https://<YourF5 Ip address>/mgmt/toc as I don't see this option to be in the REST-API under the ASM tab.
If you want to resolve a blocked ip address by the ip intelligence with an automation/REST-API you may try to feed it with a whitelist of the bad ip address as whitelists overide blacklists:
- Daniel_WolfJun 26, 2021
MVP
Hi,
from my knowledge, when using ASM, IP Intelligence can be applied at three levels. Global and per Virtual. These settings are configured in Security ›› Network Firewall : IP Intelligence.
The third level can be configured per Security Policy, this can be configured in Security ›› Application Security : IP Addresses.
The posibility to use a feed list is only available with AFM provisioned.
Also looking at the ToC, as you suggested, I could not find a clue how to add an IP exception to an IP Intelligence Policy that is configured on the level of the ASM policy.
KR
Daniel
- Nikoolayy1Jun 26, 2021
MVP
What you can try if you don't find the REST-API command (as I also couldn't and under another post it was still not found) is to turn off the Ip inteliigence for the asm security policies that you have issues and enable it under the virtual servers with an irule and make data group that will be checked and if the client ip address is not in the data group then use the IP intelligence. Something like whitelist and the Data groups can be managed and updated with REST-API and ansible:
F5 Irule links from where I got the idea:
https://clouddocs.f5.com/api/irules/IP-reputation.html
https://clouddocs.f5.com/api/irules/IP__intelligence.html
https://clouddocs.f5.com/api/irules/class.html
F5 article that you probably know that again shows how to use irule with ip intelligence and the asm module:
example:
when CLIENT_ACCEPTED {
if { [class match [IP::client_addr] equals "whitelist_dg" ] } {
# Do nothing if it matches the witelist
} else {
# Check if the IP reputation list for the client IP is not 0
if {[llength [IP::reputation [IP::client_addr]]] != 0}{
# Drop the connection
drop
}
}
}
- Nikoolayy1Jun 26, 2021
MVP
By the way I have seen similar post for IP address exception not for ip-intelligence but for trusted ip but the idea was the same and the answer was not found how you can do this with REST-API/Ansible :(.
Still to use whitelist feed list that the ASM can check from time to time or trying to populate it with the REST-API maybe a workaround for the issue.