Changes

From Amahi Wiki
Jump to: navigation, search
498 bytes removed ,  03:35, 25 May 2019
no edit summary
<!--
This page is crated automaticaly by a script.
This part is commented and shall not show
-->
<!--At the top of the page can be vissible one of the following tags..-->
{{WorkInProgress}}
<!--{{NeedsUpdate}}-->
<!--{{NeedsMerge | [[Main Page]]}}-->
<!--{{NeedsExpantion}}-->
<!--{{NeedsDelete |[[Main Page]]}}-->
<!--Please remove or place comment accordingly-->
<!--Your text bellow this line-->
<b><i>This section will document how to run your HDA as a network wide ad-blocking tool, utilising DNS redirects and a small pixel server.<br /></i></b>
= Fedora 19 or Greater=
Precusors -
This part of the process creates a file on your HDA which identifies where adverts originate from, and where to redirect them to.
* Create a new shell file
nano /usr/local/bin/get-adlistad-block-list.sh
* Copy and paste the following into it
#!/bin/sh
# Download the DNSmasq formatted ad block list
curl <nowiki>"http://pgl.yoyo.org/adservers/serverlist.php?hostformat=dnsmasq&showintro=0&mimetype=plaintext" </nowiki> | sed "s/127\.0\.0\.1/192.168.1.99/" > /etc/dnsmasq.adblock.conf
# Restart DNSmasq
service dnsmasq restart
* Change permissions on the shell file
chmod -v 755 /usr/local/bin/get-adlistad-block-list.sh
* Run the shell file
/usr/local/bin/get-adlistad-block-list.sh
==Change DNSMasq config==
* Edit pixelserv using a file editing program of your choice
nano /usr/local/bin/pixelserv
* Change the IP address to a free one of your choice (eg. 192.168.1.99)
* Change permissions
chmod 755 /usr/local/bin/pixelserv
* Create file /etc/init.d/pixelserv
* To stop pixelserv and close the virtual interface
/etc/init.d/pixelserv stop
 
To keep the list updated weekly, do the following:
ln -s /usr/local/bin/get-ad-block-list.sh /etc/cron.daily/get-ad-block-list
Enjoy ad-free network on ALL devices!
 
 
 
 
<!--Your text above this line-->
<!--This page must bellong to one of the following categories please remove comment-->
<!--[[category:Apps]]-->
<!--[[Category:Fedora]]-->
<!--[[Category:Platform]]-->
<!--[[Category:Pro Version]]-->
<!--[[Category:Services]]-->
<!--[[Category:VPN]]-->
12,424

edits