Pi-Hole (ad blocking DNS server) Controller

Posted on
Fri May 03, 2019 10:32 pm
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Re: Pi-Hole (ad blocking DNS server) Controller

What issue did you have with the virtual switch?

Posted on
Fri Sep 13, 2019 8:00 am
Professor Falken offline
User avatar
Posts: 289
Joined: Mar 29, 2015

Re: Pi-Hole (ad blocking DNS server) Controller

I'm suddenly having trouble again toggling off the pi-hole and having it stay off. I had this issue before with the first iteration of the plugin (see earlier in this thread) but this time even using the "turn-off" command isn't sticking. The pi-hole briefly disables but then almost immediately turns itself back on.

Since I am away from home at the moment, I can not easily access the native pi-hole browser-based controls to see if disabling it that way would work better.

Has anyone else seen this behavior recently?

Posted on
Sun Sep 22, 2019 12:00 pm
Ramias offline
Posts: 272
Joined: Nov 24, 2015

Re: Pi-Hole (ad blocking DNS server) Controller

Not seen this.

Are you using a toggle command or discreet off/on commands?

Posted on
Sat Sep 28, 2019 7:32 am
johnfdl offline
Posts: 177
Joined: May 18, 2017
Location: Atlanta, GA USA

Re: Pi-Hole (ad blocking DNS server) Controller

I'd love if the Alexa command to temporarily turn off pihole was "Alexa, shut your pie hole"

Posted on
Sat Sep 28, 2019 1:12 pm
Professor Falken offline
User avatar
Posts: 289
Joined: Mar 29, 2015

Re: Pi-Hole (ad blocking DNS server) Controller

Ramias wrote:
Not seen this.

Are you using a toggle command or discreet off/on commands?


I've been using the toggle command without issue since your fix right after the release.

I think it's the Pi. It seems to lock up, and when it does, it won't allow the plugin to disable. At the same time, it won't let me in via the native browser interface either. I've had to hard reset it to regain control. Strangely, I think its blocking functions continue to work perfectly when this happens.

In order to maintain peace in my family (apparently everyone else is just fine with being tracked and ad-served to death) I've had to take it offline until I can figure out what is going on.

Posted on
Sat Sep 28, 2019 8:08 pm
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Pi-Hole (ad blocking DNS server) Controller

do you do a night reboot?

some apps do not shut down with "sudo reboot now"

you need to do a "sudo killall -9 xxx; sleep 1; sudo reboot now"

with xxx the programs you like to stop eg python

when the reboot starts most processes stop (eg ssh server... ) but if some continue, the reboot does not complete.

Karl

Posted on
Sun Sep 29, 2019 5:59 am
Professor Falken offline
User avatar
Posts: 289
Joined: Mar 29, 2015

Re: Pi-Hole (ad blocking DNS server) Controller

That's an interesting idea. I guess I could look into how to schedule a nightly reboot. Is this a common practice with people's pi-hole setups. I have a different Pi managing my alarm system and have never had this issue.

Is there a command to schedule a reboot on the pi, or is that something handled through Indigo with a plugin?

Posted on
Sun Sep 29, 2019 6:52 am
jalves offline
Posts: 744
Joined: Jun 16, 2013

Re: Pi-Hole (ad blocking DNS server) Controller

Professor Falken wrote:
That's an interesting idea. I guess I could look into how to schedule a nightly reboot. Is this a common practice with people's pi-hole setups.

The only time I reboot my pi-hole is an occasional maintenance update. Perhaps once a month?

Running Indigo 2023.2 on a 24" iMac M1), OS X 14.4
Jeff

Posted on
Sun Sep 29, 2019 5:35 pm
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Pi-Hole (ad blocking DNS server) Controller

jalves wrote:
The only time I reboot my pi-hole is an occasional maintenance update. Perhaps once a month?

Likewise. I don't think I've ever rebooted my pi-hole for any other reason. I do not use the plugin, if that's a factor.

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 01, 2019 8:01 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Pi-Hole (ad blocking DNS server) Controller

I am trying to log into my raspberry pi running pi-hole using ssh.
Code: Select all
ssh userid@ip.address
I am getting connection refused on port 22 before I even get the chance to enter the password. :?

It's a while since I have tried this - what userid should I sign in with?

Posted on
Tue Oct 01, 2019 8:06 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Pi-Hole (ad blocking DNS server) Controller

Depending on how you have it set up, you might need to sudo.

The only thing I do differently is I typically use the mDNS name of the pi.


Sent from my iPhone using Tapatalk Pro

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 01, 2019 8:25 am
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Pi-Hole (ad blocking DNS server) Controller

autolog wrote:
I am trying to log into my raspberry pi running pi-hole using ssh.
Code: Select all
ssh userid@ip.address
I am getting connection refused on port 22 before I even get the chance to enter the password. :?

It's a while since I have tried this - what userid should I sign in with?


Are you sure you enabled ssh on the rPi? It's not enabled by default.

And the default userid on an rPi is 'pi'.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Tue Oct 01, 2019 8:28 am
DaveL17 offline
User avatar
Posts: 6742
Joined: Aug 20, 2013
Location: Chicago, IL, USA

Re: Pi-Hole (ad blocking DNS server) Controller

Good call on both those tips, too.

When I first set up a pi, I establish a new user and delete the user ‘pi’.


Sent from my iPhone using Tapatalk Pro

I came here to drink milk and kick ass....and I've just finished my milk.

[My Plugins] - [My Forums]

Posted on
Tue Oct 01, 2019 8:37 am
Professor Falken offline
User avatar
Posts: 289
Joined: Mar 29, 2015

Re: Pi-Hole (ad blocking DNS server) Controller

autolog wrote:
I am trying to log into my raspberry pi running pi-hole using ssh.
Code: Select all
ssh userid@ip.address
I am getting connection refused on port 22 before I even get the chance to enter the password. :?

It's a while since I have tried this - what userid should I sign in with?


When mine is locking up (which we know because it stops responding to the plugin) I have been unable to easily SSH in either. Although it will prompt me for the password, it won't accept it.

I am by no means a networking guru, but I found a tip online to try the command: ssh -I pi@address. I then used the standard ssh pi@address and it would prompt and accept my password. I don't even know what the -I command is doing, but it unsticks it enough for me to get in.

Posted on
Tue Oct 01, 2019 9:24 am
kw123 offline
User avatar
Posts: 8333
Joined: May 12, 2013
Location: Dallas, TX

Re: Pi-Hole (ad blocking DNS server) Controller

I would let it run do a terminal ssh session
And a
tail -F /var/log/syslog
Leave it running. ( capital F just in case the file gets recycled )

That should show you when something is happening.

Karl


Sent from my iPhone using Tapatalk

Who is online

Users browsing this forum: No registered users and 6 guests

cron