Can I get Loadster’s IP addresses for my whitelist?
Loadster spins up on demand cloud instances to run your load test, so we normally won’t know the IP addresses ahead of time. Most of our customers actually prefer this since it’s best to simulate load from many different locations at once (for a more realistically distributed test), and it allows them to properly exercise load balancers that do round robin IP-based load balancing.
However, if your situation requires that you know Loadster’s IP addresses ahead of time, we might have a solution for you.
When is IP whitelisting necessary?
If you’re testing a private application behind a firewall, you may want to whitelist certain IP addresses to allow the Loadster traffic to reach the application.
Also, some load balancers and web application firewalls (including those made by Cloudflare and Nginx) have a DDoS protection feature that watches for a large flood of traffic from the same IP address, and blocks or throttles subsequent traffic from it.
What are some alternatives to IP whitelisting?
There are a few other things you might want to explore before going to the trouble of requesting fixed Loadster IPs and setting up a whitelist.
- Configure your load balancer or firewall to allow requests with a special header, and then add a
code block at the beginning of your script to set the header globally.
For example,
http.setGlobalHeader('X-Loadster', 'true')
would set a header for Protocol Bots, orbrowser.setGlobalHeader('X-Loadster', 'true')
would set it for Browser Bots. When the bots run your script, all requests will include that header, so your firewall can allow the traffic. - Disable the IP blocking feature on your application firewall temporarily. If it’s a production site, you might get some pushback from your team, but then again if you are load testing in production we’ll assume everyone is on the same page already!
- Host your own Loadster Engine on an IP (or multiple IPs) of your choosing, rather than the on demand Loadster Cloud regions. This may be the easiest option and you’ll have full control of the IPs and environments that way, but it might be prohibitively complicated from an operational standpoint if you are running a large load test that requires many engines.
Can I just whitelist entire AWS or GCP regions?
Since Loadster launches cloud instances on demand from AWS and GCP cloud regions, one option might be to whitelist their entire external IP address ranges.
Whitelisting such a large range has its obvious drawbacks, but if you want to go down that road you could obtain the list of AWS IP Addresses or GCP IP Addresses and simply whitelist all IPs for any cloud region you’re load testing from.
What if I really need to test from a fixed IP address?
If none of the workarounds work for you, please contact help@loadster.app to request a special cluster with a fixed IP address in your region of choice.
Setting this up with our cloud providers incurs some extra cost and complexity, so we might need to pass on the additional costs and/or charge a setup fee, and it might require 1-2 days lead time.