Forum Discussion
Testing IP redirect in an iRule
Hi Guys,
I want to be able to test an iRule that redirects based on the IP that is detected. Following this guide: https://devcentral.f5.com/articles/the-big-ip-application-security-manager-part-7-geolocation I can block with the ASM just fine using a Custom XFF Header however this applies only to the ASM. When I try to use this with the iRule only logs the actual IP and behaves accordingly to the actual IP and not the Custom XFF header I can test ASM blocks with.
Is there some way that I can simulate an international IP. The test environment does not have internet connectivity so an external proxy is not possible. I had hoped something I could alter in fiddler would do it?
Thanks
1 Reply
Hi,
The Best way is to rely on a custom HTTP header like X-Forwarded-For to insert a fake IP address.
You can't spoof easily an IP address on a TCP segment. Or you can put your computer on the same subnet as the BIG-IP, configure a fake Public IP address and configure the routing table of the BIG-IP accordingly.
But it's not that simple... especially if you would like to test many different IPs
Regards
Yann
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