Changes

From Amahi Wiki
Jump to: navigation, search
604 bytes added ,  17:58, 27 June 2015
*You'll need net-tools installed to use ifconfig
yum install net-tools
* You also need a file editing tool. Vi will suffice, however nano is a bit more user friendly.
yum install nano
* 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.
==Get Ad List==
This part of the process creates a file on your HDA which identifies where adverts originate from, and then redirects their addresses.
* Create a new shell file
nano /usr/local/bin/get-adlist.sh
==Change DNSMasq config==
This tells DNSMasq the list of domains and where the should be redirected to
* Add the block list to DNSMasq configuration
echo "conf-file=/etc/dnsmasq.adblock.conf" >> /etc/dnsmasq.conf
==Bind Apache to main IP address==
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.
* Edit the Apache config file using a file editor:
nano /etc/httpd/conf/httpd.conf
==Pixel Server==
The pixel server is where we're redirecting adverts to. A simple 1x1 pixel is served on the IP address specified.
* You need to download Pixelserv to the HDA:
wget <nowiki>http://proxytunnel.sourceforge.net/files/pixelserv.pl.txt</nowiki>