Hello,
I am new to e2g. I am trying to implement timed banned & exception lists. I acknowledge that I may simply be ignorant of the proper syntax/method & limitations of v5.3.4. Can anyone point me to an example for the proper method/syntax for implementing timed banned sites & timed exception sites? I thought that the following conversation would have solved my problem, but I could not get bala's v5.3.1 implementation to work in 5.3.4, see URL below:
https://groups.google.com/g/e2guardian/c/V1yW0d6HXXY/m/mU1678p7CAAJ
Also, I am unable to consistently get a situation with a blanket block on SSL with a simple exception to work. Perhaps there is something corrupted in my installation, or something I am unaware that needs to be reset and it is taking some random time for that event to take place, making it appear as an inconsistent implementation of a simple exception. Perhaps the same issue is effecting my attempts at timed lists.
System/software
e2g5.3.4
squid (stopped it running, I understand it is optional in v5; O also tried with it running it as well)
FF 84.0 (64-bit)
Lbuntu 18.04
examplef1.story
# To create blanket block for http
# uncomment next line and one condition line.
function(checkblanketblock)
if(true,,502) return setblock # = ** total blanket
#if(siteisip,,505) return setblock # = *ip ip blanket
# To create blanket block for SSL
# uncomment next line and one condition line.
#function(sslcheckblanketblock)
#if(true,,506) return setblock # = **s total blanket
#if(siteisip,,507) return setblock # = **ips ip blanket
Of course, to try a Blanket block of SSL (HTTPS), I uncommented out the 2nd and 3rd from last lines above...
Several documented attempts:
bannedsitelist
# List categorisation
listcategory: "Banned Sites"
#####################################################################################################
###### 11:37 AM
## Blanket block for HTTP; NO Blanket block for HTTPS/SSL, or other blankets
## Trying BANNEDLIST only (below); no TIMELIST
## Close FireFox (FF); restart e2guardian; (squid is not running)
## RESULTS >>>
## Tried to list '
facebook.com' immediately below "listcategory: "Banned Sites", but that still fails.
#####################################################################################################
#####################################################################################################
###### 11:39 AM
## Blanket block for HTTP; NO Blanket block for HTTPS/SSL, or other blankets
## No BANNEDLIST; trying only TIMELIST (direct, no include file)
time: 11 49 11 51 0123456
## Close FireFox (FF); restart e2guardian; (squid is not running)
## RESULTS >>>
## neither facebook or youtube are blocked; had not restarted e2g until during window of time above; Am I required to restart e2g before start time above? Try it below...
#####################################################################################################
#####################################################################################################
###### 11:51 AM
## Blanket block for HTTP; NO Blanket block for HTTPS/SSL, or other blankets
## No BANNEDLIST; trying only TIMELIST (direct, no include file)
time: 11 53 11 54 0123456
## Close FireFox (FF); restart e2guardian; (squid is not running)
## RESULTS >>>
## same; neither facebook or youtube are blocked
## Does not appear that this method of TIMELIST works in e2g5.3.4
#####################################################################################################
Blanket Block on SSL (HTTPS):
I also tried blanket block for SSL, and adding an exception (without timed exception). I have inconsistent results - sometimes it works, sometimes it does not. I cannot figure out why. I use the same scripts, and restart e2g and for extended periods of time it fails, then works later - I may have switched something, but after numerous attempts to document and monitor, I find no explanation.
ULTIMATELY I DESIRE:
I desire a blanket block for SSL, with an exception list, and a timed exception list.
STORYLINE
I presume that there is something required for me to do with using storylines, e.g. something along the lines below, but not working for me...
- enact Blanket block on SSL in examplef1.story
- #exception lists
sitelist = 'name=exception,messageno=602,path=/etc/e2guardian/lists/exceptiontimelist'
with below in exceptiontimelist
time: 13 10 13 22 0123456
facebook.com
youtube.com - Results: This allows facebook.com & youtube.com, but even after 13 22, I still have access to the two sites. restarting e2g makes no difference; closing and restarting FF no difference (cache clears upon closing FF). However, If I remove the two sites from the timed exception list, and add google.com, and only modify the end time (e.g. 13 25) then facebook & youtube are blocked upon restarting e2g, and google.com is allowed. After 13 25, google.com continues to be allowed even if I restart FF browser. So, the excptiontimelist appears to work in terms of what is acknowledged as an exception, but does not remove the exception after the time. Changing the time start to a time later than the time I am testing the script, results in google.com still being permitted. So, it appears that the timelist is being treated as an untimed exception list.
- Attempts to add to e2guardianf1.conf:
- sitelist = 'name=exception,messageno=603,path=/etc/e2guardian/lists/exceptiontimelist'
only appears to overwrite the exceptionsitelist
Any examples or other help would be great. Is there a chance that I need to simply remove squid and reinstall e2g? I will give that a try in the meantime.
Thanks,
Tim