> Chapter 9 - Firewall > Building firewall objects and policies > Example: Firewall Schedule - Recurring
Example: Firewall schedule - recurring
The Company wants to allow the use of Facebook by employees, but only during none business hours and the lunch break.
- The business hours are 9:00 p.m. to 6:00 p.m.
- The Lunch break is 12:00 p.m. to 1:00 p.m.
- The plan is to create a schedule to cover the morning business hours and the afternoon business hours and block access to the Facebook web site during that time.
- Go to Policy & Objects > Objects > Schedule.
- Select Create New > Schedule.
- Fill out the fields with the following information:
Type | Recurring |
Name | Morning_Business_Hours |
Days | Monday, Tuesday, Wednesday, Thursday, Friday |
Start Time | Hour = 9, Minute = 0 |
Stop Time | Hour = 12, Minute = 0 |
- Select OK.
- Enter the following CLI command:
config firewall schedule recurring
edit Morning_Business_Hours
set day monday tuesday wednesday thursday friday
set start 09:00
set end 12:00
end
- Create a second new schedule.
Type | Recurring |
Name | Morning_Business_Hours |
Days | Monday, Tuesday, Wednesday, Thursday, Friday |
Start Time | Hour = 13, Minute = 0 |
Stop Time | Hour = 18, Minute = 0 |
- Select OK.
- Enter the following CLI command:
config firewall schedule recurring
edit Afternoon_Business_Hours
set day monday tuesday wednesday thursday friday
set start 13:00
set end 18:00
end
To verify that the schedule was added correctly:
- Go to Policy & Objects > Objects > Schedule.
- Check that the schedule with the name you used has been added to the list of recurring schedules and that the listed settings are correct.
- Enter the following CLI command:
config firewall schedule recurring
edit <the name of the schedule you wish to verify>
show full-configuration