Forum Discussion
HELP in writing the irule
i want to allow IP's only from India and Australia to hit my Virtual IP.
All IP's from Australia,
but only specific IP's from India.
I also want to give access to our LAN users on 172.16.0.0/20 to hit the local Virtual IP 172.16.10.10
High appreciated dear experts.
Khan
3 Replies
- Vitaliy_Savrans
Nacreous
Hi, Khan this link will help you https://devcentral.f5.com/questions/geolocation-irule
- Khan_2739
Nimbostratus
I have done this rule, but specific all IP from India are getting allowed.
Irule name: ALLOWED_IPs_INDIA
when CLIENT_ACCEPTED {
Get the country client IP switch [whereis [IP::client_addr] country] { "AUS" - "IN" { set allowed 0 } default { set allowed 1 } }} when HTTP_REQUEST { if { not ( [class match [IP::client_addr] equals ALLOWED_IPs_INDIA] ) } { reject } }
Address group: ALLOWED_IPs_INDIA
- 246631
Nimbostratus
A virtual information processing address (VIPA) is a virtual IP address allocated to several domain names or servers that share an IP address primarily founded on one network border card (NIC). VIPAs are selected to virtual personal servers, websites or every other request residing on one server.
Source :- https://www.techopedia.com/definition/2467/virtual-ip-address-vipa
Note from Admin: this message has been edited to remove a spam link, and the user banned.
Help guide the future of your DevCentral Community!
What tools do you use to collaborate? (1min - anonymous)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