2.1.3. Lab 3 – HTTP to HTTPS Redirect

Create an HTTP to HTTPS redirect. Additionally, when traffic goes to the HTTPS side the app selection should still work as well as the header stripping.

Important

  • Estimated completion time: 20 minutes
  1. Open Chrome Browser

  2. Enter https://bigip1 into the address bar and hit Enter

  3. Login with username: admin password: admin

  4. Click Local Traffic -> iRules -> iRules List

  5. Click Create button

  6. Enter Name of HTTP_to_HTTPS_iRule

  7. Enter Your Code

  8. Click Finished

  9. Click Local Traffic -> Virtual Servers -> Virtual Server List

  10. Click on http_irules_vip

  11. Click on the Resources tab

  12. Click Manage button for the iRules section

    ../../_images/iRulesManage.png
  13. What should you do here now that we are doing HTTPS?

  14. Click the Finished button

  15. Open the Firefox browser

  16. Click the 3 horizontal line button on the far right of the address bar

  17. Click on HTTPFox (and add it as an plugin), and toggle on - alternatively use Chrome developer tools.

  18. Click the Start button on the HTTPFox window (if using HTTPFox)

  19. Enter http://dvwa.f5lab.com/ and ensure you get there and it is HTTPS

  20. Now enter http://wackopicko.f5lab.com/ and ensure you get there via HTTPS

  21. Finally, enter http://peruggia.f5lab.com/ and ensure you can get to that app via HTTPS

  22. Look at the headers for each of your requests. Did you log them all? What is the value of the Server header? None of this should have changed since the last lab.