News for hackers. Stuff that matters.
Re:Pi-Hole 4.3.2 by rsync on Tuesday September 24, 2019 @11:33AM (#21061254)
"One thing to consider though is becoming a dns resolver for any random thing on the net. What I did for this was create a bash script that adds the visiting ip to iptables whitelist. Created an impossible-to-guess php page (pi admin uses php so it’s already installed and ready to go) which takes the REMOTE_ADDR and passes it to the bash script to add to iptables."

I hesitate to mention this, as it causes heads to explode, but the problem you're describing is nicely solved with port-knocking. Might be easier than setting up the php page, etc. ...

Re:Pi-Hole 4.3.2 by obituary_latte on Wednesday September 25, 2019 @06:41AM (#21069416)
How would that work? How could I set up, for instance, my iPhone to port knock to allow port 53 access to the server from an unknown remote ip?

Edit: found this guide https://www.inmotionhosting.com/support/website/ssh/how-to-u...

Looks like I could just create some bookmarks for the ports and open them sequentially.

I think overall this is a much better solution than messing with php/bash - good idea and thanks!

Re:Pi-Hole 4.3.2 by pdimitar on Tuesday September 24, 2019 @07:11PM (#21065671)
Pardon my ignorance: can you recommend a good learning material on port knocking?
Re:Pi-Hole 4.3.2 by obituary_latte on Wednesday September 25, 2019 @06:46AM (#21069432)
Here’s an example: https://www.inmotionhosting.com/support/website/ssh/how-to-u... But just search googs for “port knocking” and you’ll find a ton of info.