Lab 1: Advanced Load Balancer and Origin

In this lab you will create a Application (API) Load Balancer, attach an Origin Pool and enabled Malicious User Detection.

Expected Lab Time: 12 minutes

Task 1: Configure a Load Balancer and Origin Pool

The following steps provide instruction on how to create a Load Balancer, and Origin Pool configured within your namespace. This Load Balancer will be used throughout the course.

  1. In the left top click the F5 ball and navigate to the Web App & API Protection Tile.

    ../_images/shared-001.png
  2. Click on the arrow to the right of Namespace, select your namespace from the list.

    ../_images/shared-002.png
  3. In the left-hand navigation expand Manage and click Load Balancers > HTTP Load Balancers

  4. In the resulting screen click the Add HTTP Load Balancer in the graphic as shown.

    ../_images/shared-003.png

    Note

    You have defaulted to your specific namespace as that is the only namespace to which you have administrative access.

  5. Using the left-hand navigation and in the sections as shown, enter the following data. Values where <namespace> is required, use the name of your given namespace.

    • Metadata:Name ID: <namespace>-lb

    • Basic Configuration: List of Domains: <namespace>.lab-sec.f5demos.com

    • Basic Configuration: Select Type of Load Balancer: HTTP

    • Basic Configuration: Automatically Manage DNS Records: (Check the checkbox)

    • Basic Configuration: HTTP Port: 80

    ../_images/lab1-task1-003.png
  6. In the current window’s left-hand navigation, click Origins. In the adjacent Origins section, under Origin Pools, click Add Item.

    ../_images/lab1-task1-004.png
  7. In the resulting window, use the drop down as shown and click Add Item.

    ../_images/lab1-task1-005.png
  8. In the resulting window, enter <namespace>-origin in the Name field and click Add Item under Origin Servers as shown.

    ../_images/lab1-task1-006.png
  9. In the resulting window, Public DNS Name of Origin Server should be selected for Select Type of Origin Server.

  10. In the DNS Name field enter the following hostname: demobankapi.lab-sec.f5demos.com and then click Apply

    ../_images/lab1-task1-007.png
  11. After returning to the prior window, make sure Port: within the Origin Servers section, under Origin Server Port is configured for 80.

  12. Leave all other values as shown while scrolling to the bottom and click, Continue.

  13. After returning to the next window and confirming the content, click Apply.

    ../_images/lab1-task1-008.png ../_images/lab1-task1-009.png
  14. After returning to the HTTP Load Balancer window, select Common Security Controls on the left, find Malicious User Detection and select Enable from the drop-down.

    ../_images/lab1-task1-011.png

    Note

    This will be used in a later lab.

  15. Scroll to the bottom of the window, click on Save and Exit.

    ../_images/lab1-task1-014.png
  16. Using another browser tab, navigate to the the following URL to confirm the Load Balancer has been configured properly.

    http://<namespace>.lab-sec.f5demos.com/swagger

    ../_images/shared-swagger-intro.png

End of Lab

../_images/labend3.png