From 36d73b2a6cb8ce111319c2f4188f9929a587b2a5 Mon Sep 17 00:00:00 2001
From: Bob Mottram
Ensure that your system has a static local IP address (typically 192.168..) using the option on the control panel. You will also need to know the IP address of your internet router, which is usually 192.168.1.1 or 192.168.1.254.
@@ -277,16 +277,25 @@ When that's done select About this system from the control panel and see+Make sure that you add the static IP address for the server to /etc/hosts. +
+ +STATIC_IP=[your server static IP]
+sudo echo "$STATIC_IP [your domain name]" >> /etc/hosts
+
+On Arch/Parabola:
sudo pacman -S openresolv
-STATIC_IP=[your server static IP]
sudo sed -i "s|#name_servers=.*|name_servers=$STATIC_IP|g" /etc/resolvconf.conf
sudo sed -i "s|name_servers=.*|name_servers=$STATIC_IP|g" /etc/resolvconf.conf
sudo chattr -i /etc/resolv.conf
@@ -300,7 +309,6 @@ Or on a Debian based system:
sudo apt-get install resolvconf
-STATIC_IP=[your server static IP]
echo 'domain localdomain' > /tmp/resolvconf
echo 'search localdomain' >> /tmp/resolvconf
echo "nameserver $STATIC_IP" >> /tmp/resolvconf
@@ -312,9 +320,9 @@ sudo resolvconf -u
If you can access the settings on your local internet router then this is the simplest way to provide ad blocking for all devices which connect to it. Unfortunately some router models don't let you edit the DNS settings and if that's the case you might want to consider getting a different router.
@@ -324,9 +332,9 @@ Edit the DNS settings and add the IPv4 address which you got from the control paOn a router running LibreCMC from the Network menu select DHCP and DNS. Enter the static IP address of your Freedombone system within DNS Forwardings, then at the bottom of the page click on Save & Apply. Any devices which connect to your router will now have ad blocking.
@@ -334,9 +342,9 @@ On a router running LibreCMC from the Network menu select DHCP and DNSYou can configure the block lists which the system uses by going to the administrator control panel, selecting App Settings then choosing pihole. You can also add any extra domain names to the whitelist if they're being wrongly blocked or to the blacklist if they're not blocked by the current lists.