Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Drop kid connections/include scripts in backup
« previous
next »
Print
Pages: [
1
]
Author
Topic: Drop kid connections/include scripts in backup (Read 1955 times)
DJ_L
Newbie
Posts: 8
Karma: 1
Drop kid connections/include scripts in backup
«
on:
December 07, 2019, 06:42:09 am »
Okay, so I setup a policy to shut off my kids televisions at 10:00 PM (it gives them an hour to go to sleep after bed time) and it was not working as expected (they would still be working well after 11:00 and eventually stop working sometime late into the night). This was due to long lived connections. I added a script that effectively does: `pfctl -k 0.0.0.0/0 -k roku1.home.mydomain.com && pfctl -k roku1.home.mydomain.com && pfctl -k roku2...` and added this into cron jobs (in the GUI by creating a service) with "5 22 * * 0-4" which ultimately does achieve the desired outcome, but I was wondering if there is a way to do this from the GUI. I wasn't able to find one, so I just made it work for now, but it would be really nice if these types of custom scripts were exportable as part of a system backup (or maybe they are and I'm just not aware of it, scripts were stored in roots home directory).
Logged
DJ_L
Newbie
Posts: 8
Karma: 1
Re: Drop kid connections/include scripts in backup
«
Reply #1 on:
December 07, 2019, 09:27:53 pm »
See
https://forum.opnsense.org/index.php?topic=15224.0
but question still remains about the best method to interrupt the established connections - though I am more confident of my choice of method now.
Logged
Print
Pages: [
1
]
« previous
next »
OPNsense Forum
»
Archive
»
19.7 Legacy Series
»
Drop kid connections/include scripts in backup