Home
Help
Search
Login
Register
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Sessions not dying when schedule deactivates
« previous
next »
Print
Pages: [
1
]
Author
Topic: Sessions not dying when schedule deactivates (Read 313 times)
jf5876
Newbie
Posts: 16
Karma: 0
Sessions not dying when schedule deactivates
«
on:
July 31, 2024, 06:14:38 pm »
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
Logged
Monviech (Cedrik)
Global Moderator
Hero Member
Posts: 1601
Karma: 176
Re: Sessions not dying when schedule deactivates
«
Reply #1 on:
July 31, 2024, 06:44:20 pm »
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.
Logged
Hardware:
DEC740
jf5876
Newbie
Posts: 16
Karma: 0
Re: Sessions not dying when schedule deactivates
«
Reply #2 on:
July 31, 2024, 07:02:47 pm »
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
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
English Forums
»
24.7 Production Series
»
Sessions not dying when schedule deactivates