Pi-Hole (ad blocking DNS server) Controller

Plugins that users have built. NOTE: plugins that were developed for Indigo versions older than 2022.1 will have to be updated to work with Indigo 2022.1 (Python 3 - see this blog post for details). If the plugin listed here is not in the Plugin Store (which will show updated plugins) then you will need to ask on the appropriate thread below if it has been updated and where you get get the update.
Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

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

Post by Ramias »

What issue did you have with the virtual switch?
User avatar
Professor Falken
Posts: 304
Joined: Sun Mar 29, 2015 7:07 am

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

Post by Professor Falken »

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?
Ramias
Posts: 272
Joined: Tue Nov 24, 2015 5:21 pm

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

Post by Ramias »

Not seen this.

Are you using a toggle command or discreet off/on commands?
johnfdl
Posts: 177
Joined: Thu May 18, 2017 2:59 pm
Location: Atlanta, GA USA

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

Post by johnfdl »

I'd love if the Alexa command to temporarily turn off pihole was "Alexa, shut your pie hole"
User avatar
Professor Falken
Posts: 304
Joined: Sun Mar 29, 2015 7:07 am

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

Post by Professor Falken »

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.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

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

Post by kw123 »

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
User avatar
Professor Falken
Posts: 304
Joined: Sun Mar 29, 2015 7:07 am

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

Post by Professor Falken »

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?
jalves
Posts: 783
Joined: Sun Jun 16, 2013 11:35 am

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

Post by jalves »

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 2024.2.1 on a 24" iMac M4), OS X 26.0
Jeff
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

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

Post by DaveL17 »

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 and Scripts
autolog
Posts: 4077
Joined: Tue Sep 10, 2013 3:07 am
Location: West Sussex, UK
Contact:

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

Post by autolog »

I am trying to log into my raspberry pi running pi-hole using ssh.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?
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

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

Post by DaveL17 »

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 and Scripts
User avatar
FlyingDiver
Posts: 7830
Joined: Sat Jun 07, 2014 10:36 am
Location: Southwest Florida, USA

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

Post by FlyingDiver »

autolog wrote:I am trying to log into my raspberry pi running pi-hole using ssh.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
User avatar
DaveL17
Posts: 7323
Joined: Tue Aug 20, 2013 11:02 am
Location: Chicago, IL, USA
Contact:

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

Post by DaveL17 »

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 and Scripts
User avatar
Professor Falken
Posts: 304
Joined: Sun Mar 29, 2015 7:07 am

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

Post by Professor Falken »

autolog wrote:I am trying to log into my raspberry pi running pi-hole using ssh.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.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

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

Post by kw123 »

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
Post Reply

Return to “User Plugins”