Sessions not dying when schedule deactivates

Started by jf5876, July 31, 2024, 06:14:38 PM

Previous topic - Next topic
Hello,

I've blocked the kids network range with a schedule in the firewall schedules. What happens is that they are playing a game, the schedule goes off and they continue playing.

The options and reading I've done so far indicate this should work the way it was intended but does not seem to do so. I've seen others use Cron entries to drop those states or schedule a reboot when that timing goes off.

Am I doing something wrong?

Thanks,

JF

It blocks all new connections. Any existing connections (states) continue to work.

This has been like that since ancient times.

When I was little 20 years ago or so, I was playing MMOs and I could continue to play for 2-3 hours after the ancient router scheduled the offline time, since the states are still there.
Hardware:
DEC740

Okay.

I've created a configd file to kill the states for the range in question.

/usr/local/opnsense/service/conf/actions.d/actions_closesessionsforrange.conf
--
[check]
command:/sbin/pfctl -k <range>/24 2>&1
parameters:
type:script
message:check closesessionsforrange
description: Close Sessions for Range <range>/24
--

I then inserted a cron entry through the menu for this.

Is there any reason this would not work?

Thanks,

JF