- firewall, DrayOS 5, imported, content_filter, vigor_router, access_control, schedule_profile, scheduled_rule
How to enable firewall during working hours? (DrayOS5)
Vigor Routers have several functions that can be scheduled to work, including Firewall, Wi-Fi, and VPN. Additionally, we can automate facility management, as shown in the example in the table below. This guide will explain the steps to enable the firewall during working hours.
This article demonstrates how to block Facebook between 8:00-12:00 and 14:00-18:00 using the Vigor2136ax in the configuration example.
| 8:00-12:00 | 12:00-14:00 | 14:00-18:00 | 18:00-8:00 | |
| Block | Pass | Block | Pass |
Step 1: Create Schedule Profiles
(In this example, the firewall rule is active at 08:00-12:00 and 14:00-18:00, so we must create two schedule profiles. The first one starts at 08:00 and ends at 12:00; the other starts at 14:00 and ends at 18:00)
Profile 1
Go to the Configuration / Objects / Schedule menu.
Click +Add to create a schedule profile.
- Give a profile name.
- Select Enabled for this profile.
- Set the Start Time and End Time.
- Set the frequency of this schedule profile.
Click Apply to save the settings.
Profile 2
Follow the steps used to create profile 1 to create the second profile.
This profile is for the time range 14:00-18:00.
Step 2: Create a firewall rule to block the access to Facebook
Go Security / Firewall Filters. Create a filter rule to block the access to Facebook in Content Filters.
Please check the following links for more information about How to block websites by web content filter, URL content filter, or DNS filter.
Step 3: Apply Schedule Profiles in the Firewall Rule
Go Security / Firewall Filters. Edit the firewall rule that we want to be active by schedule.
- Select Enabled for this rule.
- Choose Scheduled On.
- Select the schedule profiles created in step 1.
- Click Apply to save the settings.
Once the firewall rule is activated, you should not be able to access Facebook between 8:00-12:00 and 14:00-18:00, Monday to Friday. You should see something like the details below indicating that access to Facebook is blocked.
