OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Web Filtering (schedule)
« previous next »
  • Print
Pages: [1]

Author Topic: Web Filtering (schedule)  (Read 4106 times)

kurczak

  • Newbie
  • *
  • Posts: 12
  • Karma: 0
    • View Profile
Web Filtering (schedule)
« 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
Logged

fabian

  • Hero Member
  • *****
  • Posts: 2768
  • Karma: 199
  • OPNsense Contributor (Language, VPN, Proxy, etc.)
    • View Profile
    • Personal Homepage
Re: Web Filtering (schedule)
« Reply #1 on: February 15, 2017, 12:06:59 pm »
At the moment, this is not possible in the GUI but you can create a squid ACL in the configuration files.
Logged

nettraveller

  • Newbie
  • *
  • Posts: 2
  • Karma: 2
    • View Profile
Re: Web Filtering (schedule)
« Reply #2 on: May 25, 2017, 01:38:17 am »
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)

Logged

raul

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
    • View Profile
Re: Web Filtering (schedule)
« Reply #3 on: July 26, 2017, 12:51:27 pm »
hi nettraveller
i tried these steps more than one time but it didn't work

how can i make it work?


thanks,
raul.
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • Archive »
  • 17.1 Legacy Series »
  • Web Filtering (schedule)
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2023 All rights reserved
  • SMF 2.0.19 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2