Forum Discussion
awan_m
Cirrostratus
May 18, 2023allow *.microsoft.com to connect to a virtual server
Hi, i have a VIP that should only be accessable by domain *.microsoft.com - i have AFM provisioned and a DNS resolver . but the Rule cannot take *.microsoft.com as source . is there a way to achie...
awan_m
Cirrostratus
May 18, 2023thanks for the reply - its a specific domain IPs to be able to connect to a VIP that presents an API . the problem with an ip address list is that i will change all the time . i need to resolve the requestors IP to a domain and if its *.XYZ.com the allow it to connect .
Michael__
Nimbostratus
May 19, 2023Hi,
you could try that with an irule, something that way:
when CLIENT_ACCEPTED {
set CLIENTIP [IP::client_addr]
set PTR "[lindex [RESOLV::lookup @1.1.1.1 -ptr $CLIENTIP] 0]"
set PTRreverse "[lindex [RESOLV::lookup @1.1.1.1 -a $PTR] 0]"
if {($CLIENTIP eq $PTRreverse) && ($PTR ends_with ".microsoft.com")}{
log local0. "OK - $CLIENTIP - $PTR - $PTRreverse -"
} else {
log local0. "FAIL - $CLIENTIP - $PTR - $PTRreverse -"
reject
}
}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