OPNsense Forum

English Forums => General Discussion => Topic started by: wuwzy on January 29, 2024, 02:33:52 PM

Title: Please tell me if such a function can be achieved.
Post by: wuwzy on January 29, 2024, 02:33:52 PM
It's easy under ROS, just write a script.

If you want to suspend the use of a certain network card at a fixed time and make the network card invalid. Set another time to restore the use of this network card. Meet the need to control network connections. How to implement this function.
Title: Re: Please tell me if such a function can be achieved.
Post by: bartjsmit on January 29, 2024, 05:25:50 PM
Firewall: Settings: Schedules - create a schedule.

Add a rule to restrict all traffic to and from the network the interface connects to and attach the schedule

Title: Re: Please tell me if such a function can be achieved.
Post by: wuwzy on January 30, 2024, 08:55:10 AM
OOO....  thanks.
Title: Re: Please tell me if such a function can be achieved.
Post by: wuwzy on February 01, 2024, 12:51:28 PM
Quote from: bartjsmit on January 29, 2024, 05:25:50 PM
Firewall: Settings: Schedules - create a schedule.

Add a rule to restrict all traffic to and from the network the interface connects to and attach the schedule

Stupid me, the experiment failed. Please give me some pointers. I would be more grateful if you have screenshots for me to learn how to do. :'( :'( :'( :'(
Title: Re: Please tell me if such a function can be achieved.
Post by: bartjsmit on February 02, 2024, 08:12:51 AM
What is not working? The cron job or the firewall rule?