F5 Lab 1.13: Fallback Host

F5 Lab 1.13: Fallback Host

As I mentioned on my last article here about configuring priority group activation, there is also an option to redirect the request to an URL when the pool of servers is not available. But please take a note that this feature only available for virtual server which using HTTP profile so only HTTP based application only.

I haven't mention about profiles on my article, basically profile is a container of configured parameter which used by F5 for recognizing and customizing the application behavior. Many profiles can be choose by user to fulfill application use cases by its protocol.

On this lab, I will try to test fallback host feature for MARKETING_WEB virtual server. The fallback host is https://198.51.100.250/.

When all members of MARKETING_WEB_POOL are down, then the HTTP request to the VS will be redirected to fallback host.

Let's dive in:

1. Navigate to Local Traffic => Virtual Servers => Profiles

2. Create new profiles.

3. Configure new profile. To edit the parameter using our defined value, tick the custom box on the right side. Then click "Finished".

  • Name: The name of profile
  • Proxy Mode: Determines whether the virtual server operates in reverse, explicit, or transparent mode. On this case, I choose Reverse.
  • Parent Profile: The parent of the profile. F5 has been create the parent profile and it can't be deleted. Choose HTTP.
  • Basic Auth Realm: Indicates the realm that is sent to the client when basic HTTP authentication to the virtual server fails. Leave it blank.
  • Fallback Host: Define the URL/host for F5 to redirect the request when all members of the targeted pool are unavailable. I choose to redirect the request to an URL on IP Address 198.51.100.250 It can be another URL like google or other URL.
  • Fallback on Error Codes: Indicates the HTTP error codes from server responses that should trigger a redirection to the fallback host. It can be one HTTP error code or multiple error code. In my case, I'm not specified the HTTP error code.

4. Verify newly created profile.

5. Assign newly created HTTP Profile (Client) to MARKETING_WEB virtual server.

6. Test mark down all pool members by changing pool health monitor to UDP.

7. Test access to MARKETING_WEB virtual server again. It will be redirected to fallback host https://198.51.100.250.

If we check deeply to packet capture on external interface of the F5, there's redirection request from the F5 VIP to the client.

HTTP redirection packet sourced from F5 VIP 198.51.100.2 to client 198.51.100.251 with HTTP status code 302: Redirection Found which redirect the HTTP request to new page https://198.51.100.25.


Reference:


要查看或添加评论,请登录

Deni Ramdani的更多文章

  • Cisco Nexus Lab 1: OSPF Authentication

    Cisco Nexus Lab 1: OSPF Authentication

    Using the same topology as my last lab by integrating Cisco Nexus device and F5 using OSPF routing protocol, I try to…

    2 条评论
  • F5 Lab 1.22 MAC Masquerading

    F5 Lab 1.22 MAC Masquerading

    After configuring HA Group for my F5 HA on my last article here, the next thing is how to optimize the failover in the…

    11 条评论
  • F5 Lab 1.21: HA Group

    F5 Lab 1.21: HA Group

    I have configured HA for my F5 based on this article, but with that configuration F5 will failover only when the active…

  • F5 Lab 1.20: Configuring Forwarding Virtual Server

    F5 Lab 1.20: Configuring Forwarding Virtual Server

    F5 by default is an device which block all traffic until the administrator explicitly allow it. Based on the lab, I…

  • F5 Lab 1.19: Configuring Route-Domain

    F5 Lab 1.19: Configuring Route-Domain

    After I make an update to my lab topology on my last article here, I start to configure route domain in F5 for…

    2 条评论
  • F5 Lab 1.18: Lab Topology Update

    F5 Lab 1.18: Lab Topology Update

    After creating simple lab created which focusing to F5 basic, I have updated my topology to integrate the F5 with…

    1 条评论
  • F5 Lab 1.17: Pool Member/Node Manual Resume

    F5 Lab 1.17: Pool Member/Node Manual Resume

    When deploying a service to F5 by creating virtual server as listener for the traffic, we also define which group of…

  • F5 Lab 1.16: Virtual Server Order of Precedence

    F5 Lab 1.16: Virtual Server Order of Precedence

    There are always many virtual server configured on the F5, it can be configured as very specific source and destination…

  • F5 Lab 1.15: Persistence Profile- Cookie Persistence

    F5 Lab 1.15: Persistence Profile- Cookie Persistence

    On the last lab, I have done lab for persistence based on source and destination address. While on this article I will…

    1 条评论
  • F5 Lab 1.14: Persistence Profile-Source and Destination Address

    F5 Lab 1.14: Persistence Profile-Source and Destination Address

    Beside fallback host feature which I have tried on my last lab and article here, there is also other feature to stick…

社区洞察

其他会员也浏览了