Configure Current Time Zone¶
When filtering HTTPS traffic it is very important to have correct date, time and time zone settings on your Squid proxy. Dashboard on the Monitoring section in Web UI shows current time zone and various times as detected by the application.
Set correct Time Zone in Web Safety¶
Please select current time zone information for your area from http://en.wikipedia.org/wiki/List_of_tz_zones_by_name. Open /opt/websafety/var/console/console/settings.py find the TIME_ZONE settings and type your timezone. For example on our servers the timezone is set as:
Set correct Time Zone in OS¶
The time zone of your Squid proxy must match the timezone of your proxy clients (browsers) and Web UI of Web Safety. See this article showing how to select timezone for RHEL - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/7/html/system_administrators_guide/chap-configuring_the_date_and_time.
Please note time zone in Django and in the OS need to be the same! Yes you need to set the time zone twice!
Enable automatic time sync¶
If you are running Web Safety as virtual appliance in VMWare vSphere - it is recommended to sync the time in virtual appliance with vSphere host which in turn needs to be synced with external NTP server or Active Directory domain controller. The Active Directory installation article describes this in detail Step 2. Syncronize time.
If you are running Web Safety on real hardware, it is recommended to setup NTP server on the proxy box and sync with the reliable time source. See this article on how to do that - https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/8/html/configuring_basic_system_settings/using-chrony-to-configure-ntp.