LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Has Anyone Managed To Install Pihole On Slackware? (https://www.linuxquestions.org/questions/slackware-14/has-anyone-managed-to-install-pihole-on-slackware-4175606179/)

mrclisdue 05-17-2017 10:07 PM

Has Anyone Managed To Install Pihole On Slackware?
 
TBH, the time and effort it would take to get pihole installed in Slackware is beyond what I'm willing to invest, so I'm curious as to whether someone else has done what I don't want to.

Virtual, and perhaps real beers to anyone who can help out.

cheers,

askfor 05-18-2017 03:35 AM

I have never heard of it until now. However, looks like something that should work on any Linux, ory even any *NIX. What kind of problem are you expecting ? Is it because there is no Slackware package ?

mrclisdue 05-18-2017 02:32 PM

Hey,

Thanks for your response, but I'm abandoning my pihole quest: over the past couple of years I've attempted to get it running *as advertised* on a raspi, a debian install, a docker container, a debian docker container, a debian vm, a debian-under-linux-deploy on android, and possibly on a potato and/or a hot chick in a white bikini, and there are always unresolved and insurmountable issues.

I've been using privoxy since forever and, imho, nothing comes close in simplicity and *just working*.

No disrespect intended to the project's maintainers, contributors, and community but even if I took the time and effort to get this up and running in Slackware, based on my 6+ attempts to get this running properly even on the recommended distros, I'm fairly certain it's an exercise in futility.

cheers,

orbea 05-19-2017 02:25 PM

For what's its worth, the AUR pkgbuild gives the impression that the installation process for pihole is rather unfortunate...

https://aur.archlinux.org/cgit/aur.g...ole-standalone

MikelN 05-21-2017 02:35 AM

You can just run Bind with an adblock hosts file to get the same effect. I'm using this https://github.com/StevenBlack/hosts it also includes malware servers and other stuff you can choose to block.

Skaendo 05-21-2017 03:16 AM

Pi-Hole seems like a overly complicated way to use ipset and some blacklists.

I'm using trick77's ipset-blacklist, I've made a SlackBuild for it but it requires a firewall (Eric's Firewall Generator) and some configuring.

The addition of Steven Black's lists are completely compatible with ipset-blacklist, thanks for pointing to that MikeIN.

I'm currently blocking 10,000+ IP's and ipset-blacklist is lightning fast.

askfor 05-21-2017 07:02 PM

Squid proxy with ad blocking file is also an option. You don't have to use it as caching proxy, or you might choose to have minimal size cache. If you chose to have cache, it is located on the disk. However there is a memory buffer which holds most frequent cache objects. For small cache you don't need it either. Minimal Squid is relatively small program. It is far more efficient than your browser cache. You have very precise control over what is cached and for how long.

Configuration file is big, but most of it can be left default. Here is how to enable ad blocking feature:

https://calomel.org/squid_adservers.html

It has been a while, but I have been maintaining a Squid proxy server on large network for period of 4 years. I forgot a lot, but might still be able to help.

upnort 05-21-2017 07:43 PM

Following the same basic concepts, I use dnsmasq to block undesirable sites. The relevant sections of my dnsmasq.conf:

Code:

addn-hosts=/etc/hosts-blocked
addn-hosts=/etc/hosts-fb
addn-hosts=/etc/hosts-ms
cache-size=10000
log-queries
log-facility=/var/log/dnsmasq

One nice thing about dnsmasq is using multiple hosts files. I also block Facebook and Microsoft telemetry sites sites.

I configure my main server in resolv.conf and all LAN traffic uses that as my local caching name server.

I notice no latency with this approach. Kind of nice, considering I have 223,650 unique addresses in the /etc/hosts-blocked file. No ads, no malicious sites to worry about. Add some privacy related Firefox add-ons and I would guess I am blocking and filtering about as much as is reasonably possible without using Tor.

The only thing PiHole has that I don't is nice graphs and a pointy-clicky way to add/delete URLs.

PROBLEMCHYLD 11-22-2019 05:39 PM

1 Attachment(s)
I'm going to attempt this on Slackware. I just turned an old Pentium 3 (1.2Ghz) 1GB Ram into a Pi-Hole Server. I ended up using a Debian 9.0.0 cd netinstall iso and Pi-hole script, nothing else except for wireless drivers. Its headless, so Slackware might have a fighting chance. I don't know much about FTL/Pi-hole, but its interesting to tinker with things.

PROBLEMCHYLD 11-22-2019 07:08 PM

2 Attachment(s)
I'm going to assume I need at least the 3 packages to start and go any further.

Skaendo 11-22-2019 07:13 PM

Quote:

Originally Posted by PROBLEMCHYLD (Post 6060854)
I'm going to attempt this on Slackware. I just turned an old Pentium 3 (1.2Ghz) 1GB Ram into a Pi-Hole Server. I ended up using a Debian 9.0.0 cd netinstall iso and Pi-hole script, nothing else except for wireless drivers. Its headless, so Slackware might have a fighting chance. I don't know much about FTL/Pi-hole, but its interesting to tinker with things.

Looks interesting, I have spare computers to throw on the network, but wonder how it would work behind my router and switch. Keep us posted how it turns out please. If setting it up is not too much work, I'd try it out.

Skaendo 11-22-2019 07:14 PM

Quote:

Originally Posted by PROBLEMCHYLD (Post 6060863)
I'm going to assume I need at least the 3 packages to start and go any further.

php7 is in -current I believe.

(not lighthttp) available at SBo though.

Skaendo 11-22-2019 07:47 PM

Quote:

Originally Posted by PROBLEMCHYLD (Post 6060863)
I'm going to assume I need at least the 3 packages to start and go any further.

This might also help you resolve some dependencies:
https://aur.archlinux.org/packages/?...0&do_Search=Go

PROBLEMCHYLD 11-22-2019 08:06 PM

Quote:

Originally Posted by Skaendo (Post 6060865)
Looks interesting, I have spare computers to throw on the network, but wonder how it would work behind my router and switch. Keep us posted how it turns out please. If setting it up is not too much work, I'd try it out.

The setup and configuration is easy. Installation is about 4 clicks, but getting it installed is the challenge. I'm going to pursue this because I hate defeat but only if time allows me.

PROBLEMCHYLD 11-22-2019 08:09 PM

I need to start with those 3 packages, I tried building from https://www.linuxquestions.org/quest...le-4175622728/ but got a bunch of alpine errors... All help and pre-packages are accepted....LOL

I have 2 routers, one in bridge mode and it works just fine, if you want pi-hole to issue DHCP then disable DHCP in your Primary Router.


All times are GMT -5. The time now is 03:47 AM.