<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Scott+Falkiner</id>
	<title>Amahi Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.amahi.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Scott+Falkiner"/>
	<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php/Special:Contributions/Scott_Falkiner"/>
	<updated>2026-04-09T00:39:01Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.34.2</generator>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94106</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94106"/>
		<updated>2015-06-28T08:40:01Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Change DNSMasq config */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work here was based on: https://sfxpt.wordpress.com/2011/02/21/the-best-ad-blocking-method/.&lt;br /&gt;
&lt;br /&gt;
Pixelserv is a webserver which simply serves 1x1 blank pixels. By redirecting web requests for adverts to our pixelserver, ads are replaced by this 1x1 pixel leaving the target webpage intact. This will work on all devices across your network, removing the need for software-based solutions on each device.&lt;br /&gt;
&lt;br /&gt;
A shell script get-adlist.sh will update the list of blocked domains (stored as /etc/dnsmasq.adblock.conf) whever you run it. You can also manually edit the list and remove domains that you wish to see (in the case of wrongly blocked domains).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* You also need a file editing tool. Vi will suffice, however nano is a bit more user friendly.&lt;br /&gt;
 yum install nano&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
This part of the process creates a file on your HDA which identifies where adverts originate from, and where to redirect them to.&lt;br /&gt;
* Create a new shell file&lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Copy and paste the following into it&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
* Change permissions on the shell file&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Run the shell file&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
DNSMasq reads the adlist file and redirects DNS requests as configured.&lt;br /&gt;
* Add the block list to DNSMasq configuration&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
* Restart DNSMasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
By default, Apache will try to use all IP addresses. We require an IP address later in the process and so we have to tell Apache only to use the standard HDA address.&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
The pixel server is where we're redirecting adverts to. A simple 1x1 pixel is served on the IP address specified.&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses and interfaces where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
* To bring the new interface up and start pixelserv&lt;br /&gt;
 /etc/init.d/pixelserv start&lt;br /&gt;
&lt;br /&gt;
* To stop pixelserv and close the virtual interface&lt;br /&gt;
 /etc/init.d/pixelserv stop&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94101</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94101"/>
		<updated>2015-06-28T08:35:00Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Get Ad List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work here was based on: https://sfxpt.wordpress.com/2011/02/21/the-best-ad-blocking-method/.&lt;br /&gt;
&lt;br /&gt;
Pixelserv is a webserver which simply serves 1x1 blank pixels. By redirecting web requests for adverts to our pixelserver, ads are replaced by this 1x1 pixel leaving the target webpage intact. This will work on all devices across your network, removing the need for software-based solutions on each device.&lt;br /&gt;
&lt;br /&gt;
A shell script get-adlist.sh will update the list of blocked domains (stored as /etc/dnsmasq.adblock.conf) whever you run it. You can also manually edit the list and remove domains that you wish to see (in the case of wrongly blocked domains).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* You also need a file editing tool. Vi will suffice, however nano is a bit more user friendly.&lt;br /&gt;
 yum install nano&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
This part of the process creates a file on your HDA which identifies where adverts originate from, and where to redirect them to.&lt;br /&gt;
* Create a new shell file&lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Copy and paste the following into it&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
* Change permissions on the shell file&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Run the shell file&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
This tells DNSMasq the list of domains and where the should be redirected to&lt;br /&gt;
* Add the block list to DNSMasq configuration&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
* Restart DNSMasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
By default, Apache will try to use all IP addresses. We require an IP address later in the process and so we have to tell Apache only to use the standard HDA address.&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
The pixel server is where we're redirecting adverts to. A simple 1x1 pixel is served on the IP address specified.&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses and interfaces where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
* To bring the new interface up and start pixelserv&lt;br /&gt;
 /etc/init.d/pixelserv start&lt;br /&gt;
&lt;br /&gt;
* To stop pixelserv and close the virtual interface&lt;br /&gt;
 /etc/init.d/pixelserv stop&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94096</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94096"/>
		<updated>2015-06-27T17:58:50Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Fedora 19 */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work here was based on: https://sfxpt.wordpress.com/2011/02/21/the-best-ad-blocking-method/.&lt;br /&gt;
&lt;br /&gt;
Pixelserv is a webserver which simply serves 1x1 blank pixels. By redirecting web requests for adverts to our pixelserver, ads are replaced by this 1x1 pixel leaving the target webpage intact. This will work on all devices across your network, removing the need for software-based solutions on each device.&lt;br /&gt;
&lt;br /&gt;
A shell script get-adlist.sh will update the list of blocked domains (stored as /etc/dnsmasq.adblock.conf) whever you run it. You can also manually edit the list and remove domains that you wish to see (in the case of wrongly blocked domains).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* You also need a file editing tool. Vi will suffice, however nano is a bit more user friendly.&lt;br /&gt;
 yum install nano&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
This part of the process creates a file on your HDA which identifies where adverts originate from, and then redirects their addresses.&lt;br /&gt;
* Create a new shell file&lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Copy and paste the following into it&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
* Change permissions on the shell file&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Run the shell file&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
This tells DNSMasq the list of domains and where the should be redirected to&lt;br /&gt;
* Add the block list to DNSMasq configuration&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
* Restart DNSMasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
By default, Apache will try to use all IP addresses. We require an IP address later in the process and so we have to tell Apache only to use the standard HDA address.&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
The pixel server is where we're redirecting adverts to. A simple 1x1 pixel is served on the IP address specified.&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses and interfaces where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
* To bring the new interface up and start pixelserv&lt;br /&gt;
 /etc/init.d/pixelserv start&lt;br /&gt;
&lt;br /&gt;
* To stop pixelserv and close the virtual interface&lt;br /&gt;
 /etc/init.d/pixelserv stop&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=94081</id>
		<title>VPNAndroid</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=VPNAndroid&amp;diff=94081"/>
		<updated>2015-06-24T20:38:17Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{{NeedsUpdate}}&lt;br /&gt;
&amp;lt;!--Tested with Nexus 6 on 5.1.1 working however instructions need bringing upto date--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android - HTC Android G1/Dream =&lt;br /&gt;
&lt;br /&gt;
'''NOTE:'''  [https://play.google.com/store/apps/details?id=de.blinkt.openvpn&amp;amp;hl=en OpenVPN for Android] works with the certificates below for ICS 4.0 or greater without rooting your device.  There is no additional configuration required to the HDA or your device (Tested on HTC One X and Samsung Tab 2 also on HTC One V). For Sony Xperia ZR (and I suspect most other Android devices) the following was necessary:&lt;br /&gt;
&lt;br /&gt;
# Download the following files to a known location on your Android device&amp;lt;br /&amp;gt;&lt;br /&gt;
#* [http://dl.amahi.org/vpn/AmahiHDAClient.crt AmahiHDAClient.crt]&amp;lt;br /&amp;gt;&lt;br /&gt;
#* [http://dl.amahi.org/vpn/AmahiHDAClient.key AmahiHDAClient.key]&amp;lt;br /&amp;gt;&lt;br /&gt;
#* [http://dl.amahi.org/vpn/ca-cert.crt ca-cert.crt]&lt;br /&gt;
# Launch the OpenVPN app, Add Profile and go to the Basic configuration page&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-1-AddProfile.png|180px]] [[File:OpenVPNAndroid-2-ChooseBasic.png|180px]]&lt;br /&gt;
# Enter your server address - the Dynamic DNS name works for me, I guess the fixed IP address would as well&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-3-EnterServerAddress.png|180px]]&lt;br /&gt;
# Select &amp;quot;User/PW + Certificates&amp;quot; from the list of Types (the certificates alone are not enough)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-4-SelectType.png|180px]] [[File:OpenVPNAndroid-5-SelectedType.png|180px]]&lt;br /&gt;
# In turn, select the CA Certificate, Client Certificate and Client Key files that you downloaded to your device; note that the app will disable the file type it doesn't think will work so beware if you rename these files&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-6-SelectCertKey.png|180px]]&lt;br /&gt;
# Enter your username - a general user with access to the shares and apps on your HDA&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-7-EnterUsername.png|180px]]&lt;br /&gt;
# Go back to the list of profiles and click on this new profile to start connecting to your HDA: you will be alerted to the fact that OpenVPN for Android can intercept network traffic and asked to trust the application (ensure that your device is not already connected to the same network - test from a different location or turn of wifi and use your mobile data connection)&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-8-TrustApplication.png|180px]]&lt;br /&gt;
# Enter your password - you can decide whether or not the application should save the password&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-9-EnterPassword.png|180px]]&lt;br /&gt;
# Watch for connection messages to go past as Android notifications and you will also see the OpenVPN log&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-A-Connecting.png|180px]]&lt;br /&gt;
# Once you get a successful connection you will see a key in the notification bar; selecting this notification will show the status of the connection ind give you some options for working with it&amp;lt;br /&amp;gt;[[File:OpenVPNAndroid-B-Connected.png|180px]]&lt;br /&gt;
# You should now be able to open your favourite app used to access files on your HDA, be that the Amahi app, Plex client, OwnCloud, etc. (note that some of these apps may need to be switched between Local and Remote connection type)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
This guide is written for a HTC Android G1/Dream phone rooted with Cyanongenmod 5.&lt;br /&gt;
&lt;br /&gt;
[update March 24, 2011: Tested and works with Cyanogenmod 7.0, thus any CM7 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update August 8, 2011: Tested and works with Cyanogenmod 7.1, thus any CM 7.1 compatible phone]&lt;br /&gt;
&lt;br /&gt;
[update September 9, 2011: Tested and works with MIUI 1.9.2 on a HTC Droid Incredible 2, should work on any MIUI ROM]&lt;br /&gt;
&lt;br /&gt;
[update 22 March 2013: Tested and works with Android 4.2.2 on Nexus Devices]&lt;br /&gt;
&lt;br /&gt;
In your Linux-based OS computer..&lt;br /&gt;
&lt;br /&gt;
* Download the files here and save them in your /home/username/openvpn folder (where ''username'' is your main users name)(to download, right click &amp;gt; save as):&lt;br /&gt;
** [http://dl.amahi.org/vpn/AmahiHDAClient.crt AmahiHDAClient.crt]&lt;br /&gt;
** [http://dl.amahi.org/vpn/AmahiHDAClient.key AmahiHDAClient.key]&lt;br /&gt;
** [http://dl.amahi.org/vpn/ca-cert.crt ca-cert.crt]&lt;br /&gt;
&lt;br /&gt;
Then, from the terminal run&lt;br /&gt;
&lt;br /&gt;
 cd /home/username/openvpn &lt;br /&gt;
 openssl pkcs12 -export -in AmahiHDAClient.crt -inkey AmahiHDAClient.key -certfile ca-cert.crt -name Amahi -out certs.p12 &lt;br /&gt;
&lt;br /&gt;
You will be asked for a export password for the certs.p12 file - enter amahi twice.&lt;br /&gt;
&lt;br /&gt;
To automate this process, paste the code from [http://wiki.amahi.org/images/f/f9/Automate.script automate.script] in your favorite editor.  Save it &amp;amp; run it with &lt;br /&gt;
 sh &amp;lt;filename&amp;gt;  &lt;br /&gt;
&lt;br /&gt;
You should now have a certs.p12 file in your /home/username/openvpn folder, copy this certs.p12 file to the root of your sdcard on the Android phone.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone..&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Location &amp;amp; Security -&amp;gt; Install from SD card&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will show you certs.p12, select this and enter the password amahi, after it has extracted the certificates, you will be asked to name the certificate, enter Amahi.&lt;br /&gt;
&lt;br /&gt;
Now on the Android phone &lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    Menu -&amp;gt; Settings -&amp;gt; Wireless &amp;amp; networks -&amp;gt; VPN settings -&amp;gt; Add VPN -&amp;gt; Add OpenVPN VPN&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
VPN name = Amahi&lt;br /&gt;
&lt;br /&gt;
Set VPN server = yourHDAnickname.yourhda.com&lt;br /&gt;
&lt;br /&gt;
User authentication = Yes&lt;br /&gt;
&lt;br /&gt;
Set CA certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Set user certificate - Amahi&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Advanced -&amp;gt; LZO compression = Yes&lt;br /&gt;
&lt;br /&gt;
Back&lt;br /&gt;
&lt;br /&gt;
Menu -&amp;gt; Save&lt;br /&gt;
&lt;br /&gt;
You should now see an Amahi entry, click on this to connect. It may ask you for the certificate access password. Then it may ask for your username and password that you use to loginon your HDA. You should see that you are connected, enjoy your VPN connection to your HDA server.&lt;br /&gt;
&lt;br /&gt;
= VPN Client - Android 2.2 - DROID X (Verizon Wireless) =&lt;br /&gt;
Contact me in the forums if you need help setting this up.  If you have a later version of Android such as Gingerbread (Android 2.3) then you can't use this tutorial for setting up openvpn.  You can however use the openvpn configurations if your phone is already set up with openvpn.&lt;br /&gt;
&lt;br /&gt;
[[User:Sag47|Sag47]] 00:51, 5 April 2011 (PDT)&lt;br /&gt;
&lt;br /&gt;
This tutorial is not for the feeble minded.  I tried writing it as best as I could to keep it a &amp;quot;How to VPN&amp;quot; article and not a &amp;quot;How to root my droid&amp;quot; topic.&lt;br /&gt;
&lt;br /&gt;
The default Droid X from Verizon does not come with openvpn installed.  It's a little annoying and you have to be a little tech savvy to get it working.  I am outlining instructions here for how I connected my Droid X to my Amahi HDA.&lt;br /&gt;
&lt;br /&gt;
Some prerequisites:&lt;br /&gt;
* Your phone must be rooted.&lt;br /&gt;
* I am running Android 2.2 so these instructions may become outdated.  I also recommend you be running Android 2.2 Froyo on your Droid X&lt;br /&gt;
* You should have adb installed (or running a more advanced bash terminal on Android like Better Terminal Emulator Pro app)&lt;br /&gt;
* Install the following apps&lt;br /&gt;
** OpenVPN Installer&lt;br /&gt;
** OpenVPN Settings&lt;br /&gt;
&lt;br /&gt;
Create a directory on your SDCARD called openvpn or if in the terminal /sdcard/openvpn.&lt;br /&gt;
&lt;br /&gt;
Follow the general [[VPNLinux]] instructions but place all of the configurations and certificates in the openvpn folder on your sdcard.&lt;br /&gt;
&lt;br /&gt;
Install openvpn using the &amp;quot;OpenVPN Installer&amp;quot; app and select /system/bin each time the app asks for a location to place a binary.&lt;br /&gt;
&lt;br /&gt;
You can run one of the following commands to grab the mount point of your system folder.  (Run commands through adb or in a terminal on your Droid)&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    df | grep system&lt;br /&gt;
    cat /proc/mounts | grep system&lt;br /&gt;
    cat /proc/mounts&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
My device is mounted on /dev/block/mmcblk1p21 so that is the device I am using in this tutorial.  Download tun_alt.ko as recommended in [http://forum.xda-developers.com/showpost.php?p=11109394&amp;amp;postcount=25 this post].  Copy it to the root of your sdcard.&lt;br /&gt;
&lt;br /&gt;
Now we install the kernel module.  Run the following command sequence (through adb or a terminal on your Droid).&lt;br /&gt;
&amp;lt;pre&amp;gt;&amp;lt;nowiki&amp;gt;&lt;br /&gt;
    su&lt;br /&gt;
    mount -o rw,remount /dev/block/mmcblk1p21 /system&lt;br /&gt;
    mv /sdcard/tun_alt.ko /system/lib/modules/tun.ko&lt;br /&gt;
    cd /system/lib/modules&lt;br /&gt;
    chown root\: tun.ko&lt;br /&gt;
    chmod 644 tun.ko&lt;br /&gt;
    &lt;br /&gt;
    #now lets test it&lt;br /&gt;
    insmod /system/lib/modules/tun.ko&lt;br /&gt;
&amp;lt;/nowiki&amp;gt;&amp;lt;/pre&amp;gt;&lt;br /&gt;
If you don't see any output and the &amp;quot;OpenVPN Installer&amp;quot; app successfully installed openvpn then you should be set up.  &lt;br /&gt;
&lt;br /&gt;
Double check your configuration in /sdcard/openvpn.  Once you know everything is good then run the &amp;quot;OpenVPN Settings&amp;quot; app.  It should automatically detect your configuration.&lt;br /&gt;
&lt;br /&gt;
Enable OpenVPN.  Select your config to turn on the tunnel.  Then you should see a prompt in your notification status prompting for a password.  My Droid X connected to the network after that.&lt;br /&gt;
&lt;br /&gt;
There's one final step.  If you remember you manually ran the insmod /system/lib/modules/tun.ko command but when you reboot your phone the module will no longer be loaded.&lt;br /&gt;
&lt;br /&gt;
Go into the settings for the &amp;quot;OpenVPN Settings&amp;quot; app and modify the TUN module settings.&lt;br /&gt;
* Set &amp;quot;Load module using&amp;quot; to insmod.  &lt;br /&gt;
* Set &amp;quot;Path to tun module&amp;quot; to /system/lib/modules/tun.ko&lt;br /&gt;
&lt;br /&gt;
Reboot your phone and test the configurations.  It should be a one click process within the &amp;quot;OpenVPN Settings&amp;quot; app.&lt;br /&gt;
&lt;br /&gt;
[[Category: VPN]]&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94076</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94076"/>
		<updated>2015-06-24T17:47:35Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Pixel Server */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work here was based on: https://sfxpt.wordpress.com/2011/02/21/the-best-ad-blocking-method/.&lt;br /&gt;
&lt;br /&gt;
Pixelserv is a webserver which simply serves 1x1 blank pixels. By redirecting web requests for adverts to our pixelserver, ads are replaced by this 1x1 pixel leaving the target webpage intact. This will work on all devices across your network, removing the need for software-based solutions on each device.&lt;br /&gt;
&lt;br /&gt;
A shell script get-adlist.sh will update the list of blocked domains (stored as /etc/dnsmasq.adblock.conf) whever you run it. You can also manually edit the list and remove domains that you wish to see (in the case of wrongly blocked domains).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
* Create a new shell file&lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Copy and paste the following into it&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
* Change permissions on the shell file&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Run the shell file&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
* Add the block list to DNSMasq configuration&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
* Restart DNSMasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses and interfaces where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
* To bring the new interface up and start pixelserv&lt;br /&gt;
 /etc/init.d/pixelserv start&lt;br /&gt;
&lt;br /&gt;
* To stop pixelserv and close the virtual interface&lt;br /&gt;
 /etc/init.d/pixelserv stop&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94071</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94071"/>
		<updated>2015-06-24T17:46:28Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work here was based on: https://sfxpt.wordpress.com/2011/02/21/the-best-ad-blocking-method/.&lt;br /&gt;
&lt;br /&gt;
Pixelserv is a webserver which simply serves 1x1 blank pixels. By redirecting web requests for adverts to our pixelserver, ads are replaced by this 1x1 pixel leaving the target webpage intact. This will work on all devices across your network, removing the need for software-based solutions on each device.&lt;br /&gt;
&lt;br /&gt;
A shell script get-adlist.sh will update the list of blocked domains (stored as /etc/dnsmasq.adblock.conf) whever you run it. You can also manually edit the list and remove domains that you wish to see (in the case of wrongly blocked domains).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
* Create a new shell file&lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Copy and paste the following into it&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
* Change permissions on the shell file&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
* Run the shell file&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
* Add the block list to DNSMasq configuration&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
* Restart DNSMasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
* To bring the new interface up and start pixelserv&lt;br /&gt;
 /etc/init.d/pixelserv start&lt;br /&gt;
&lt;br /&gt;
* To stop pixelserv and close the virtual interface&lt;br /&gt;
 /etc/init.d/pixelserv stop&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94066</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94066"/>
		<updated>2015-06-24T17:37:56Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
The work here was based on: https://sfxpt.wordpress.com/2011/02/21/the-best-ad-blocking-method/.&lt;br /&gt;
&lt;br /&gt;
Pixelserv is a webserver which simply serves 1x1 blank pixels. By redirecting web requests for adverts to our pixelserver, ads are replaced by this 1x1 pixel leaving the target webpage intact. This will work on all devices across your network, removing the need for software-based solutions on each device.&lt;br /&gt;
&lt;br /&gt;
A shell script get-adlist.sh will update the list of blocked domains (stored as /etc/dnsmasq.adblock.conf) whever you run it. You can also manually edit the list and remove domains that you wish to see (in the case of wrongly blocked domains).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94061</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94061"/>
		<updated>2015-06-24T17:29:10Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Get Ad List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Download the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94056</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94056"/>
		<updated>2015-06-24T17:27:01Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Change DNSMasq config */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Down the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 /etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
 service dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94051</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94051"/>
		<updated>2015-06-24T17:26:41Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Get Ad List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Down the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 /etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94046</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94046"/>
		<updated>2015-06-24T17:26:02Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Change DNSMasq config */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Down the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 /etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-ad-block-list.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
 echo &amp;quot;conf-file=/etc/dnsmasq.adblock.conf&amp;quot; &amp;gt;&amp;gt; /etc/dnsmasq.conf&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94041</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94041"/>
		<updated>2015-06-24T17:25:34Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Get Ad List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Down the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 /etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
 chmod -v 755 /usr/local/bin/get-ad-block-list.sh&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94036</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94036"/>
		<updated>2015-06-24T17:25:15Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: /* Get Ad List */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
 &lt;br /&gt;
 nano /usr/local/bin/get-adlist.sh&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Down the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 /etc/init.d/dnsmasq restart&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94031</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94031"/>
		<updated>2015-06-24T17:24:08Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
&lt;br /&gt;
 #!/bin/sh&lt;br /&gt;
 # Down the DNSmasq formatted ad block list&lt;br /&gt;
 curl &amp;quot;http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&amp;amp;showintro=0&amp;amp;mimetype=plaintext&amp;quot; | sed &amp;quot;s/127\.0\.0\.1/192.168.1.99/&amp;quot; &amp;gt; /etc/dnsmasq.adblock.conf&lt;br /&gt;
 # Restart DNSmasq&lt;br /&gt;
 /etc/init.d/dnsmasq restart&lt;br /&gt;
 &lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94026</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94026"/>
		<updated>2015-06-24T17:16:03Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it (changing the IP addresses where neccessary):&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94021</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94021"/>
		<updated>2015-06-24T17:15:20Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1 and your HDA IP address is 192.168.1.2. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
* Edit the Apache config file using a file editor:&lt;br /&gt;
 nano /etc/httpd/conf/httpd.conf&lt;br /&gt;
&lt;br /&gt;
* Add your HDAs IP address to this section in the conf file:&lt;br /&gt;
 #&lt;br /&gt;
 # Listen: Allows you to bind Apache to specific IP addresses and/or&lt;br /&gt;
 # ports, instead of the default. See also the &amp;lt;VirtualHost&amp;gt;&lt;br /&gt;
 # directive.&lt;br /&gt;
 #&lt;br /&gt;
 # Change this to Listen on specific IP addresses as shown below to&lt;br /&gt;
 # prevent Apache from glomming onto all bound IP addresses.&lt;br /&gt;
 #&lt;br /&gt;
 #Listen 12.34.56.78:80&lt;br /&gt;
 Listen 192.168.1.2:80&lt;br /&gt;
&lt;br /&gt;
* Restart Apache&lt;br /&gt;
 service httpd restart&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Note: Change the IP addresses, and you will need net-tools installed on the system as a precursor&amp;lt;/b&amp;gt;&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94016</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94016"/>
		<updated>2015-06-24T17:11:28Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - &lt;br /&gt;
*You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
* This guide assumes your network interface is named p2p1. Check with ifconfig, and change this guide where neccessary.&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Note: Change the IP addresses, and you will need net-tools installed on the system as a precursor&amp;lt;/b&amp;gt;&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /etc/init.d/pixelserv&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94011</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=94011"/>
		<updated>2015-06-24T17:05:22Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&amp;lt;b&amp;gt;&amp;lt;i&amp;gt;This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.&amp;lt;br /&amp;gt;&amp;lt;/i&amp;gt;&amp;lt;/b&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Precusors - You'll need net-tools installed to use ifconfig&lt;br /&gt;
 yum install net-tools&lt;br /&gt;
&lt;br /&gt;
==Get Ad List==&lt;br /&gt;
&lt;br /&gt;
==Change DNSMasq config==&lt;br /&gt;
&lt;br /&gt;
==Bind Apache to main IP address==&lt;br /&gt;
&lt;br /&gt;
==Pixel Server==&lt;br /&gt;
* You need to download Pixelserv to the HDA:&lt;br /&gt;
 wget &amp;lt;nowiki&amp;gt;http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt&amp;lt;/nowiki&amp;gt; &lt;br /&gt;
&lt;br /&gt;
* Move and rename the Pixelserv binary:&lt;br /&gt;
 mv pixelserv.pl.txt /usr/local/bin/pixelserv&lt;br /&gt;
&lt;br /&gt;
* Edit pixelserv using a file editing program of your choice&lt;br /&gt;
 nano pixelserv&lt;br /&gt;
&lt;br /&gt;
* Change the IP address to a free one of your choice (eg. 192.168.1.99)&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '0.0.0.0',&lt;br /&gt;
change to&lt;br /&gt;
 $sock = new IO::Socket::INET (  LocalHost =&amp;gt; '192.168.1.99',&lt;br /&gt;
&lt;br /&gt;
* Change permissions&lt;br /&gt;
 chmod 755 /usr/local/pixelserv &lt;br /&gt;
 &lt;br /&gt;
* Create file /etc/init.d/pixelserv&lt;br /&gt;
 nano /etc/init.d/pixelserv&lt;br /&gt;
and copy the following to it:&lt;br /&gt;
&amp;lt;br /&amp;gt;&amp;lt;b&amp;gt;Note: Change the IP addresses, and you will need net-tools installed on the system as a precursor&amp;lt;/b&amp;gt;&lt;br /&gt;
 #! /bin/sh&lt;br /&gt;
 # /etc/init.d/pixelserv&lt;br /&gt;
 #&lt;br /&gt;
 &lt;br /&gt;
 # Carry out specific functions when asked to by the system&lt;br /&gt;
 case &amp;quot;$1&amp;quot; in&lt;br /&gt;
    start)&lt;br /&gt;
      echo &amp;quot;Creating Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 192.168.1.99&lt;br /&gt;
      echo &amp;quot;Starting pixelserv &amp;quot;&lt;br /&gt;
      /usr/local/bin/pixelserv &amp;amp;&lt;br /&gt;
      ;;&lt;br /&gt;
    stop)&lt;br /&gt;
      echo &amp;quot;Stopping script pixelserv&amp;quot;&lt;br /&gt;
      pkill -9 pixelserv &amp;amp;&lt;br /&gt;
      echo &amp;quot;Killing Interface &amp;quot;&lt;br /&gt;
      ifconfig p2p1:0 down&lt;br /&gt;
      ;;&lt;br /&gt;
    *)&lt;br /&gt;
      echo &amp;quot;Usage: /etc/init.d/pixelserv {start|stop}&amp;quot;&lt;br /&gt;
      exit 1&lt;br /&gt;
      ;;&lt;br /&gt;
 esac&lt;br /&gt;
 exit 0&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=93996</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=93996"/>
		<updated>2015-06-23T21:01:38Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outline for using the HDA as a network-wide ad-blocking tool:&lt;br /&gt;
&lt;br /&gt;
This is a work in progress and currently only shows the very basic step-by step to doing this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Fedora 19 =&lt;br /&gt;
&lt;br /&gt;
Create a new virtual interface with new IP *issues with Fedora 19 keeping it's config*&lt;br /&gt;
&lt;br /&gt;
Bind Apache to the original IP /etc/httpd/conf/&lt;br /&gt;
&lt;br /&gt;
Download Pixelserv and modify to use the new virtual IP&lt;br /&gt;
&lt;br /&gt;
Setup Pixelserv to load at boot as a service&lt;br /&gt;
&lt;br /&gt;
Create script to download an advert block-list&lt;br /&gt;
&lt;br /&gt;
Create DNSMasq config that redirects ad-list hosts to Pixelserv IP address&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=93991</id>
		<title>Ad-blocking</title>
		<link rel="alternate" type="text/html" href="https://wiki.amahi.org/index.php?title=Ad-blocking&amp;diff=93991"/>
		<updated>2015-06-23T20:24:26Z</updated>

		<summary type="html">&lt;p&gt;Scott Falkiner: Ad-blocking on the HDA for the entirety of the network.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;!-- &lt;br /&gt;
This page is crated automaticaly by a script.&lt;br /&gt;
This part is commented and shall not show&lt;br /&gt;
--&amp;gt;&lt;br /&gt;
&amp;lt;!--At the top of the page can be vissible one of the following tags..--&amp;gt;&lt;br /&gt;
    {{WorkInProgress}}&lt;br /&gt;
&amp;lt;!--{{NeedsUpdate}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsMerge | [[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsExpantion}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--{{NeedsDelete |[[Main Page]]}}--&amp;gt;&lt;br /&gt;
&amp;lt;!--Please remove or place comment accordingly--&amp;gt;&lt;br /&gt;
&amp;lt;!--Your text bellow this line--&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Outline for using the HDA as a network-wide ad-blocking tool:&lt;br /&gt;
&lt;br /&gt;
This is a work in progress and currently only shows the very basic step-by step to doing this.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Create a new virtual interface with new IP&lt;br /&gt;
&lt;br /&gt;
Bind Apache to the original IP &lt;br /&gt;
&lt;br /&gt;
Download Pixelserv and modify to use the new virtual IP&lt;br /&gt;
&lt;br /&gt;
Setup Pixelserv to load at boot as a service&lt;br /&gt;
&lt;br /&gt;
Create script to download an advert block-list&lt;br /&gt;
&lt;br /&gt;
Create DNSMasq config that redirects ad-list hosts to Pixelserv IP address&lt;br /&gt;
&lt;br /&gt;
Enjoy ad-free network on ALL devices!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&amp;lt;!--Your text above this line--&amp;gt;&lt;br /&gt;
&amp;lt;!--This page must bellong to one of the following categories please remove comment--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[category:Apps]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Fedora]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Platform]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Pro Version]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:Services]]--&amp;gt;&lt;br /&gt;
&amp;lt;!--[[Category:VPN]]--&amp;gt;&lt;/div&gt;</summary>
		<author><name>Scott Falkiner</name></author>
		
	</entry>
</feed>