Skip to content
Hotspotly
  • Features
  • Solutions
  • Docs
  • Pricing
  • Blog
  • About
  • Contact
Log inGet started
/

Getting started

  • How Hotspotly works
  • Set up your first hotspot (end to end)
  • Setup steps

Network devices

  • MikroTik RouterOS v7 (WireGuard)
  • MikroTik RouterOS v6.49 (L2TP/IPsec)
  • Guest network and hotspot server on MikroTik
  • Apply to router and compliance check
  • Staff Wi-Fi certificate authority
  • Passpoint chain policy
  • Fortinet FortiGate
  • Sophos Firewall (SFOS)
  • Zyxel USG FLEX / ATP
  • Palo Alto Networks (PAN-OS)
  • Ruijie / Reyee (WiFiDog)
  • Ubiquiti UniFi
  • TP-Link Omada
  • Cisco Meraki
  • HPE Aruba Instant
  • Teltonika RutOS / CoovaChilli
  • Unlisted devices: external portal + RADIUS
  • Devices without a login page: syslog records
  • Automatic setup (non-MikroTik brands)
  • Other device brands

Login methods

  • Login methods overview
  • SMS verification: setup, providers and rules
  • Sign in with Google
  • Sign in with Facebook
  • Room number + surname: Mews
  • Room number + surname: Cloudbeds
  • Room number + surname: OPERA Cloud (OHIP)
  • Room number + surname: HotelRunner
  • Room number + surname: OPERA (on-prem) and Protel via FIAS
  • Custom PMS integration (webhook, developers)
  • Voucher codes
  • Click to connect
  • E-mail login
  • Shared password login
  • Device / MAC allowlist

Portal design

  • Login page designer
  • Page rules (SSID, time, device)
  • Ads (format, video, rotation, frequency)
  • Guest portal languages (22 languages, RTL)
  • WiFi QR poster

Daily operations

  • Guest users (hotspot accounts)
  • Sessions and disconnecting
  • Vouchers: advanced use and scenarios
  • Trusted devices (returning guests)
  • Login analytics and A/B testing
  • Speed profiles (bandwidth)
  • Ads and surveys
  • MikroTik tools (resources, interfaces, DHCP, queues, PPP, site blocking)
  • Access points and zones
  • Guest profiles and excluded guests
  • Visit analytics and branch comparison
  • Locations and inherited settings
  • Guest orders and payments

Access logs and data protection

  • Legal texts and guest consent
  • Consent records (consent ledger)
  • Access logs and legal export (Law 5651 in Türkiye)
  • Guest approval and blacklist
  • Personal data retention periods
  • Law 5651 in Türkiye: official requests, holds and exports
  • Analytics privacy measures
  • VERBİS registration helper (Türkiye)

Account and billing

  • Account security, password and two-factor authentication
  • Profile, package and payment
  • Free trial
  • Panel users and roles
  • Support tickets and support access
  • Notifications and email preferences
  • API keys
  • Webhooks
  • Routing rules
  • Live support chat
  • Enterprise OIDC Single Sign-On (SSO)
  • Business White-Label and Custom Domains

Reseller guide

  • Reseller guide: customers, package sales and credit
  • Reseller credit, groups and price calculation
  • Reseller referral link
  • Reseller company record and application

Platform administration

  • Admin panel overview
  • Customer and reseller management
  • Packages and prices
  • System settings
  • Blog and website texts
  • Server status and background jobs
  • Status page and incident notices
  • Sales requests and funnel
  • Activation funnel
  • Lifecycle messages
  • Platform agreements and legal pack
  • Audit logs
  • Access review
  • Notification center and email delivery
  • e-Invoice and e-Archive
  • Mail server, accounts and delivery health
  • Live support inbox and settings
  • Automatic translation in support channels

Troubleshooting / FAQ

  • Troubleshooting and FAQ
  • Troubleshooting devices
/

Getting started

  • How Hotspotly works
  • Set up your first hotspot (end to end)
  • Setup steps

Network devices

  • MikroTik RouterOS v7 (WireGuard)
  • MikroTik RouterOS v6.49 (L2TP/IPsec)
  • Guest network and hotspot server on MikroTik
  • Apply to router and compliance check
  • Staff Wi-Fi certificate authority
  • Passpoint chain policy
  • Fortinet FortiGate
  • Sophos Firewall (SFOS)
  • Zyxel USG FLEX / ATP
  • Palo Alto Networks (PAN-OS)
  • Ruijie / Reyee (WiFiDog)
  • Ubiquiti UniFi
  • TP-Link Omada
  • Cisco Meraki
  • HPE Aruba Instant
  • Teltonika RutOS / CoovaChilli
  • Unlisted devices: external portal + RADIUS
  • Devices without a login page: syslog records
  • Automatic setup (non-MikroTik brands)
  • Other device brands

Login methods

  • Login methods overview
  • SMS verification: setup, providers and rules
  • Sign in with Google
  • Sign in with Facebook
  • Room number + surname: Mews
  • Room number + surname: Cloudbeds
  • Room number + surname: OPERA Cloud (OHIP)
  • Room number + surname: HotelRunner
  • Room number + surname: OPERA (on-prem) and Protel via FIAS
  • Custom PMS integration (webhook, developers)
  • Voucher codes
  • Click to connect
  • E-mail login
  • Shared password login
  • Device / MAC allowlist

Portal design

  • Login page designer
  • Page rules (SSID, time, device)
  • Ads (format, video, rotation, frequency)
  • Guest portal languages (22 languages, RTL)
  • WiFi QR poster

Daily operations

  • Guest users (hotspot accounts)
  • Sessions and disconnecting
  • Vouchers: advanced use and scenarios
  • Trusted devices (returning guests)
  • Login analytics and A/B testing
  • Speed profiles (bandwidth)
  • Ads and surveys
  • MikroTik tools (resources, interfaces, DHCP, queues, PPP, site blocking)
  • Access points and zones
  • Guest profiles and excluded guests
  • Visit analytics and branch comparison
  • Locations and inherited settings
  • Guest orders and payments

Access logs and data protection

  • Legal texts and guest consent
  • Consent records (consent ledger)
  • Access logs and legal export (Law 5651 in Türkiye)
  • Guest approval and blacklist
  • Personal data retention periods
  • Law 5651 in Türkiye: official requests, holds and exports
  • Analytics privacy measures
  • VERBİS registration helper (Türkiye)

Account and billing

  • Account security, password and two-factor authentication
  • Profile, package and payment
  • Free trial
  • Panel users and roles
  • Support tickets and support access
  • Notifications and email preferences
  • API keys
  • Webhooks
  • Routing rules
  • Live support chat
  • Enterprise OIDC Single Sign-On (SSO)
  • Business White-Label and Custom Domains

Reseller guide

  • Reseller guide: customers, package sales and credit
  • Reseller credit, groups and price calculation
  • Reseller referral link
  • Reseller company record and application

Platform administration

  • Admin panel overview
  • Customer and reseller management
  • Packages and prices
  • System settings
  • Blog and website texts
  • Server status and background jobs
  • Status page and incident notices
  • Sales requests and funnel
  • Activation funnel
  • Lifecycle messages
  • Platform agreements and legal pack
  • Audit logs
  • Access review
  • Notification center and email delivery
  • e-Invoice and e-Archive
  • Mail server, accounts and delivery health
  • Live support inbox and settings
  • Automatic translation in support channels

Troubleshooting / FAQ

  • Troubleshooting and FAQ
  • Troubleshooting devices
  1. Documentation
  2. Network devices

Fortinet FortiGate

Connect your FortiGate firewall to Hotspotly over an IPsec IKEv2 tunnel and set up the captive portal and speed tiers with the FortiOS CLI snippet the panel generates.

CustomerLast updated: 2026-11-13Open in panel
On this page
  • Prerequisites
  • 1. Add the device with IPsec
  • 2. Check the tunnel and finish
  • 3. Link a hotspot
  • 4. Apply the captive portal snippet
  • 5. Optional: sync with the REST API
  • HTTPS login certificate
  • Test with a guest device
  • Session, speed and disconnect behaviour
  • Troubleshooting
  • Known limits
  • Next steps

This guide connects a FortiGate (including FortiWiFi and FortiAP units managed by a FortiGate) to Hotspotly. The FortiGate connects to the Hotspotly server over an IPsec IKEv2 tunnel. RADIUS authentication, accounting, session disconnect (CoA) and syslog all travel through this tunnel. The guest is redirected from the FortiGate captive portal to the Hotspotly login page and, after signing in, sent back to the FortiGate's own login address (fgtauth).

In short

My Devices → Add Device → Fortinet FortiGate → Generate configuration. Paste the snippet into the FortiGate CLI, confirm the tunnel with Check tunnel and finish the setup. Then link a hotspot to the device and apply the FortiOS CLI snippet from the FortiGate setup card on the device page.

Prerequisites

You need Details
FortiOS The commands the panel generates follow the FortiOS 7.2–7.6 CLI reference. The call-station-id-type line exists on 7.2 and later.
Admin access An administrator account that can write configuration through the CLI Console or SSH.
Outbound internet The FortiGate must reach UDP 500 and UDP 4500 (IKE / NAT-T) outbound. The FortiGate starts the tunnel; you do not need to open any inbound port.
IPsec connectivity The IPsec IKEv2 connection method must be enabled on the server. If the Add Device wizard shows Not enabled on the server next to FortiGate, it is not enabled yet: contact support.
Hotspotly account A free device slot in your plan.
Optional: REST API administrator A FortiOS REST API administrator token, to write speed tiers from the panel and install the HTTPS login certificate automatically. Its profile needs write access to VPN and User & Device.

1. Add the device with IPsec

  1. On the My Devices page, click Add Device and choose Fortinet FortiGate from the brand list. The Add a device with IPsec IKEv2 wizard opens.
  2. Device type already shows Fortinet FortiGate.
  3. For Authentication, choose Pre-shared key (PSK). If certificate mode is enabled on your account, Certificate (organisation CA) also appears; in that mode you generate a CSR on the FortiGate and paste it into the wizard.
  4. Click Generate configuration. The wizard shows the FortiOS CLI snippet and the Values for setup through the web interface table.

The snippet contains secrets

The IPsec snippet holds a pre-shared key (PSK) and a RADIUS secret unique to this device. They are shown only inside the setup wizard; while setup is unfinished you can show them again with Show configuration again. Do not share the snippet by e-mail, in a support ticket or in a screenshot.

What the snippet does:

Section On the FortiGate
config vpn ipsec phase1-interface / phase2-interface An IKEv2 tunnel named hotspotly; selectors are only the device tunnel address (/32) and the server tunnel address (/32). DPD 30 s, NAT-T on.
config system interface + config router static The device tunnel address on the tunnel interface and a static route to the server.
config user radius The hotspotly RADIUS server (the server tunnel address), an accounting server and the tunnel IP as source address; interim accounting every 300 s.
config log syslogd setting The server tunnel address as syslog server.

The snippet uses wan1 as the WAN interface name. If the interface that reaches the internet has a different name on your FortiGate, change it before pasting.

If you prefer the web interface, the Values for setup through the web interface table gives the same values row by row: Remote gateway, Local ID, Pre-shared key, IKE proposals, RADIUS server, RADIUS secret and the rest.

2. Check the tunnel and finish

  1. Paste the snippet into the FortiGate CLI. The FortiGate starts the tunnel by itself.
  2. In the wizard, continue with Next and click Check tunnel. You can wait a few seconds and try again until The tunnel is up. appears.
  3. Fill in Device Name (required), Location and Description, then click Done.

The IPsec tunnel card on the device page shows the tunnel state, the tunnel address and when the device was last seen.

3. Link a hotspot

On the Hotspots page, create a hotspot with Add Hotspot and choose the FortiGate as Device. We recommend entering the IP address of the guest interface (or the interface the FortiAP SSID is bound to) in Gateway: when the field is set, Hotspotly sends the login form only to the fgtauth page at that address.

4. Apply the captive portal snippet

The FortiGate setup card on the device page generates a second FortiOS CLI snippet that holds no secrets.

  1. For Captive portal location, choose Guest interface (wired / FortiWiFi) for a wired guest network or FortiWiFi, or FortiAP SSID for a FortiAP wireless network.
  2. If there is more than one hotspot, pick the right one in Hotspot.
  3. Copy the snippet in the FortiOS CLI box with Copy.
  4. Change the guest (guest interface or VAP name) and wan1 names to match your device, then paste it into the FortiGate CLI.

What the snippet does:

  1. Enables CoA on the hotspotly RADIUS server (radius-coa enable, UDP 3799) and sends the client MAC address as Calling-Station-Id.
  2. Creates user groups: hotspotly-guests for all guests, hotspotly-nolimit for unlimited guests and hs-rate-<down>-<up> for each speed tier.
  3. Adds the portal address and the addresses of the login methods enabled on the hotspot as FQDN objects and puts them on the exempt list (walled garden).
  4. Points the external captive portal on the guest interface or SSID to the Hotspotly portal address.
  5. Adds a per-IP shaper and a policy for each tier, a policy without shaper for the unlimited group and, last, the general guest policy with a fallback shaper (hotspotly-fallback).

Policy order

Policies are added at the end of the list. If an earlier policy already matches guest traffic, move the Hotspotly policies above it (move). Apply the snippet again after adding a bandwidth profile or changing its speed.

To review the same settings in the web interface: according to the FortiOS 7.2.8 Administration Guide, the captive portal is enabled under Network > Interfaces by editing the guest interface and turning on Security mode; Authentication Portal is set to External, and exemptions are in Exempt destinations/services. Menu names can differ between FortiOS versions; the CLI snippet is authoritative.

5. Optional: sync with the REST API

The card can also write the speed tiers through the FortiOS REST API instead of the CLI.

  1. On the device page, open the Vendor management API section of the Connection settings card.
  2. Choose FortiGate (FortiOS REST API) as Connection profile. The target is the tunnel address. Enter the FortiGate REST API administrator token in API key / password. If the FortiGate uses a self-signed management certificate, fill in Certificate fingerprint (SHA-256).
  3. Click Test connection; Connection succeeded should appear.
  4. On the FortiGate setup card, read the state with Check and write anything missing with Write missing objects.

The REST sync writes the RADIUS CoA setting, the per-IP shapers (including the fallback shaper) and the user groups. It does not write interfaces, SSIDs or firewall policies, and it never deletes an object. If a tier has no policy, the card warns you; apply the CLI snippet again.

HTTPS login certificate

The guest form goes to the FortiGate's own login page. Hotspotly installs a valid certificate automatically for this page through the FortiOS REST API:

  • Once the REST credential is saved and Test connection succeeds, the Automatic setup card on the device page runs on its own: Management API access, Device name and DNS, Certificate, HTTPS login, Test login.
  • The certificate is imported into the FortiGate and selected as the authentication page certificate; the login page opens over HTTPS on port 1003. The management certificate is not changed.
  • Renewal is automatic too. If a renewal fails, login temporarily returns to the previous address without a certificate and switches back to HTTPS after a successful renewal.
  • If the card shows HTTPS is off: login works with http-chap, the HTTPS feature is not enabled on your account; login keeps working over HTTP. Contact support to have it enabled.

Without a REST credential the HTTPS steps are skipped and login keeps using the FortiGate default page.

Test with a guest device

  1. Connect a phone to the guest network. The FortiGate should redirect the browser to the Hotspotly login page.
  2. Sign in with a login method (for example SMS or a voucher). The page sends you back to the FortiGate and internet access opens.
  3. In the panel, check that the session appears on the Sessions page. Accounting arrives through the tunnel, so the session is listed within seconds.

Session, speed and disconnect behaviour

Topic On FortiGate
Accounting Yes. Accounting arrives through the tunnel; the access log is built from it.
Session disconnect (CoA / Disconnect) Yes, UDP 3799, through the tunnel. Hotspotly can end a session midway (for example when the data quota runs out).
Speed limit The bandwidth profile is sent as a hs-rate-<down>-<up> tier in Fortinet-Group-Name. The per-IP shaper enforces a single ceiling: the download speed. Upload speed is not enforced separately. A profile without a speed falls into the hotspotly-nolimit group.
Speed change mid-session When a speed package or rule changes, the new group is sent with CoA. If FortiOS does not change the group mid-session, the session is disconnected and the guest signs in again.
Data quota Not enforced on the FortiGate itself; Hotspotly watches interim accounting and disconnects the session when the quota runs out.
Syslog and access logs Syslog arrives through the tunnel. To write DHCP records to the access log store, choose Write to the access log store for Access logging in the Syslog and access logging card on the device page and confirm the guest block rule.

Troubleshooting

Symptom Cause Fix
The wizard shows Not enabled on the server next to FortiGate The IPsec connection method is not enabled on the server yet. Contact support.
The tunnel is not up yet. after Check tunnel The FortiGate cannot reach UDP 500/4500 outbound, the WAN interface name is wrong, or the snippet was pasted incompletely. Check the wan1 name, allow the outbound traffic, paste the snippet again. On the FortiGate, check the IKE state with diagnose vpn ike gateway list.
The card shows The FortiGate has no "hotspotly" RADIUS server. Apply the IPsec setup snippet first. The FortiGate has no hotspotly RADIUS server. Apply the IPsec snippet first; show the configuration again from the wizard if needed.
The card shows No hotspot is linked to this device. Add a hotspot first. No hotspot is linked to the device. Link a hotspot.
Save a FortiOS REST credential in the connection settings first. No REST token is saved. Follow the REST sync steps.
The FortiOS REST token was rejected. The token is wrong, expired or lacks permissions. Generate a new token on the FortiGate and save it; the profile needs VPN and User & Device write access.
The FortiGate REST API was unreachable or TLS could not be verified. The tunnel is down or the management certificate could not be verified. Check the tunnel card; pin the fingerprint for a self-signed certificate.
The card warns about tiers without a policy A profile was added or its speed changed after the CLI was applied. Guests in that tier are limited to the fallback (lowest) speed. Apply the CLI snippet again.
The guest sees an error on the portal instead of the login page The login address the FortiGate sends does not match the hotspot Gateway value, or the device belongs to another hotspot. Enter the guest interface IP in Gateway or clear the field; make sure you use the portal address of the right hotspot.
Login looks successful but there is no internet There is no guest policy, or an earlier policy catches the traffic. Fix the policy order (move).

For general device problems see Device troubleshooting.

Known limits

  • The commands are generated from Fortinet's published documentation; for small syntax differences between FortiOS versions (for example call-station-id-type) you may need to skip a line.
  • If the FortiGate is set to use a host name (FQDN) for its authentication page, Hotspotly does not accept that login address. Unless the automatic HTTPS certificate is in use, keep the login address as an IP.
  • The per-IP shaper only enforces a ceiling in the download direction.
  • BlastRADIUS hardening (require-message-authenticator) is only suggested as a comment in the snippet; you can enable it yourself on FortiOS 7.2.10+ / 7.4.5+.
  • Staff Wi-Fi (802.1X) is not set up on FortiGate from the panel.

Next steps

  • Other device brands
  • Your first hotspot

Related guides

  • Other device brands
  • Palo Alto Networks (PAN-OS)
  • Troubleshooting devices

Related pages

  • Pricing
  • Supported network brands
  • WiFi capacity calculator
  • Solutions by industry
  • Contact
PreviousPasspoint chain policyNext Sophos Firewall (SFOS)

On this page

  • Prerequisites
  • 1. Add the device with IPsec
  • 2. Check the tunnel and finish
  • 3. Link a hotspot
  • 4. Apply the captive portal snippet
  • 5. Optional: sync with the REST API
  • HTTPS login certificate
  • Test with a guest device
  • Session, speed and disconnect behaviour
  • Troubleshooting
  • Known limits
  • Next steps
Hotspotly

Hotspotly is a guest WiFi, captive portal, access logging and data protection toolkit for hotels, cafés, retail, campuses, hospitals, offices and municipalities, with Law 5651 logs and KVKK tools for Türkiye. It works with MikroTik and devices from other brands.

Emailinfo@hotspotly.net

Product

  • Features
  • Pricing
  • Solutions
  • Integrations
  • Modules
  • Integration guides

Resources

  • Docs
  • Quick start
  • Developers
  • Blog
  • Sign in to the panel
  • Create an account

Company

  • About
  • Resellers and partners
  • Become a reseller
  • Contact

Trust and compliance

  • Security
  • Law 5651 (Türkiye)
  • KVKK (Türkiye)
  • Global compliance
  • Data regions

Related pages

  • Guest WiFi logging
  • MikroTik hotspot software
  • Hotel WiFi management
  • Captive portal
  • SMS WiFi login
  • WiFi voucher system
  • Social WiFi login
  • WiFi marketing
  • Hotspot software
  • WiFi capacity calculator
  • Log retention information
TürkçeEnglish

© 2026 Hotspotly. All rights reserved.