{"id":362,"date":"2016-12-08T11:46:18","date_gmt":"2016-12-08T11:46:18","guid":{"rendered":"http:\/\/shijuvarghese.com\/?p=362"},"modified":"2016-12-09T12:53:06","modified_gmt":"2016-12-09T12:53:06","slug":"installing-dansguardian-in-centos-7","status":"publish","type":"post","link":"http:\/\/shijuvarghese.com\/?p=362","title":{"rendered":"Installing Dansguardian in CentOS 7"},"content":{"rendered":"<p>DansGuardian is a wonderful application that is easy to use and works well with proxy servers such as squid to filter web contents. This is a free OpenSource tool, easy to setup.<\/p>\n<p><strong>Installation:<\/strong><\/p>\n<p>====== ==<\/p>\n<p>Create a folder to download the application:<\/p>\n<p>]# <em><strong>mkdir \/Downloads<\/strong><\/em><\/p>\n<p>]# <em><strong>cd\/Downloads<\/strong><\/em><\/p>\n<p>Get the latest stable copy of the software from &#8220;<cite class=\"_Rm\"><b>dansguardian<\/b>.org&#8221;<\/cite><\/p>\n<p>]#\u00a0<em><strong>wget http:\/\/dansguardian.org\/downloads\/2\/Stable\/dansguardian-2.10.1.1.tar.gz<\/strong><\/em><\/p>\n<p>Extract the tar file:<\/p>\n<p>]#\u00a0<em><strong>tar -xvf dansguardian-2.10.1.1.tar.gz<\/strong><\/em><\/p>\n<p>Go to the dansguardian folder<\/p>\n<p>]# <em><strong>cd dansguardian-2.10.1.1<\/strong><\/em><\/p>\n<p>Run the configuration command. It will be good to do the default configurations<\/p>\n<p>]# <em><strong>useradd\u00a0dansguardian<\/strong><\/em><\/p>\n<p>]# <em><strong>.\/configure &#8211;with-proxyuser=dansguardian &#8211;with-proxygroup=dansguardian<\/strong><\/em><\/p>\n<p>]# <em><strong>make<\/strong><\/em><\/p>\n<p>]# <em><strong>make install<\/strong><\/em><\/p>\n<p>You may see an error: &#8220;downloadmanagers\/fancy.cpp:507:72: error: \u2018snprintf\u2019 was not declared in this scope&#8221;. Do not panic. Just add the following line with # in the beginning sections of the file &#8220;src\/downloadmanagers\/fancy.cpp&#8221;<\/p>\n<p>#include\u00a0&lt;cstdio&gt;<\/p>\n<p>Verify if dansguardian is running. Since it listens to port 8080 by default, check using this command:<\/p>\n<p>]# <em><strong>netstat -na | grep 8080<\/strong><\/em><br \/>\ntcp \u00a0 \u00a0 0 \u00a0 \u00a00 \u00a0 0.0.0.0:8080 \u00a0 \u00a0 \u00a0 0.0.0.0:* \u00a0 \u00a0 \u00a0LISTEN<\/p>\n<p><strong>IMPORTANT:<\/strong> By default dansguardin will try to connect to a proxy server such as Squid installed in local host listening to port 3128 to access the internet.<\/p>\n<p>From a users desktop browser, try using this host as the proxy (with listening port TCP 8080) in the browser setting, and check if any simple website can be accessed.<\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>DansGuardian is a wonderful application that is easy to use and works well with proxy servers such as squid to filter web contents. This is <a class=\"mh-excerpt-more\" href=\"http:\/\/shijuvarghese.com\/?p=362\" title=\"Installing Dansguardian in CentOS 7\">[&#8230;]<\/a><\/p>\n<\/div>","protected":false},"author":1,"featured_media":366,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3,18],"tags":[],"class_list":["post-362","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-linux","category-webproxy"],"_links":{"self":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/362","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=362"}],"version-history":[{"count":4,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions"}],"predecessor-version":[{"id":367,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/posts\/362\/revisions\/367"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=\/wp\/v2\/media\/366"}],"wp:attachment":[{"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=362"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=362"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/shijuvarghese.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=362"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}