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.
mle2802
Staff
Staff
Article Id 328916
Description

This article describes how to use email-based MFA with certificate authentication for SSL VPN connection.

Scope FortiGate.
Solution
  1. Create a user with an email-based MFA:

    config user local
        edit test
            set type password
            set two-factor email
            set email-to {user_email_address}
            set passwd {password}
        next
    end

  2. Import the CA certificate that signed the certificate which will be used for the authentication:
    Go to System -> Certificates -> Import -> CA Certificate.

  3. Define the certificate matching criteria:

    config user peer
        edit "test_cert"

            set ca "CA_Cert_1"      <-- It is possible to set up additional certificate matching criteria.
    end

  4. Create a binding between the user and the certificate check:

    config vpn ssl settings
        config authentication-rule
            edit 1
                set users "test"
                set portal "full-access"
                set client-cert enable
                set user-peer "test_cert"
         end
    end

  5. The firewall policy is set only with the user-defined in step 1.

 

config firewall policy
    edit 1
        set srcintf "ssl.root"
        set dstintf "port1"
        set srcaddr "SSLVPN_pool"
        set dstaddr "example.com"
        set action accept
        set schedule "always"
        set service "ALL"
        set logtraffic all
        set users "test"
        set nat enable
    next
end