Forum Discussion
dragonflymr
Cirrostratus
Mar 10, 2015iRule to randomly change source IP
Hi,
Still to new to iRules so I have problem figuring out rule that will simulate clients coming from different geolocations when traffic is generated from limited pool of private ip addresses.
...
StephanManthey
Nacreous
Mar 10, 2015Hi Piotr,
here is a sample iRule to do exactly this:when CLIENT_ACCEPTED {
snat [expr { int(rand()*193) + 1}].[expr { int(rand()*254) + 1}].[expr { int(rand()*254) +1}].[expr { int(rand()*253) +1}]
}
Thanks, Stephan
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