Skip to main content
GeoSeaJets
New Member
August 21, 2023
Question

How to disconnect clients after x minutes

  • August 21, 2023
  • 4 replies
  • 2169 views

Helo Support, we have a forigate 100F
We have setup several vlans,in one of these vlan we have enable captive portal with access allow all, we would like to disconnect clients after 15 minutes.
Is this possiblen to be done combine schedule script?
Could you please provide us the best solution?

4 replies

farhan17
New Member
August 21, 2023

We disconnect at 10 hours. By that time, they should either be done working or need to reauthenticate to continue. No reason to let them stay connected overnight and into the following day(s).

akanibek
Staff
Staff
August 21, 2023

 
 
 
Double-click
 
Select to translate

 

If you are not using Active authentication, you can try to adjust auth-timeout for all active users. Passive one should not be affected, meanwhile users with active auth. should be terminated within configured auth type, and time.

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Explanation-of-auth-timeout-types-for-Firewall/ta-p/189423

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Authentication-timeout-value-for-firewall-user/ta-p/193705

https://community.fortinet.com/t5/FortiGate/Technical-Tip-Configure-hard-timeout-for-authenticated-user/ta-p/189617

GeoSeaJets
New Member
August 24, 2023

Akanibek thanks for your reply.

Our connected clients, connect to captive portal free through wi-fi with no authentication. 

so we adjust auth-timeout for all active users as you told us

the default auth-timeout is 5 min but this seems not working for that reason we add the following to Cli

config user setting     set auth-timeout-type hard-timeout     set auth-timeout 900 end

and now works fine