OPNsense Forum
Archive => 17.1 Legacy Series => Topic started by: kurczak on February 15, 2017, 11:15:22 am
-
Hi,
How to block some websites on specified time, example I want to block facebook from 7:00am to 4:00pm. Is there any possibility to do that?
Regards
-
At the moment, this is not possible in the GUI but you can create a squid ACL in the configuration files.
-
Hi kurczak
This should work for you:
- In [Firewall]-[Aliases] create a new alias of type "Hosts(s)" and enter "facebook.com" in the "Aliases" list
- In [Firewall]-[Settings]-[Schedules] add a new schedule defining the blocking periode(s)
- In [Firewall]-[Rules]-[LAN] add a new rule with the following settings:
- Action: Reject or Block
- Interface: LAN
- Protocol: TCP/UDP
- Destination: Choose the alias defined earlier from the list (facebook.com)
- Schedule: Choose the schedule defined earlier from the list (7:00am to 4:00pm)
-
hi nettraveller
i tried these steps more than one time but it didn't work
how can i make it work?
thanks,
raul.