Drop kid connections/include scripts in backup

Started by DJ_L, December 07, 2019, 06:42:09 AM

Previous topic - Next topic
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).

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.