F5 iRules – If pool is down, then redirect to another VIP

when HTTP_REQUEST {
  if { ( [active_members site2.lab.com-pool-80] < 1 ) } {
     HTTP::redirect http://site3.lab.com/
  }
}
Advertisements

Debug health monitor for a single pool member in F5 LTM

Here’s an old post that shows how to debug bigd that gets you the debugs of all the health monitors that are running on the system. The rule of thumb with debugs is that the files get too large and may have an impact on other important services that may need that extra space.

What if you want to enable the debugs for just one pool member to see what’s going on with the health monitor associated with the pool member?

Monitor logging option is a better approach than debugging the bigd for this purpose.

You can find this setting under Local Traffic > Pools > pool_name > Members > Monitor Logging

Capture

Continue reading

Using curl for troubleshooting

View only response headers

curl -I only retrieves the header of the resource. The ‘I’ is case sensitive.

root@ubnsrv01:/etc/ssl/certs# curl -I https://site3.lab.com
HTTP/1.1 200 OK
Content-Length: 191
Content-Type: text/html
Last-Modified: Thu, 17 Aug 2017 21:14:18 GMT
Accept-Ranges: bytes
ETag: "40d9a1c99d17d31:0"
Server: Microsoft-IIS/7.5
Date: Sat, 02 Sep 2017 22:58:54 GMT

View response headers and content

curl -i includes the HTTP header in the output along with the site content. Since this URL is terminating on an F5, the HTTP header reports that a redirect is configured for this URL but doesn’t redirect it automatically to the URL. The ‘i’ is case sensitive.

Continue reading

Query refused for recursive DNS lookup in Infoblox

I recently configured my lab DNS infoblox server in a grid and setup some authoritative forward-mapping zones on it for my lab web-servers;

The DNS queries for the authoritative zones were working fine;

I then configured the DNS grid with 8.8.8.8 as a forwarder;

Continue reading

How to setup and configure Infoblox vNIOS in EVE-NG

  1. Place the Infoblox DDI KVM image in the below path in EVE-NG.
/opt/unetlab/addons/qemu/linux-vInfoBlox-NIOS-8.1.2
  1. Fix permissions
/opt/unetlab/wrappers/unl_wrapper -a fixpermissions
  1. Open a new lab and add the linux-vInfoBlox-NIOS-8.1.2 node in EVE-NG and assign resources:
1 vCPU, 1536 Memory and 4 interfaces
  1. Start the node. Default username/password is admin/infoblox.

4 Continue reading