Page 3 of 6

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

PostPosted: Fri May 03, 2019 10:32 pm
by Ramias
What issue did you have with the virtual switch?

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

PostPosted: Fri Sep 13, 2019 8:00 am
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?

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

PostPosted: Sun Sep 22, 2019 12:00 pm
by Ramias
Not seen this.

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

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

PostPosted: Sat Sep 28, 2019 7:32 am
by johnfdl
I'd love if the Alexa command to temporarily turn off pihole was "Alexa, shut your pie hole"

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

PostPosted: Sat Sep 28, 2019 1:12 pm
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.

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

PostPosted: Sat Sep 28, 2019 8:08 pm
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

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

PostPosted: Sun Sep 29, 2019 5:59 am
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?

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

PostPosted: Sun Sep 29, 2019 6:52 am
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?

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

PostPosted: Sun Sep 29, 2019 5:35 pm
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.

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

PostPosted: Tue Oct 01, 2019 8:01 am
by autolog
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?

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

PostPosted: Tue Oct 01, 2019 8:06 am
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

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

PostPosted: Tue Oct 01, 2019 8:25 am
by FlyingDiver
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'.

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

PostPosted: Tue Oct 01, 2019 8:28 am
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

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

PostPosted: Tue Oct 01, 2019 8:37 am
by Professor Falken
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.

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

PostPosted: Tue Oct 01, 2019 9:24 am
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