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.
kajlasunil
Staff
Staff
Article Id 372429
Description This article describes how to add an extra layer of security to an internal web server exposed to the internet using Virtual IP.
Scope FortiGate.
Solution

On the FortiGate, a captive portal can enforce authentication before users can access the web server.

There are two main scenarios to consider regarding how port forwarding is configured on the firewall.

 

  1. Web-Server running on port 443.
  2. Web-Server running on non-443 port.

 

Scenario 1: When a Web-Server is running on port 443, adding a user group in the firewall policy will prompt the user to enter authentication details on the captive portal page.

 

Captive_443.png

 

When a user is attempting to access the web server using the public IP, the authentication portal is presented.

 

Auth_443.PNG

 

Scenario 2: When a Web-Server is running on a non-443 port, the additional configuration is required on the FortiGate to trigger the captive portal.

 

config user setting

    set auth-cert "ssl_cert"

    set auth-secure-http enable

        config auth-ports

            edit 1

                set port 9191  <- Web-Server listening port.

            next

        end

    end

 

Note: If the above CLI command is not set, the firewall will not trigger the authentication portal.