Unofficial E2guardian package for pfSense
-
Hmm, ben onu sadece E2guardian tek başına çalıştığında, bu patch uygulanıyor sanıyorum 'ki öyle. Çünkü forumlarda öyle yazıyor. Yarın denerim sana yazarım geri.
-
Only e2guardian and lightsquid.
-
@genesislubrigas After you used the following code. Lightsquid can be worked with Squid + E2guardian without problem. After you used command, please restart your pfsense.
fetch -o /usr/local/pkg/lightsquid.inc http://e-sac.siteseguro.ws/lightsquid/inc.txt
-
Yes but i dont use squid, I only use e2guardian. How do you use squid with e2guardian?
-
@genesislubrigas There's no need for you to use Squid with E2 Guardian. You can still get stats with Light squid.
I personally stopped using Squid because I've found it to slow down my Web traffic, instead of helping speed it up.
-
@pfsensation said in Unofficial E2guardian package for pfSense:
@genesislubrigas There's no need for you to use Squid with E2 Guardian. You can still get stats with Light squid.
How do you get stats with Light squid ? Can you kindly assist. Thanks
-
Hi everyone,
Hope some could assist.
Already got a working pfsense + e2guardian setup.
I would like to achieve time base blocking on some sites.e.g.
block facebook from 8am-6pm daily
after 6pm it should be accessible.This is my web config
Result was im stil unable to access facebook even after 6pm.
-
@kenpachizaraki Create a schedule on pfSense for the duration you'd like Facebook blocked for. Then go into E2 Guardian, ACL then create a new site list config.
Select the schedule you've created in the site list config, and then under banned sites box. Put in Facebook.com, then just assign the ACL to a group and it should work.
These should be the steps to get it correctly setup. If the blocking still goes on after your assigned schedule. You may have not created a separate ACL or properly created the schedule.
-
@pfsensation thanks for the quick reply, appreciate it.
Below are the steps i followed.
- create schedule in pfsense
--- working_hours Mon - Sun / 9:00-17:59 - create ACL in e2g
--- schedule : working_hours
--- enable : check
--- Include : social_network domains
--- save
e2g Groups
--- site : working_hours
--- savee2g IPs
---- working_hours : 192.168.1.100
--- save
--- applye2g Realtime
** facebook.com 403 192.168.1.100 working_hours DENIED Blocked site: facebook.comResult success!
Another problem is,
how does e2g read the groups?
top to bottom? bottom to top?Scenario : I want to create another schedule "lunch_break" @ 12noon to 1pm
and allow facebook access during that time.
I created same steps as above and set IPs to "lunch_break", so one of the IPs belong in two IPs (one in working_hours and same ip in lunch_break)
e2g just sticks to "lunch_break" even after the hour ends (1PM)
it never go back to "working_hours" IPs and ACL groups.Scenario above can be achieve in e2g?
- create schedule in pfsense
-
@kenpachizaraki From top to bottom. E2guardian ACLs process from top to bottom.
-
@ucribrahim thanks.
How about the IPs? What would happen if same ip belong in both groups?
As my example post above
Working_hours : 192.168.1.100
Lunch_break : 192.168.1.100My assumption is it would go back to working_groups after 1pm? Since lunch_break is scheduled in my ACL and scheduler setting.
-
@kenpachizaraki Actually It's hard to say something before test it, because I don't know very well how to use E2guardian. I worked so many times with E2guardian but didn't test other menus. You need to test it which acl or group will be come first or what is gonna happen.)
I wrote a blog post about e2guardian in my web site, I'll share a video as soon as fast. After that I'll try to learn how to use other menus and then I'll write blog post how to use other menus in e2guardian. But first video after that i'll do that.
https://lifeoverlinux.com/how-to-block-http-and-https-websites-with-e2guardian/
-
@ucribrahim thanks for the guide post.
what I did now is simple solution since I only like to open facebook during lunch.
I created 2 schedule : AM_Working_Hours @ 9:00-12noon
and
PM_Working_Hours @ 1PM-6PM
Created 2 ACL AM_Working_Hours and PM_Working_Hours and assigned the schedule respectively.
selected "Social_media networks" to be blocked. As intended it block the websites during mentioned time.I only created 1 Group and selected both AM_Working_Hours and PM_Working_Hours.
When time set @ 12noon, social media sites are now accessible.
This is OK for me now as requirements had been achieve.
If you have a cleaner solution would great if you can share.
-
btw, squid is disabled in my setup.
im using e2g for the proxy.https://lifeoverlinux.com/how-to-block-http-and-https-websites-with-e2guardian/
You had mentioned in your forum that it can be bypassed?
that's why you add this line in your squid config.cache_peer 127.0.0.1 parent 8080 0 login=*:password always_direct deny all never_direct allow all
ill shoot some test later if it can be bypassed.
-
@ucribrahim after some testing using your code above on squid, and used proxy on web browser, i was able to access to access restricted sites.
Can you test further as i was not able to block sites using manual proxy. :(
These are my settings..
e2g
-
@kenpachizaraki Okay Could you please wait. I'll write you back.
-
@ucribrahim also im not installing the cert since e2g works fine without installing the cert (MITM).
-
@kenpachizaraki I tested the code which I add to squid config. I can still access restricted sites. :/ It didn't work at all.
But It was working, I tested a few times. Well, I'll try to use E2guardian itself, without Squid. Let's see if it's going to work stabil.
-
@ucribrahim ok let me know the progress i can run some test tomorrow.
-
@kenpachizaraki Sure, For now there is no problem, I tested a few hours. Tomorrow I'll install fresh pfsense to my hardware utm box and then I'll surf from the pfsense box and test it. I'll write the results back to you in a few days.