{"id":297,"date":"2007-09-08T02:19:00","date_gmt":"2007-09-07T18:19:00","guid":{"rendered":"http:\/\/www.akuadi.org\/?p=23"},"modified":"2007-09-08T02:19:00","modified_gmt":"2007-09-07T18:19:00","slug":"verification-of-your-squidguard-configuration","status":"publish","type":"post","link":"https:\/\/akuadi.org\/life\/blog\/2007\/09\/08\/verification-of-your-squidguard-configuration\/","title":{"rendered":"Verification of your squidGuard Configuration"},"content":{"rendered":"<p><center> <\/p>\n<table width=\"97%\">\n<tbody>\n<tr>\n<td align=\"left\">  Now that you have installed and configured your squidGuard you just check a couple of things before going online. <\/p>\n<ol>\n<li> Permissions<br \/>Ensure that the blacklist and db files belong to  your squid user. If squid cannot access (or modify)  them blocking will not work.<\/li>\n<li> SquidGuard dry-run<br \/>To verify that your configuration is working run the  following command (changed to reflect your configuration):<br \/>\n<table style=\"border: 1px solid rgb(68, 85, 187); background-color: rgb(242, 255, 240); width: 373px; height: 111px;\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td style=\"border-bottom: 1px solid rgb(136, 136, 136); background-color: rgb(34, 52, 153);\"> <span style=\"color:white;\"> Dry-run squidGuard <\/span> <\/td>\n<\/tr>\n<tr style=\"color: rgb(0, 0, 0);\">\n<td>\n<pre>echo \"http:\/\/www.example.com 10.0.0.1\/ - - GET\" |<br \/>squidGuard -c \/tmp\/test.cfg -d<br \/><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>If the redirector works properly you should see the redirection URL for the blocked site. For sites not being part of your blacklists the  output should end with:<\/p>\n<table style=\"border: 1px solid rgb(68, 85, 187); background-color: rgb(242, 255, 240); width: 525px; height: 63px;\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>\n<pre><span style=\"color: rgb(0, 0, 0);\">2007-03-25 16:18:05 [30042] squidGuard ready for requests (1174832285.085)<\/span><br \/><br \/><span style=\"color: rgb(0, 0, 0);\">2007-03-25 16:18:05 [30042] squidGuard stopped (1174832285.089)<\/span><br \/><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p>Some remarks about the different entries of the echoed line:<\/p>\n<ul>\n<li>The first entry is the URL you want to test. <\/li>\n<li>The second entry is the client IP address. If you configured access control based on IP addresses make sure to test allowed and not allowed IP addresses to ensure proper working.<\/li>\n<li> In the third entry (the first &#8211; ) you can specify a username. This is only of importance if you have access control based on user names. Make sure to check different names with different access to verify your configuration.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p><b>Finalizing the installation by configuring squid<\/b><\/p>\n<p>If everything is working properly add the following line to your squid.conf (assuming that your squidGuard is installed in \/usr\/local;  make sure to change the paths to match your installation accordingly):<\/p>\n<div style=\"overflow: auto; width: 700px; color: rgb(0, 0, 0);\">\n<table style=\"border: 1px solid rgb(68, 85, 187); background-color: rgb(242, 255, 240); width: 387px; height: 63px;\" cellpadding=\"0\" cellspacing=\"0\">\n<tbody>\n<tr>\n<td>\n<pre> redirect_program \/usr\/local\/bin\/squidGuard -c<br \/>\/usr\/local\/squidGuard\/squidGuard.conf<br \/><br \/><\/pre>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><a href=\"http:\/\/www.squidguard.org\/Doc\/verify.html\" target=\"_blank\" rel=\"noopener\"><br \/>SquidGuard<\/a><\/div>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><\/center><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Now that you have installed and configured your squidGuard you just check a couple of things before going online. PermissionsEnsure that the blacklist and db files belong to your squid user. If squid cannot access (or modify) them blocking will not work. SquidGuard dry-runTo verify that your configuration is working run the following command (changed [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-297","post","type-post","status-publish","format-standard","hentry","category-verification-of-your-squidguard-configuration"],"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/297","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/comments?post=297"}],"version-history":[{"count":0,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/posts\/297\/revisions"}],"wp:attachment":[{"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/media?parent=297"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/categories?post=297"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/akuadi.org\/life\/wp-json\/wp\/v2\/tags?post=297"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}