Forum Discussion
CIDR range redirection iRule
To achieve this requirement, you can use DNS-based traffic routing. You can configure your DNS server to respond to requests from Azure instances with the IP address of the Azure node and respond to requests from other locations with the IP address of the DC node. Here are the high-level steps to implement this:
Create two A records in your DNS server, one for Azure-Node and another for DC-Node, both pointing to the same domain name (e.g., abc.local).
Determine the IP addresses of the Azure-Node and DC-Node.
Identify the IP address ranges of the Azure instances that should be routed to the Azure-Node. You can find this information in the Azure portal.
Configure your DNS server to respond to requests from the IP address ranges of the Azure instances with the IP address of the Azure-Node. You can do this by creating a DNS zone for the IP address ranges and adding an A record for the abc.local domain pointing to the IP address of the Azure-Node.
Configure your DNS server to respond to requests from all other IP addresses with the IP address of the DC-Node. You can do this by adding an A record for the abc.local domain pointing to the IP address of the DC-Node.
Once you have completed these steps, requests from Azure instances should be routed to the Azure-Node, and requests from other locations should be routed to the DC-Node.
Recent Discussions
Related Content
* 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