FortiGate
FortiGate Next Generation Firewall utilizes purpose-built security processors and threat intelligence security services from FortiGuard labs to deliver top-rated protection and high performance, including encrypted traffic.
JNDias
Staff
Staff
Article Id 248971
Description

This article describes an example where a real server health checks HTTPS not working, but HTTP or TCP is working. The solution may vary depending on the setup but the concept of configuration and troubleshooting should be the same.

Scope FortiGate v7.0 and v7.2 tested with 7.2.4.
Solution

It is necessary to troubleshoot the connectivity for the server first:

 

  • Try to telnet the server port from the FortiGate.

 

JNDias_0-1678726272062.png

 

 

Case Example:

  • A machine in the same network as the server can open the webpage, but keep in mind the full URL.
  • The server could be configured to only provide a page with the correct path. E.g.: put the IP address of the server 'https://192.168.1.6' in the web browser but it does not open or gets a 'not found' page or any other HTTP error.
  • Although if trying 'https://192.168.1.6/test' it will open correctly.
  • In this particular case an adjustment needs to be made in the monitor.

 

Case Example configuration fix:

It is possible to use the GUI to help configure but for HTTPs, it is necessary to apply additional settings in CLI.

 

  • HTTP Monitor GUI:

 

JNDias_0-1678725362812.png

 

  • HTTPs Monitor GUI:

 

JNDias_1-1678725378491.png

 

  • It is possible to use the 'Edit in CLI' option to compare both:

 

JNDias_3-1678725531340.png

 

  • Copy the config to a notepad.

 

JNDias_4-1678725635356.png

 

  • Do the same 'Edit in CLI' but now for the HTTPs check and adapt the change:

 

JNDias_5-1678725761294.png

 

GUI is designed to be simple and may not have all options available there, check CLI-reference for all options: config firewall ldb-monitor.

 

Additional troubleshooting commands for real server health checks:

 

diagnose debug enable
diagnose firewall vip virtual-server stats list
diagnose firewall vip virtual-server real-server list
diagnose firewall vip realserver list

diagnose firewall vip realserver healthcheck stats show

Related article:
Technical Tip: HTTP health check in virtual servers