OPNsense Forum

Archive => 22.7 Legacy Series => Topic started by: yakṣa on October 31, 2022, 09:16:49 AM

Title: Disconnection after x hours of communication (rejected by FW rule)
Post by: yakṣa on October 31, 2022, 09:16:49 AM
hello,
I am the manager of a small office.

The hardware and SOFTWARE information I am using is as follows

HUNSN RJ09

J6413, AES-NI, 6 x intel 2.5GbE I226-V 16GB mem/SSD256GB
OPNsense 22.7.6-amd64
FreeBSD 13.1-RELEASE-p2
OpenSSL 1.1.1q 5 Jul 2022

I recently installed opnsense from appliance firewall to box PC and switched over and it is working well.
The other day, I received the following instruction from my manager.
The boss said, "I want you to set up a disconnect after 2 hours per day on communications from people playing games on their gaming consoles in the office."

I see that opnsense has a Schedule setting, but is there a way to say, "If a certain device starts communicating, we will disconnect after x hours"?

Please let me know if there is another way, such as adding a plugin.
Title: Re: Disconnection after x hours of communication (rejected by FW rule)
Post by: axsdenied on October 31, 2022, 04:48:35 PM
Not that I'm aware of.  At least not from the "start" of usage.

The only way I could think of would be to force specific clients (i.e. via lists or vlans) to use a captive portal that the console would have to sign into before using and expires after a certain time.