• Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login
Netgate Discussion Forum
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
  • Register
  • Login

Idle Timeout not working properly

Scheduled Pinned Locked Moved Captive Portal
1 Posts 1 Posters 1.6k Views
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • L
    laragio
    last edited by Jan 21, 2010, 4:21 PM

    Hi,

    we have set up a Captive Portal system with radius authentication. The radius set also the idle timeout to 30 minutes.
    Many users have noted that disconnection were applied after only 5-10 minutes of inactivity (let me say it was quite random).

    We have read the code on /etc/inc/captiveportal.inc and on the function captiveportal_prune_old() in  periodic RADIUS reauthentication
    the timestamp of ipfw are canceled with: exec("/sbin/ipfw zero {$cpdb[$i][1]}");
    This timestamp is used to calculate the idle-timeout for every users with the difference between rule-timestamp and current time. If the timestamp is zero is used the login timestamp so, after the first 30 minutes of connection, the users were disconnected only after 5 minutes of inactivity.

    Now we have commented out this line and everything is  working fine, and the idle-timeout now is always 30 minutes.

    I would like to know why there is this line in the code?  ???

    Thanks

    1 Reply Last reply Reply Quote 0
    1 out of 1
    • First post
      1/1
      Last post
    Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.
      This community forum collects and processes your personal information.
      consent.not_received