<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Anupindi007</id>
	<title>LinuxMCE - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.linuxmce.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Anupindi007"/>
	<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php/Special:Contributions/Anupindi007"/>
	<updated>2026-07-22T01:28:51Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.44.0</generator>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21550</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21550"/>
		<updated>2009-10-30T14:22:06Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* DHCP Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
    &lt;br /&gt;
    Troubleshooting:&lt;br /&gt;
    1.  Still not working restart the system once&lt;br /&gt;
    2.  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, &lt;br /&gt;
    and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq &lt;br /&gt;
    and shorewall services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth0&lt;br /&gt;
# iface eth0 inet dhcp&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth1 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install and configure the Dansguardian Webmin module:&lt;br /&gt;
    1.Open browser &amp;amp; login as madmin(sudo user) https://192.168.80.1:10000&lt;br /&gt;
    &lt;br /&gt;
    2.Go to Webmin &amp;gt; Webmin Configuration &amp;gt; Webmin Modules&lt;br /&gt;
    Select &amp;quot;From ftp or http URL&amp;quot; and paste the link below into the dialog box and click Install Module. &lt;br /&gt;
   (http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel)&lt;br /&gt;
    &lt;br /&gt;
    Observe: The following modules have been successfully installed and added to your access control list :&lt;br /&gt;
    DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Trouble shooting:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first time you try to run the dg module, you&#039;ll get errors such as:&lt;br /&gt;
    Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths).  &lt;br /&gt;
    (Expected location: /sbin/dansguardian)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The problem is that the we are using different directory locations for many of the files.&lt;br /&gt;
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed.  &lt;br /&gt;
&lt;br /&gt;
For instance, our binary is in &#039;&#039;&#039;/usr/sbin/dansguardian&#039;&#039;&#039; instead of &#039;&#039;&#039;/sbin/dansguardian&#039;&#039;&#039;, so change that.&lt;br /&gt;
&lt;br /&gt;
Confirm the locations for the rest of the files by running&lt;br /&gt;
&lt;br /&gt;
 find / -name dansguardian&lt;br /&gt;
 results may show:&lt;br /&gt;
    /usr/share/webmin/dansguardian&lt;br /&gt;
    /usr/share/lintian/overrides/dansguardian&lt;br /&gt;
    /usr/share/doc/dansguardian&lt;br /&gt;
    /usr/share/dansguardian&lt;br /&gt;
    /usr/sbin/dansguardian&lt;br /&gt;
    /var/log/dansguardian&lt;br /&gt;
    /etc/webmin/dansguardian&lt;br /&gt;
    /etc/init.d/dansguardian&lt;br /&gt;
    /etc/logrotate.d/dansguardian&lt;br /&gt;
    /etc/dansguardian&lt;br /&gt;
&lt;br /&gt;
When you&#039;ve finished replacing all of the locations, hit save on the config page and then &amp;quot;stop &amp;amp; restart DG&amp;quot; on the top right of the main DG page.&lt;br /&gt;
&lt;br /&gt;
Then it should work!  If not, check your syslog for errors.&lt;br /&gt;
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21321</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21321"/>
		<updated>2009-10-05T16:16:53Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Draft page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
    &lt;br /&gt;
    Troubleshooting:&lt;br /&gt;
    1.  Still not working restart the system once&lt;br /&gt;
    2.  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, &lt;br /&gt;
    and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq &lt;br /&gt;
    and shorewall services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install and configure the Dansguardian Webmin module:&lt;br /&gt;
    1.Open browser &amp;amp; login as madmin(sudo user) https://192.168.80.1:10000&lt;br /&gt;
    &lt;br /&gt;
    2.Go to Webmin &amp;gt; Webmin Configuration &amp;gt; Webmin Modules&lt;br /&gt;
    Select &amp;quot;From ftp or http URL&amp;quot; and paste the link below into the dialog box and click Install Module. &lt;br /&gt;
   (http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel)&lt;br /&gt;
    &lt;br /&gt;
    Observe: The following modules have been successfully installed and added to your access control list :&lt;br /&gt;
    DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Trouble shooting:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first time you try to run the dg module, you&#039;ll get errors such as:&lt;br /&gt;
    Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths).  &lt;br /&gt;
    (Expected location: /sbin/dansguardian)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The problem is that the we are using different directory locations for many of the files.&lt;br /&gt;
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed.  &lt;br /&gt;
&lt;br /&gt;
For instance, our binary is in &#039;&#039;&#039;/usr/sbin/dansguardian&#039;&#039;&#039; instead of &#039;&#039;&#039;/sbin/dansguardian&#039;&#039;&#039;, so change that.&lt;br /&gt;
&lt;br /&gt;
Confirm the locations for the rest of the files by running&lt;br /&gt;
&lt;br /&gt;
 find / -name dansguardian&lt;br /&gt;
 results may show:&lt;br /&gt;
    /usr/share/webmin/dansguardian&lt;br /&gt;
    /usr/share/lintian/overrides/dansguardian&lt;br /&gt;
    /usr/share/doc/dansguardian&lt;br /&gt;
    /usr/share/dansguardian&lt;br /&gt;
    /usr/sbin/dansguardian&lt;br /&gt;
    /var/log/dansguardian&lt;br /&gt;
    /etc/webmin/dansguardian&lt;br /&gt;
    /etc/init.d/dansguardian&lt;br /&gt;
    /etc/logrotate.d/dansguardian&lt;br /&gt;
    /etc/dansguardian&lt;br /&gt;
&lt;br /&gt;
When you&#039;ve finished replacing all of the locations, hit save on the config page and then &amp;quot;stop &amp;amp; restart DG&amp;quot; on the top right of the main DG page.&lt;br /&gt;
&lt;br /&gt;
Then it should work!  If not, check your syslog for errors.&lt;br /&gt;
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21257</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21257"/>
		<updated>2009-09-13T18:55:40Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
    &lt;br /&gt;
    Troubleshooting:&lt;br /&gt;
    1.  Still not working restart the system once&lt;br /&gt;
    2.  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, &lt;br /&gt;
    and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq &lt;br /&gt;
    and shorewall services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install and configure the Dansguardian Webmin module:&lt;br /&gt;
    1.Open browser &amp;amp; login as madmin(sudo user) https://192.168.80.1:10000&lt;br /&gt;
    &lt;br /&gt;
    2.Go to Webmin &amp;gt; Webmin Configuration &amp;gt; Webmin Modules&lt;br /&gt;
    Select &amp;quot;From ftp or http URL&amp;quot; and paste the link below into the dialog box and click Install Module. &lt;br /&gt;
   (http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel)&lt;br /&gt;
    &lt;br /&gt;
    Observe: The following modules have been successfully installed and added to your access control list :&lt;br /&gt;
    DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Trouble shooting:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first time you try to run the dg module, you&#039;ll get errors such as:&lt;br /&gt;
    Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths).  &lt;br /&gt;
    (Expected location: /sbin/dansguardian)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The problem is that the we are using different directory locations for many of the files.&lt;br /&gt;
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed.  &lt;br /&gt;
&lt;br /&gt;
For instance, our binary is in &#039;&#039;&#039;/usr/sbin/dansguardian&#039;&#039;&#039; instead of &#039;&#039;&#039;/sbin/dansguardian&#039;&#039;&#039;, so change that.&lt;br /&gt;
&lt;br /&gt;
Confirm the locations for the rest of the files by running&lt;br /&gt;
&lt;br /&gt;
 find / -name dansguardian&lt;br /&gt;
 results may show:&lt;br /&gt;
    /usr/share/webmin/dansguardian&lt;br /&gt;
    /usr/share/lintian/overrides/dansguardian&lt;br /&gt;
    /usr/share/doc/dansguardian&lt;br /&gt;
    /usr/share/dansguardian&lt;br /&gt;
    /usr/sbin/dansguardian&lt;br /&gt;
    /var/log/dansguardian&lt;br /&gt;
    /etc/webmin/dansguardian&lt;br /&gt;
    /etc/init.d/dansguardian&lt;br /&gt;
    /etc/logrotate.d/dansguardian&lt;br /&gt;
    /etc/dansguardian&lt;br /&gt;
&lt;br /&gt;
When you&#039;ve finished replacing all of the locations, hit save on the config page and then &amp;quot;stop &amp;amp; restart DG&amp;quot; on the top right of the main DG page.&lt;br /&gt;
&lt;br /&gt;
Then it should work!  If not, check your syslog for errors.&lt;br /&gt;
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21256</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21256"/>
		<updated>2009-09-13T18:54:23Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
    &lt;br /&gt;
    Troubleshooting:&lt;br /&gt;
    #  Still not working restart the system once&lt;br /&gt;
    #  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, &lt;br /&gt;
    and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq &lt;br /&gt;
    and shorewall services.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install and configure the Dansguardian Webmin module:&lt;br /&gt;
    1.Open browser &amp;amp; login as madmin(sudo user) https://192.168.80.1:10000&lt;br /&gt;
    &lt;br /&gt;
    2.Go to Webmin &amp;gt; Webmin Configuration &amp;gt; Webmin Modules&lt;br /&gt;
    Select &amp;quot;From ftp or http URL&amp;quot; and paste the link below into the dialog box and click Install Module. &lt;br /&gt;
   (http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel)&lt;br /&gt;
    &lt;br /&gt;
    Observe: The following modules have been successfully installed and added to your access control list :&lt;br /&gt;
    DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Trouble shooting:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first time you try to run the dg module, you&#039;ll get errors such as:&lt;br /&gt;
    Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths).  &lt;br /&gt;
    (Expected location: /sbin/dansguardian)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The problem is that the we are using different directory locations for many of the files.&lt;br /&gt;
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed.  &lt;br /&gt;
&lt;br /&gt;
For instance, our binary is in &#039;&#039;&#039;/usr/sbin/dansguardian&#039;&#039;&#039; instead of &#039;&#039;&#039;/sbin/dansguardian&#039;&#039;&#039;, so change that.&lt;br /&gt;
&lt;br /&gt;
Confirm the locations for the rest of the files by running&lt;br /&gt;
&lt;br /&gt;
 find / -name dansguardian&lt;br /&gt;
 results may show:&lt;br /&gt;
    /usr/share/webmin/dansguardian&lt;br /&gt;
    /usr/share/lintian/overrides/dansguardian&lt;br /&gt;
    /usr/share/doc/dansguardian&lt;br /&gt;
    /usr/share/dansguardian&lt;br /&gt;
    /usr/sbin/dansguardian&lt;br /&gt;
    /var/log/dansguardian&lt;br /&gt;
    /etc/webmin/dansguardian&lt;br /&gt;
    /etc/init.d/dansguardian&lt;br /&gt;
    /etc/logrotate.d/dansguardian&lt;br /&gt;
    /etc/dansguardian&lt;br /&gt;
&lt;br /&gt;
When you&#039;ve finished replacing all of the locations, hit save on the config page and then &amp;quot;stop &amp;amp; restart DG&amp;quot; on the top right of the main DG page.&lt;br /&gt;
&lt;br /&gt;
Then it should work!  If not, check your syslog for errors.&lt;br /&gt;
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21255</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21255"/>
		<updated>2009-09-13T18:50:34Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Webmin and Dansguardian webmin configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install and configure the Dansguardian Webmin module:&lt;br /&gt;
    1.Open browser &amp;amp; login as madmin(sudo user) https://192.168.80.1:10000&lt;br /&gt;
    &lt;br /&gt;
    2.Go to Webmin &amp;gt; Webmin Configuration &amp;gt; Webmin Modules&lt;br /&gt;
    Select &amp;quot;From ftp or http URL&amp;quot; and paste the link below into the dialog box and click Install Module. &lt;br /&gt;
   (http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel)&lt;br /&gt;
    &lt;br /&gt;
    Observe: The following modules have been successfully installed and added to your access control list :&lt;br /&gt;
    DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Trouble shooting:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The first time you try to run the dg module, you&#039;ll get errors such as:&lt;br /&gt;
    Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths).  &lt;br /&gt;
    (Expected location: /sbin/dansguardian)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;Solution:&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The problem is that the we are using different directory locations for many of the files.&lt;br /&gt;
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed.  &lt;br /&gt;
&lt;br /&gt;
For instance, our binary is in &#039;&#039;&#039;/usr/sbin/dansguardian&#039;&#039;&#039; instead of &#039;&#039;&#039;/sbin/dansguardian&#039;&#039;&#039;, so change that.&lt;br /&gt;
&lt;br /&gt;
Confirm the locations for the rest of the files by running&lt;br /&gt;
&lt;br /&gt;
 find / -name dansguardian&lt;br /&gt;
 results may show:&lt;br /&gt;
    /usr/share/webmin/dansguardian&lt;br /&gt;
    /usr/share/lintian/overrides/dansguardian&lt;br /&gt;
    /usr/share/doc/dansguardian&lt;br /&gt;
    /usr/share/dansguardian&lt;br /&gt;
    /usr/sbin/dansguardian&lt;br /&gt;
    /var/log/dansguardian&lt;br /&gt;
    /etc/webmin/dansguardian&lt;br /&gt;
    /etc/init.d/dansguardian&lt;br /&gt;
    /etc/logrotate.d/dansguardian&lt;br /&gt;
    /etc/dansguardian&lt;br /&gt;
&lt;br /&gt;
When you&#039;ve finished replacing all of the locations, hit save on the config page and then &amp;quot;stop &amp;amp; restart DG&amp;quot; on the top right of the main DG page.&lt;br /&gt;
&lt;br /&gt;
Then it should work!  If not, check your syslog for errors.&lt;br /&gt;
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21254</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21254"/>
		<updated>2009-09-13T18:32:40Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Webmin and Dansguardian webmin configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install and configure the Dansguardian Webmin module:&lt;br /&gt;
    Open browser &amp;amp; login as maadmin(sudo user) https://192.168.80.1:10000&lt;br /&gt;
    &lt;br /&gt;
    Go to Webmin &amp;gt; Webmin Configuration &amp;gt; Webmin Modules&lt;br /&gt;
    &lt;br /&gt;
    Select &amp;quot;From ftp or http URL&amp;quot; and paste the link below into the dialog box and click Install Module. (http://downloads.sourceforge.net/project/dgwebminmodule/dgwebmin-devel/0.7.0beta1b/dgwebmin-0.7.0beta1b.wbm?use_mirror=voxel)&lt;br /&gt;
&lt;br /&gt;
The following modules have been successfully installed and added to your access control list :&lt;br /&gt;
DansGuardian Web Content Filter in /usr/share/webmin/dansguardian (4612 kB) under category Servers&lt;br /&gt;
&lt;br /&gt;
The first time you try to run the dg module, you&#039;ll get errors such as:&lt;br /&gt;
Warning - DansGuardian binary file not found, maybe you need to update your module config (especially the directory paths).  (Expected location: /sbin/dansguardian)&lt;br /&gt;
&lt;br /&gt;
The problem is that the we are using differnet directory locations for many of the files.&lt;br /&gt;
&lt;br /&gt;
So, look at the Configurable options for DansGuardian Web Content Filter (in the upper left corner of the dg page) - and nearly every path needs to be changed.  For instance, our binary is in /usr/sbin/dansguardian instead of /sbin/dansguardian, so change that.&lt;br /&gt;
&lt;br /&gt;
Confirm the locations for the rest of the files by running #find as follows (or just use these locations)&lt;br /&gt;
dcerouter_1001275:/usr/local/sbin# find / -name dansguardian&lt;br /&gt;
/usr/share/webmin/dansguardian&lt;br /&gt;
/usr/share/lintian/overrides/dansguardian&lt;br /&gt;
/usr/share/doc/dansguardian&lt;br /&gt;
/usr/share/dansguardian&lt;br /&gt;
/usr/sbin/dansguardian&lt;br /&gt;
/var/log/dansguardian&lt;br /&gt;
/etc/webmin/dansguardian&lt;br /&gt;
/etc/init.d/dansguardian&lt;br /&gt;
/etc/logrotate.d/dansguardian&lt;br /&gt;
/etc/dansguardian&lt;br /&gt;
dcerouter_1001275:/usr/local/sbin#&lt;br /&gt;
&lt;br /&gt;
When you&#039;ve finished replacing all of the locations, hit save on the config page and then &amp;quot;stop &amp;amp; restart DG&amp;quot; on the top right of the main DG page.&lt;br /&gt;
&lt;br /&gt;
Then it should work!  If not, check your syslog for errors.&lt;br /&gt;
You should be able to check the status of DG, review logs with a good viewer, and view and edit many of the detailed configurations.&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21253</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21253"/>
		<updated>2009-09-13T18:20:58Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Webmin and Dansguardian webmin configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
Login into Webmin(open your web browser and enter the following): &lt;br /&gt;
  https://192.168.80.1:10000/&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21252</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21252"/>
		<updated>2009-09-13T18:13:31Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Webmin and Dansguardian webmin configuration==&lt;br /&gt;
#  &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21251</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21251"/>
		<updated>2009-09-13T18:10:20Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Installing webmin and dansguardian webmin module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download and install webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
    &lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21249</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21249"/>
		<updated>2009-09-13T18:02:40Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing webmin and dansguardian webmin module==&lt;br /&gt;
First you need to install the additional packages:&lt;br /&gt;
    sudo aptitude install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Download the latest webmin package:&lt;br /&gt;
    wget http://prdownloads.sourceforge.net/webadmin/webmin_1.480_all.deb &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Install webmin package:&lt;br /&gt;
    sudo dpkg -i webmin_1.480_all.deb&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21247</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21247"/>
		<updated>2009-09-13T17:40:48Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Shorewall */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Tutorials]]&lt;br /&gt;
{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;copy configuration files (take backup of existing files):&#039;&#039;&#039;&lt;br /&gt;
   cp /usr/share/doc/shorewall-common/default-config/* /etc/shorewall/ &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21119</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21119"/>
		<updated>2009-09-01T00:59:59Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dhcp===&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dns server===&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21118</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21118"/>
		<updated>2009-09-01T00:58:57Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Shorewall */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly:&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21117</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21117"/>
		<updated>2009-09-01T00:58:26Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Shorewall */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21116</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21116"/>
		<updated>2009-09-01T00:57:19Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Shorewall */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&#039;&#039;&#039;Bold text&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21115</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21115"/>
		<updated>2009-09-01T00:56:19Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Shorewall */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&#039;&#039;&#039;Bold text&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21114</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21114"/>
		<updated>2009-09-01T00:55:57Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Shorewall */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&#039;&#039;&#039;set &amp;quot;shorewall&amp;quot; auto start at boot time:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&#039;&#039;&#039;&#039;&#039;&#039;Bold text&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;&amp;quot;rules&amp;quot; allows to set firewall rules:&#039;&#039;&#039;&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;   # check shorewall working or not properly&#039;&#039;&#039;&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21113</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21113"/>
		<updated>2009-09-01T00:51:46Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
set &amp;quot;shorewall&amp;quot; auto start at boot time:&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;rules&amp;quot; allows to set firewall rules:&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
   # check shorewall working or not properly&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21112</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21112"/>
		<updated>2009-09-01T00:50:04Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
set &amp;quot;shorewall&amp;quot; auto start at boot time:&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;rules&amp;quot; allows to set firewall rules:&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
   # check shorewall working or not properly&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21111</id>
		<title>Installing Dansguardian on LinuxMCE</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Installing_Dansguardian_on_LinuxMCE&amp;diff=21111"/>
		<updated>2009-09-01T00:48:29Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: New page: {| align=&amp;quot;right&amp;quot;   | __TOC__   |} ===Draft page=== Still under draft and yet to finalize... Thanks  ==Basics== DansGuardian is an award winning Open Source web content filter which current...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| align=&amp;quot;right&amp;quot;&lt;br /&gt;
  | __TOC__&lt;br /&gt;
  |}&lt;br /&gt;
===Draft page===&lt;br /&gt;
Still under draft and yet to finalize...&lt;br /&gt;
Thanks&lt;br /&gt;
&lt;br /&gt;
==Basics==&lt;br /&gt;
DansGuardian is an award winning Open Source web content filter which currently runs on Linux, FreeBSD, OpenBSD, NetBSD, Mac OS X, HP-UX, and Solaris. It filters the actual content of pages based on many methods including phrase matching, PICS filtering and URL filtering. It does not purely filter based on a banned list of sites like lesser totally commercial filters.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is designed to be completely flexible and allows you to tailor the filtering to your exact needs. It can be as draconian or as unobstructive as you want. The default settings are geared towards what a primary school might want but DansGuardian puts you in control of what you want to block.&lt;br /&gt;
&lt;br /&gt;
DansGuardian is a true web content filter. We will see how to configure DansGuardian on Ubuntu Linux along with LinuxMCE.&lt;br /&gt;
&lt;br /&gt;
==Installing packages==&lt;br /&gt;
===tinyproxy===&lt;br /&gt;
    apt-get install tinyproxy&lt;br /&gt;
&lt;br /&gt;
===shorewall===&lt;br /&gt;
    apt-get install shorewall&lt;br /&gt;
&lt;br /&gt;
===dansguardian===&lt;br /&gt;
    apt-get install dansguardian&lt;br /&gt;
&lt;br /&gt;
==dhcp==&lt;br /&gt;
    apt-get install dhcp3-server&lt;br /&gt;
&lt;br /&gt;
==dns server==&lt;br /&gt;
    apt-get install dnsmasq &lt;br /&gt;
&lt;br /&gt;
Optional:&lt;br /&gt;
&lt;br /&gt;
==Dansguardian Web Log Viewer==&lt;br /&gt;
    apt-get install dglog&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Configure Packages==&lt;br /&gt;
===Tinyproxy===&lt;br /&gt;
    vi /etc/tinyproxy/tinyproxy.conf  &lt;br /&gt;
Make the following changes&lt;br /&gt;
# User root &lt;br /&gt;
# Group root &lt;br /&gt;
# Allow 192.168.80.0/25&lt;br /&gt;
&lt;br /&gt;
===Dansguardian===&lt;br /&gt;
   vi  /etc/dansguardian/dansguardian.conf&lt;br /&gt;
Make the following changes:&lt;br /&gt;
# Delete UNCONFIGURED line&lt;br /&gt;
# filterport = 8081&lt;br /&gt;
# proxyip = 192.168.80.1 &lt;br /&gt;
# proxyport = 8888&lt;br /&gt;
# usernameidmethodproxyauth = off&lt;br /&gt;
&lt;br /&gt;
===Shorewall===&lt;br /&gt;
Make the following changes:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
set &amp;quot;shorewall&amp;quot; auto start at boot time:&lt;br /&gt;
   vi /etc/default/shorewall&lt;br /&gt;
# startup = 1&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;zones&amp;quot; tells the firewall to zone each name for the rest configuration file e.g. loc, net:&lt;br /&gt;
   vi /etc/shorewall/zones&lt;br /&gt;
# #ZONES TYPE OPTION IN OUT&lt;br /&gt;
# #OPTIONS OPTIONS&lt;br /&gt;
# fw firewall&lt;br /&gt;
# net ipv4&lt;br /&gt;
# loc ipv4&lt;br /&gt;
# #Last Line - ADD ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;interfaces&amp;quot; tells the firewall which is internal and external interfaces:&lt;br /&gt;
   vi /etc/shorewall/interfaces&lt;br /&gt;
# #ZONE INTERFACE BROADCAST OPTIONS&lt;br /&gt;
# #Note assuming &amp;quot;eth1&amp;quot;- is internal ip &amp;amp; &amp;quot;eth0&amp;quot;- is external ip&lt;br /&gt;
# net eth0 detect dhcp,tcpflags&lt;br /&gt;
# loc eth1 detect dhcp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;masq&amp;quot; tells the firewall that internal network(eth1)is connected through external network(eth0):&lt;br /&gt;
   vi /etc/shorewall/masq&lt;br /&gt;
# #INTERFACE SUBNET ADDRESS PROTO PORT(S) IPSEC&lt;br /&gt;
# eth0 eth1&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;policy&amp;quot; tells the firewall that how should handle the requests:&lt;br /&gt;
   vi /etc/shorewall/policy&lt;br /&gt;
# loc all ACCEPT&lt;br /&gt;
# net all DROP&lt;br /&gt;
# fw  all ACCEPT&lt;br /&gt;
# all all REJECT&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;shorewall.conf&amp;quot; we will configure ip_forwarding:&lt;br /&gt;
   vi /etc/shorewall/shorewall.conf&lt;br /&gt;
# IP_FORWARDING=On&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;quot;rules&amp;quot; allows to set firewall rules:&lt;br /&gt;
   vi /etc/shorewall/rules&lt;br /&gt;
# SECTION NEW&lt;br /&gt;
# ACCEPT net fw tcp 80&lt;br /&gt;
# REDIRECT loc 8081 tcp www&lt;br /&gt;
# ACCEPT loc fw tcp 22&lt;br /&gt;
# ACCEPT net fw icmp&lt;br /&gt;
# ACCEPT loc loc icmp&lt;br /&gt;
# #LAST LINE --ADD YOUR ENTRIES ABOVE THIS ONE - DO NOT REMOVE&lt;br /&gt;
&lt;br /&gt;
   # check shorewall working or not properly&lt;br /&gt;
   shorewall check&lt;br /&gt;
&lt;br /&gt;
==Restart Applications==&lt;br /&gt;
    /etc/init.d/dnsmasq restart &lt;br /&gt;
    /etc/init.d/tinyproxy restart&lt;br /&gt;
    /etc/init.d/shorewall restart&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
==DHCP Server==&lt;br /&gt;
Note: you need not to make any changes if you are working on single system or dhcp is already running on your local network interface(any changes dhcpd.conf or interfaces respective files)&lt;br /&gt;
&lt;br /&gt;
  vi /etc/default/dhcp3-server&lt;br /&gt;
&lt;br /&gt;
# INTERFACE=&amp;quot;eth1&amp;quot;&lt;br /&gt;
&lt;br /&gt;
  vi /etc/dhcp3/dhcpd.conf&lt;br /&gt;
# #change the subnet, netmask, range, dns, router as per your settings&lt;br /&gt;
# default-leasetime=86400&lt;br /&gt;
# max-leasetime=60480&lt;br /&gt;
# subnet 192.168.0.0 netmask 255.255.255.0{&lt;br /&gt;
# range  192.168.0.2  192.168.1.99;&lt;br /&gt;
# option domain-name-server 192.168.80.1;&lt;br /&gt;
# option routers 192.168.80.2;&lt;br /&gt;
#}&lt;br /&gt;
&lt;br /&gt;
set static ip address:&lt;br /&gt;
  vi /etc/network/interfaces&lt;br /&gt;
# auto lo&lt;br /&gt;
#   iface lo inet loopback&lt;br /&gt;
# auto eth1&lt;br /&gt;
# iface eth0 inet static&lt;br /&gt;
#   address 192.168.80.1&lt;br /&gt;
#   netmask 255.255.255.0&lt;br /&gt;
&lt;br /&gt;
  #restart dhcp&lt;br /&gt;
# /etc/init.d/dhcpd restart&lt;br /&gt;
&lt;br /&gt;
==Troubleshooting==&lt;br /&gt;
#  Still not working restart the system once&lt;br /&gt;
#  Check all service started are not &amp;quot;ps -ef | grep &amp;lt;service&amp;gt;&amp;quot; service - apache2, dnsmasq, tinyproxy, shorewall, dansguardian, and dhcpd.  If any of the service is not starting, start the service sh /etc/init.d.&amp;lt;service&amp;gt; start.  Check especially dnsmasq and shorewall services.&lt;br /&gt;
&lt;br /&gt;
==Adding BlackList==&lt;br /&gt;
&lt;br /&gt;
A BlackList is a precompiled list of sites that are deemed potentially worrisome. &lt;br /&gt;
     cd /etc/dansguardian    &lt;br /&gt;
     wget http://urlblacklist.com/downloads/OriginalUpdateBL&lt;br /&gt;
     vi OriginalUpdateBL&lt;br /&gt;
#modify line 68 by switching the listed URL with the following:&lt;br /&gt;
#http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
&lt;br /&gt;
    chmod 777 /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
    /etc/dansguardian/OriginalUpdateBL&lt;br /&gt;
&lt;br /&gt;
when script is finished if you see any errors.&lt;br /&gt;
    /etc/init.d/dansguardian restart&lt;br /&gt;
&lt;br /&gt;
if the above script is not creating blacklists directory and creating blacklists file then follow the following:&lt;br /&gt;
    cd /etc/dansguardian  &lt;br /&gt;
    wget http://urlblacklist.com/cgi-bin/commercialdownload.pl?type=download&amp;amp;file=bigblacklist&lt;br /&gt;
    tar -xvf bigblacklist.tar.gz&lt;br /&gt;
    chown -R root:root blacklists&lt;br /&gt;
    chmod -R 755 blacklists&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;gallery&amp;gt;&lt;br /&gt;
Image:dansgaurdian.jpg|Caption1&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
Image:Example.jpg|Caption2&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;br /&gt;
&amp;lt;/gallery&amp;gt;&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
	<entry>
		<id>http://wiki.linuxmce.org/index.php?title=Short_Howto_on_Wiki&amp;diff=21110</id>
		<title>Short Howto on Wiki</title>
		<link rel="alternate" type="text/html" href="http://wiki.linuxmce.org/index.php?title=Short_Howto_on_Wiki&amp;diff=21110"/>
		<updated>2009-09-01T00:45:46Z</updated>

		<summary type="html">&lt;p&gt;Anupindi007: /* Creating a new page */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;[[Category: Wiki administration]]&lt;br /&gt;
== Creating a new page ==&lt;br /&gt;
To create a new page you don&#039;t really need a wiki-link that points to it, you only need to write this in your location bar:&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;http://wiki.linuxmce.org/index.php/Installing_Dansguardian_on_LinuxMCE&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This way we will not have links pointing to dead / unfinished pages.&lt;br /&gt;
http://wiki.linuxmce.org/index.php/Installing_Dansguardian_on_LinuxMCE&lt;br /&gt;
&lt;br /&gt;
== Categories ==&lt;br /&gt;
Look on the [[Special:Categories|Categories]] page to see the categories the where allready entered and click on one of the categories to see the documents related to it. If you want to add your document in a existing category or wish to create a new one, add this wiki tag for each category at the end of your page: &lt;br /&gt;
&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ Category : First Category Name ]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
 &amp;lt;nowiki&amp;gt;[[ Category : Second Category Name ]]&amp;lt;/nowiki&amp;gt;&lt;br /&gt;
&lt;br /&gt;
== Tree like structure using Categories ==&lt;br /&gt;
MediaWiki uses the concept of categories to help you separate information in logical related pages. Sometimes you want to create a tree-like structure to organize that information, this can be done by using the concept of subcategories. To make a category &#039;&#039;X&#039;&#039; to act as a subcategory of category &#039;&#039;Y&#039;&#039;, just add the wiki tag: &#039;&#039;&#039;&amp;lt;nowiki&amp;gt;[[ Category : Y ]]&amp;lt;/nowiki&amp;gt;&#039;&#039;&#039; in the &#039;&#039;X&#039;&#039; category description page, this way you will make &#039;&#039;Y&#039;&#039; category the parent of &#039;&#039;X&#039;&#039; category.&lt;br /&gt;
&lt;br /&gt;
===For More Detailed Guide===&lt;br /&gt;
[http://en.wikipedia.org/wiki/Wikipedia:How_to_edit_a_page Detailed Wiki Editing Guide]&lt;/div&gt;</summary>
		<author><name>Anupindi007</name></author>
	</entry>
</feed>