• troubleshooting, firewall, DrayOS 5, imported, content_filter, dns_filter, website_blocking, keyword_filter

Blocking a Website by URL Content Filter and DNS Filter (DrayOS5)

Content Filter can block specified websites with certain keywords. This article will use Facebook as an example and demonstrate how to set up a Content Filter rule to block it by certain keywords on Vigor2136.

1. Go Configuration / Objects / Keyword Object. Click +Add to add a keyword object.

  • Enter an object name.
  • Add keywords "facebook" and "fb".

Then click Apply to save the object.

2. Go Security / Firewall Filters / Content Filters. Add a filter profile and configure it as follows.

  • Enter a profile name.
  • Check Enabled.
  • Select the keyword object created in step 1 in the Destination.
  • Choose Block for Action.
  • Check Enable Syslog for monitoring and troubleshooting.

Then click Apply to save the profile.

After finishing the settings, the router will block the web page when the URL contains the keyword “facebook.” It also works for HTTPS websites, although the blocking page might not show due to the browser's protection for interruption of SSL connections.

Troubleshooting

If URL Content Filter does not work as expected, please check the following items:
- Check if there is any block message displayed in the syslog.

If not, please make sure:

  • if the client IP is matched with the source IP range set in the firewall rule.
  • if the client traffic is passed by other firewall rule.
  • if the domain contains keywords we added to the firewall rule.
  • if the client uses DoH(DNS over HTTPS). If yes, we need to create another rule to avoid clients from using DoH to resolve the domain.
- Clear browser's cookie and history.
- Clear the DNS cache on the computer.
- Make sure the computer's default gateway is Vigor Router.
- Check the DNS server of the computer: If the server is an internal DNS server, please make sure the internal DNS server's gateway is set to Vigor Router.