FortiAuthenticator portal fails (wrong AP IP)
Hello Fortinet fellows,
I am testing portal services on FAC vm.
On Fortigate I configured SSID with external captive portal using the following captive portal URL:
where 172.16.14.9 is FAC IP.
172.16.14.9 is also configured as radius server on FG.
the ssid interface ip is 172.16.15.1 (clients in range 172.16.15.0/24)
The fortiaccess point manament ip is 172.16.21.2
On FAC portal policy the AP ip is configured to be in the 172.16.21.0/24 (the ap management ip)
When client associates with the ap it successfully redirected to the captive portal.
I notice the parameter apip=172.16.21.2 in the url (see the packet capture)
However the user is failing to authenticate.
FAC logs :
2022-07-25T07:46:34.199830-07:00 FortiAuthenticator radiusd[4720]: (13) facauth: ERROR: The AP of portal policy 10 does not contain client 172.16.15.1
2022-07-25T07:46:34.199849-07:00 FortiAuthenticator radiusd[4720]: (13) Invalid user (facauth: The AP of portal policy 10 does not contain client 172.16.15.1 :( [ab] (from client localhost port 20)
I tried changing the AP ip on the portal policy to include all the 172.16.0.0/16 subnet the issue is resolved.
I wonder which AP ip should be used in the portal policy ( the ap mgmt ip or the ssid interface ip).
If the correct apip is the ssid interface ip (172.16.15.1): then why the parameter apip=172.16.21.2 appears in the redirect URL?

