FortiGate Entegrasyonu
FortiGate'te guest WiFi captive portal'ı Captivo RADIUS ile doğrular.
1FortiGate'i Captivo'da tanıt
Captivo'da: Ayarlar → RADIUS → FortiGate'in kaynak IP'sini ve aynı shared secret'ı NAS client olarak ekleyin. RADIUS portları 1812/1813 (UDP) FortiGate'ten erişilebilir olmalı.
2Captivo RADIUS sunucusunu tanımla
User & Authentication → RADIUS Servers → Create New. Primary Server = Captivo RADIUS adresiniz, Secret = paylaşılan secret'ınız, Authentication method = PAP. Ardından bir User Group oluşturun (User & Authentication → User Groups, tür: Firewall) ve bu RADIUS sunucusunu ekleyin.
config user radius
edit "captivo"
set server "<captivo-radius-ip>"
set secret <shared-secret>
set auth-type pap
next
end
config user group
edit "captivo-guests"
set member "captivo"
next
end3Guest SSID'de captive portal'ı aç
WiFi & Switch Controller → SSIDs → Create New → SSID. Security mode = Captive Portal (WPA-Enterprise DEĞİL). Captive Portal'ı aç, Portal type = Authentication, Authentication portal = Local (FortiGate barındırır), User Groups = 1. adımdaki captivo-guests grubu.
config wireless-controller vap
edit "guest-wifi"
set ssid "Guest WiFi"
set security captive-portal
set portal-type auth
set selected-usergroups "captivo-guests"
next
end4Captivo giriş sayfasını yapıştır
System → Replacement Messages → kategori Authentication → 'Login Page'. Ayarlar → Portal → Şablonlar'dan indirdiğiniz FortiGate HTML'ini yapıştırın. (SSID'ye özel sayfa için vap'ta portal-message-override-group ayarlayın.) Sayfa FortiGate'in %%post_action%%'ına magic + username + password POST eder — Captivo şablonu tam bunu üretir, düzenleme gerekmez.
# per-SSID override (optional)
config wireless-controller vap
edit "guest-wifi"
set portal-message-override-group "captivo-login"
next
end5Walled garden (önemli)
Giriş yapmadan önce misafir Captivo'ya erişebilmeli; yoksa portal yüklenemez veya SMS kodunu isteyemez. Bu hedefi bir firewall policy ile (ya da arayüz security-exempt-list ile) captive portal'dan muaf tutun.
# exempt destination from captive portal
# create an FQDN address object for app.captivo.io first
config firewall policy
edit 0
set name "captivo-exempt"
set srcintf "guest-wifi"
set dstintf "wan1"
set dstaddr "app.captivo.io"
set action accept
set schedule "always"
set service "ALL"
set captive-portal-exempt enable
next
endTest ve sorun giderme
Bir misafir cihaz bağlayın: markalı portala yönlenmeli, SMS/voucher ile doğrulamalı ve internete çıkmalısınız. Kimlik doğrulama ve kayıtlar hemen görünür; panelde canlı oturumları görmek için FortiGate RADIUS sunucusunda accounting'i (1813 portu) da etkinleştirin.
Ürün geneli sorunlar için: Portal açılmıyor · Giriş reddediliyor · Oturumlar görünmüyor