Skip to main content
Security_Researcher
New Member
March 16, 2026
Question

FortiGate Captive Portal – Logging Name + Phone + Email for Guest Users

Hello everyone,

I’m currently working on improving our guest WiFi captive portal logging on a FortiGate firewall and I’m trying to determine the best way to capture and later locate guest users if needed.

Current Setup

We are using a FortiGate email collection captive portal for guest wireless access.
I have customized the HTML replacement message so that the portal now asks for:

  • Full Name

  • Phone Number

  • Email Address (existing FortiGate %%USERNAMEID%% field)

The page functions correctly and users must fill in all fields before connecting.

Goal

The main objective is to be able to identify a guest device later if there is a security or abuse issue.

Ideally we would like to log the following information:

  • Name

  • Phone Number

  • Email Address

  • Device MAC address

  • IP address

  • Date/time of connection

Then be able to search FortiGate logs later to locate the user associated with a specific device or activity.

Question

Is there a supported way in FortiGate to log additional captive portal fields (such as name and phone number) so they appear in system logs or traffic logs?

For example, I noticed the “Alternate User” field appears in the log column selection menu. Could this field be used to store additional information collected during captive portal authentication?

Or are the only supported values:

  • username

  • user

  • email collection identifier

Alternative Approach

If FortiGate does not support storing additional captive portal form fields in logs, would the recommended approach be to use:

  • External Captive Portal / External Authentication

  • A custom portal that collects the information and then returns authentication to FortiGate

Objective

The goal is simply to maintain basic accountability on the guest network so that if we need to investigate a device later we can identify who was using it.

Any recommendations or best practices would be greatly appreciated.

Thanks!

3 replies

Jean-Philippe_P
Staff & Editor
Staff & Editor
March 19, 2026

Hello Security_Researcher, 

 

Thank you for using the Community Forum. I will seek to get you an answer or help. We will reply to this thread with an update as soon as possible. 

Jean-Philippe - Fortinet Community Team
Jean-Philippe_P
Staff & Editor
Staff & Editor
March 20, 2026

Hello,

 

We are still looking for an answer to your question.

 

We will come back to you ASAP.

Jean-Philippe - Fortinet Community Team
Markus_M
Staff & Editor
Staff & Editor
March 20, 2026

I think you will somehow get the IP and MAC address through logs. Problematic are the user-input variants.

  • Name

  • Phone Number

  • Email Address

The Name can be bogus, so can the email address. As there are temporary email services that allow you to create temp-mail addresses without registration that FortiGate can send emails to, that is not a 100% way to identify. Not all users will use such services of course and your target is probably to cover all the users.

I think the only and safest way is if you use the phone number as that is something less-fakeable (at least ad-hoc).

FortiGate CAN send SMS to the phones for some verification that a user should use to access the network.

I think this is a CLI only setting and is described here:

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configuring-SMS-Two-Factor-Authentication-with-3rd/ta-p/196455

(config system sms-server)

Either you can use FortiGuard SMS service (needs to be licensed with credits) or use a third party service.

The third party service should then be able to receive emails from the FortiGate to translate them to an SMS to the user. That should be reflected somewhere in the log so you can tie that to the IP and action. The log matching isn't always easy, but usually works out for forensics.

 

Best regards, Markus
Thought Leadership. Security Summit. Thursday, November 12th, PGA National Resort, Palm Beach Gardens, FL.
Thought Leadership. Security Summit. Thursday, October 8th. Disney's Grand Californian Hotel & SPA, Anaheim, CA.
Security Operations Summit: Modernize SecOps. Operate AI-Native.AMER: November 4 | 9:00 AM PST. India and SAARC: November 5 | 10:00 AM IST. EMEA: November 5 | 10:30 AM CET. APAC: November 5 | 11:00 AM SGT