F5 XC EMEA Workshop > Class 4 - API Protection > Advanced Protection Source |
Rate Limiting protection¶
There are multiple options to do Rate Limiting in F5XC. In this lab, we are focusing on API Protection Rate Limiting.
The goal is to rate limit an endpoint at risk because we discovered an attack or it is a shadow API and we are not sure if we should allow or block it.
Enable Rate Limiting from the Security Dashboard¶
Test your Rate Limiting config¶
Run the traffic generator script to simulate traffic
- SSH or WEBSSH to the Jumphost
- Run the script in the /home/ubuntu/api-protection-lab folder
cd /home/ubuntu/api-protection-lab
bash rate-limit.sh sentence-re-$$makeId$$.workshop.emea.f5se.com
- You should see a respone code 429 - Too Many Requests
<html><head><title>Error Page</title></head>
<body>The requested URL was rejected. Please consult with your administrator.<br/><br/>
Your support ID is a8c0fa99-7f85-4c81-b245-2d7d94457f8a<h2>Error 429 - Too Many Requests</h2>F5 site: tn2-lon<br/><br/><a href='javascript:history.back();'>[Go Back]</a></body></html>