LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 11-30-2019, 02:56 AM   #76
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled

Tell me how your network is. I will test in the morning, its 3am here.
 
Old 11-30-2019, 12:02 PM   #77
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Modem -> WRT3200AC (hidden network) -> WRT600N (DD-WRT, setup as a switch, wireless enabled)

I have a web facing server behind the WRT600N. I also have 5 computers (2 of them not too often) and one PS3 connected wirelessly to one or the other at any given time. Therefore, I will need to do any work on my network in the middle of the night.

So where does the pi-hole land in the mess? I will probably be using a old Dell Dimension C521 that I have stuffed in a closet for now. I would like to use a old Dell Inspiron E1705 (9000) laptop that I have but it has a x86 processor and I need a new power supply for it. So I'll switch it over to that when I get the chance, considering if pi-hole runs on x86 (I cannot see why not).

I just don't like messing with my routers, I converted the 600N to DD-WRT and then set it up as a switch just for my server. The thing is that I have never been able to successfully get any computer to use a static IP. It would be nice to get the server on a static IP I suppose, but it works fine for now.

But my biggest issue is that I need to replace the outlet that my network is plugged into.

Last edited by Skaendo; 11-30-2019 at 12:15 PM.
 
Old 11-30-2019, 12:28 PM   #78
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
You should be fine. My Dell C600 is only Pentium 3 1.2 Ghz. I have a Cable Modem /Router Hitron and a Belkin N300. Both are hidden. Hitron is 5ghz and Belkin 2.4ghz. I have the belkin firewall replacing my hitron because the cable company leaves ports open doing their spying as usual. I then have Pi hole not set to give out DHCP. The 5G Hitron does that. DHCP is also disabled on the belkin. Pi hole Dns is configured through Hitron, which gives out the IP and dns for my network.
 
Old 11-30-2019, 01:47 PM   #79
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
This is my setup as far as routers

Hitron CGNM-2250 - Router 1 = 192.168.0.1
Belkin N300 - Router 2 = 192.168.0.2
Pi-Hole/Laptop - Router 3 = 192.168.0.3

Router 2 + 3 have static ip /w the mac addresses in Router 1.

Router 2 + 3 have DHCP Reservation disabled.

Router 1 has DNS coming from Pi-Hole (Router 3) which is configured in Router 1.

Router 2 has firewall dmz going into Router 1.

Whenever I need to give a device a static ip, I set it in Router 1.

Even though my Lans are separated with routers, Router 1 controls all static ip, dns, dhcp etc... because its connected directly to the cable.

Last edited by PROBLEMCHYLD; 11-30-2019 at 01:54 PM.
 
Old 11-30-2019, 02:48 PM   #80
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
I'm going to start playing the lottery so I can get what I really want, a nice little Dell 4210.
 
Old 11-30-2019, 03:43 PM   #81
SavoTU
Member
 
Registered: Apr 2005
Distribution: Slackware64 Current
Posts: 199

Rep: Reputation: 40
Not had the time to test the updated slackbuild but did manage to get the web admin working.

The admin site uses sudo to make talk to the pihole process I am not a fan of it and not sure on the security implications but if you add the below to /etc/sudoers you will be able to make and save changes with apache and i assume the process is the same for lighthttp.

Code:
 apache ALL=NOPASSWD: /usr/bin/pihole
As for your network setup are they daisy chained or are both networks connected to different ports on the router? Which devices do the dhcp are they all on the same subnet?

Code:
Modem -> WRT3200AC (hidden network) -> WRT600N (DD-WRT, setup as a switch, wireless enabled)
or
Code:
Modem -> WRT3200AC (hidden network)
      -> WRT600N -> server
                 ~>  wifi pc etc

Whilst I have been tested i have installed pihole on my desktop (which is always on) then set it as the dns server on my modem. My PC and the voip box are connected via ethernet everything else is wireless. All dns queries are coming to me

Last edited by SavoTU; 11-30-2019 at 03:44 PM.
 
Old 11-30-2019, 04:04 PM   #82
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by SavoTU View Post
add the below to /etc/sudoers
Code:
 apache ALL=NOPASSWD: /usr/bin/pihole
Will add this to the README.

Quote:
Originally Posted by SavoTU View Post
As for your network setup are they daisy chained or are both networks connected to different ports on the router? Which devices do the dhcp are they all on the same subnet?
Daisy chained just like this:
Code:
Modem -> WRT3200AC -> WRT600N
My modem is just a cable modem with one LAN jack and no WiFi. It's a Arris TM822.

The WRT600N is only a switch, but it does have WiFi Internet access through it.
I can connect wired or wireless to either the WRT3200 or WRT600 and use Internet.
DHCP is handled through the WRT3200AC.

I am thinking that I need to drop the pi-hole PC on the WRT3200AC.

It's the static IP stuff that I get messed up on.

Last edited by Skaendo; 11-30-2019 at 04:09 PM.
 
Old 11-30-2019, 04:05 PM   #83
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
Hmm... Looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/gravity.sh
|+++ b/gravity.sh
--------------------------
patching file gravity.sh
Using Plan A...
Hunk #1 succeeded at 19.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|--- a/pihole
|+++ b/pihole
--------------------------
patching file pihole
Using Plan A...
Hunk #1 succeeded at 17.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- a/advanced/Scripts/piholeDebug.sh
|+++ b/advanced/Scripts/piholeDebug.sh
--------------------------
patching file advanced/Scripts/piholeDebug.sh
Using Plan A...
Hunk #1 succeeded at 68.
Hmm... The next patch looks like a unified diff to me...
The text leading up to this was:
--------------------------
|
|--- a/advanced/Scripts/webpage.sh
|+++ b/advanced/Scripts/webpage.sh
--------------------------
patching file advanced/Scripts/webpage.sh
Using Plan A...
Hunk #1 succeeded at 16.
Hmm... Ignoring the trailing garbage.
done
install: cannot stat 'advanced/Scripts/uninstall.sh': No such file or directory

Doesn't build any further...

Last edited by PROBLEMCHYLD; 11-30-2019 at 04:07 PM.
 
Old 11-30-2019, 04:19 PM   #84
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
install: cannot stat 'advanced/Scripts/uninstall.sh': No such file or directory

Doesn't build any further...
DERP, Fixed.
Going to just leave that one out because it's part of the "automated install".
 
Old 11-30-2019, 04:29 PM   #85
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by SavoTU View Post
The admin site uses sudo to make talk to the pihole process I am not a fan of it and not sure on the security implications but if you add the below to /etc/sudoers you will be able to make and save changes with apache and i assume the process is the same for lighthttp.
I'm not sure about the security implications either, but it is nice to hear that Apache is a option. I'll have to add your virtual-host config in there somewhere.

Did you also uncomment mod_php in httpd.conf?


About my network, would it be feasible to put pi-hole on my server? It is kind of a PITA because it is only running a GitLab instance, and un-bundling nginx is such a hassle. I've tried. Many times. I just cannot get it right.

Last edited by Skaendo; 11-30-2019 at 05:05 PM.
 
Old 11-30-2019, 05:24 PM   #86
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
[2019-11-30 17:15:44.698 3764] ########## FTL started! ##########
[2019-11-30 17:15:44.699 3764] FTL branch: master
[2019-11-30 17:15:44.699 3764] FTL version: v4.3.1
[2019-11-30 17:15:44.699 3764] FTL commit:
[2019-11-30 17:15:44.699 3764] FTL date: 2019-07-08
[2019-11-30 17:15:44.699 3764] FTL user: root
[2019-11-30 17:15:44.699 3764] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
[2019-11-30 17:15:44.699 3764] SOCKET_LISTENING: only local
[2019-11-30 17:15:44.699 3764] AAAA_QUERY_ANALYSIS: Show AAAA queries
[2019-11-30 17:15:44.699 3764] MAXDBDAYS: max age for stored queries is 365 days
[2019-11-30 17:15:44.699 3764] RESOLVE_IPV6: Resolve IPv6 addresses
[2019-11-30 17:15:44.699 3764] RESOLVE_IPV4: Resolve IPv4 addresses
[2019-11-30 17:15:44.699 3764] DBINTERVAL: saving to DB file every minute
[2019-11-30 17:15:44.699 3764] DBFILE: Using /etc/pihole/pihole-FTL.db
[2019-11-30 17:15:44.699 3764] MAXLOGAGE: Importing up to 24.0 hours of log data
[2019-11-30 17:15:44.699 3764] PRIVACYLEVEL: Set to 0
[2019-11-30 17:15:44.699 3764] IGNORE_LOCALHOST: Show queries from localhost
[2019-11-30 17:15:44.699 3764] BLOCKINGMODE: Null IPs for blocked domains
[2019-11-30 17:15:44.700 3764] ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
[2019-11-30 17:15:44.700 3764] DBIMPORT: Importing history from database
[2019-11-30 17:15:44.700 3764] PIDFILE: Using /var/run/pihole-FTL.pid
[2019-11-30 17:15:44.700 3764] PORTFILE: Using /var/run/pihole-FTL.port
[2019-11-30 17:15:44.700 3764] SOCKETFILE: Using /var/run/pihole/FTL.sock
[2019-11-30 17:15:44.700 3764] WHITELISTFILE: Using /etc/pihole/whitelist.txt
[2019-11-30 17:15:44.700 3764] BLACKLISTFILE: Using /etc/pihole/black.list
[2019-11-30 17:15:44.700 3764] GRAVITYFILE: Using /etc/pihole/gravity.list
[2019-11-30 17:15:44.700 3764] REGEXLISTFILE: Using /etc/pihole/regex.list
[2019-11-30 17:15:44.700 3764] SETUPVARSFILE: Using /etc/pihole/setupVars.conf
[2019-11-30 17:15:44.700 3764] AUDITLISTFILE: Using /etc/pihole/auditlog.list
[2019-11-30 17:15:44.700 3764] MACVENDORDB: Using /etc/pihole/macvendor.db
[2019-11-30 17:15:44.700 3764] PARSE_ARP_CACHE: Active
[2019-11-30 17:15:44.700 3764] Finished config file parsing
[2019-11-30 17:15:44.701 3764] WARNING: Starting pihole-FTL as user root is not recommended
[2019-11-30 17:15:44.702 3764] Database version is 3
[2019-11-30 17:15:44.702 3764] Database successfully initialized
[2019-11-30 17:15:44.702 3764] Imported 0 queries from the long-term database
[2019-11-30 17:15:44.702 3764] -> Total DNS queries: 0
[2019-11-30 17:15:44.702 3764] -> Cached DNS queries: 0
[2019-11-30 17:15:44.702 3764] -> Forwarded DNS queries: 0
[2019-11-30 17:15:44.702 3764] -> Exactly blocked DNS queries: 0
[2019-11-30 17:15:44.702 3764] -> Unknown DNS queries: 0
[2019-11-30 17:15:44.702 3764] -> Unique domains: 0
[2019-11-30 17:15:44.702 3764] -> Unique clients: 0
[2019-11-30 17:15:44.702 3764] -> Known forward destinations: 0
[2019-11-30 17:15:44.702 3764] Successfully accessed setupVars.conf
[2019-11-30 17:15:44.705 3766] PID of FTL process: 3766
[2019-11-30 17:15:44.706 3766] Listening on port 4711 for incoming IPv4 telnet connections
[2019-11-30 17:15:44.706 3766] Listening on port 4711 for incoming IPv6 telnet connections
[2019-11-30 17:15:44.706 3766] Error on binding on Unix socket /var/run/pihole/FTL.sock: No such file or directory (2)
 
Old 11-30-2019, 05:28 PM   #87
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
[2019-11-30 17:15:44.699 3764] FTL user: root
[2019-11-30 17:15:44.701 3764] WARNING: Starting pihole-FTL as user root is not recommended
Could it be because you are running it as root?

Last edited by Skaendo; 11-30-2019 at 05:37 PM.
 
Old 11-30-2019, 05:30 PM   #88
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
I'll try without root
 
Old 11-30-2019, 05:37 PM   #89
PROBLEMCHYLD
Senior Member
 
Registered: Apr 2015
Posts: 1,201

Rep: Reputation: Disabled
[problemchyld@darkstaresktop] $ pihole-FTL
FATAL: Opening of FTL log (/var/log/pihole-FTL.log) failed!
Make sure it exists and is writeable by user problemchyld
[problemchyld@darkstaresktop] $


[root@darkstar:~] # pihole-FTL
FTL started!
[root@darkstar:~] #

Last edited by PROBLEMCHYLD; 11-30-2019 at 05:38 PM.
 
Old 11-30-2019, 05:42 PM   #90
Skaendo
Senior Member
 
Registered: Dec 2014
Location: West Texas, USA
Distribution: Slackware64-14.2
Posts: 1,445

Rep: Reputation: Disabled
Quote:
Originally Posted by PROBLEMCHYLD View Post
[problemchyld@darkstaresktop] $ pihole-FTL
FATAL: Opening of FTL log (/var/log/pihole-FTL.log) failed!
Make sure it exists and is writeable by user problemchyld
[problemchyld@darkstaresktop] $


[root@darkstar:~] # pihole-FTL
FTL started!
[root@darkstar:~] #
Interesting. So it started after running as root again?

I have been looking around and there are some reports about permission issues.
What is the output of ls -al /var/run/pihole?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] slackware 14.2 - Anybody managed to install spotify??? jhsdcsjdcvbdj Slackware 8 03-12-2017 07:43 AM
Has anyone managed to get a Webcam (or PC CAMERA) working in Slackware 13.0? Norseman01 Linux - Hardware 1 11-03-2012 02:22 PM
managed to make files owned by 1016 and cannot delete, i'm using slackware 12 The_spacekadet Linux - Software 2 02-25-2008 04:01 AM
managed to make files owned by 1016 and cannot delete, i'm using slackware 12 The_spacekadet Linux - Newbie 2 02-25-2008 01:09 AM
Look at what I managed to do today with slackware! cereal83 Slackware 22 04-01-2006 02:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 12:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration