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.
Vedaant
Staff
Staff
Article Id 294301
Description In some cases, it is possible to reach the FortiGate via ping, but it is not possible to take SSH or Web access(GUI) access to the firewall. This article describes how to troubleshoot this issue.
Scope FortiGate.
Solution

The user is not able to take web and SSH access of the firewall. The user is unable to load web GUI access of FortiGate:


no web gui access.PNG

 

Check the public as well as private IP address of the system and run the debug flow on the FortiGate. In this example, web access will be troubleshooted. The output of the debug flow will be checked.

policy drop new.PNG

 

The debug output shows when the user client (10.9.16.3) tries to access Web GUI access. 

'msg=”iprope_in_check() check failed on policy 0, drop"' is visible, and the request for web access is denied.

This is because host 10.9.16.3 is not added as a trusted host on FortiGate. Administrative traffic policies are created based on the interface 'allowaccess' setting:

 

local-in admin-policies-trusted-hosts1.png
local-in admin-policies-trusted-hosts2.png

  local-in admin-policies-trusted-hosts3.png

 

To fix this issue,  10.9.16.3/32 will be configured as a trusted host.

To configure a trusted host for the admin account:

  • Go to Administrator -> Administrator and select an administrator (for example, Admin).
  • Similar to FortiGates, under the trusted hosts field, define the subnet and the subnet mask from which the admin will log in.
  • Repeat this process for all the available admin accounts.

added trusted host GUI.PNG

 

 

Adding a trusted host using CLI:

 


added trusted host CLI.PNG

 

After adding a trusted host, again, it is possible to try to take Web GUI access to FortiGate. This time, it is possible to access the web GUI of FortiGate successfully.

 

 

able to access web page.PNG

 

When multiple admin users exist in the FortiGate, administrative local traffic policies will be created based on the trusted hosts lists from every admin user:


local-in admin-policies-trusted-hosts4.png

   

local-in admin-policies-trusted-hosts5.png

 

On the other hand, if any of the admin users have no 'trusted hosts' configured, no restrictions will be applied to administrative traffic.