setting up pi hole

December 14, 2023, 19:12

k9t33n

ok I have pi 4, how do I set it's static IP to set up my pi hole. I'm pretty stupid in this area so bare with me

n3wtron

Go to your router settings and there should be a DHCP option where you can create a reserved ip for the raspberry pi

n3wtron

Once you're there you'd need to put in the mac address and ip of the raspberry pi which you can get through ifconfig

jannik44

thats a static DHCP lease yes, or he can set in in the rpi config file

k9t33n

which is easier?

null

I think that depends a lot on the router used and your skills/knowledge.

k9t33n

well like I said I have very little experience in this, and I have an EE router

n3wtron

EE router lmao

n3wtron

I've always knew them as just a mobile data company

k9t33n

well they do a not bad router

k9t33n

and I wish I used their mobile data as well, it's so much better than O2 atleest in the uk

jannik44

go to your /etc/dhcpcd.conf

jannik44

interface [INTERFACE]
static_routers=[ROUTER IP]
static domain_name_servers=[DNS IP]
static ip_address=[STATIC IP ADDRESS YOU WANT]/24

jannik44

thats it

k9t33n

ok cool, and I have to keep it out of the range my router sets right?

k9t33n

well preferably

oops.se

If you don't keep the address outside the DHCP scoop then you can get a IP conflict and end up with a device that will not work. And Mr Murphy will see to it and make sure that it will happen fast 馃槈 Ref.: https://en.wikipedia.org/wiki/Murphy's_law

k9t33n

ok so how do I check if it's outside of the "scoop"?

oops.se

The router should show a range of IP, and everything else is outside the scoop (range)

k9t33n

okay I will check

k9t33n

also if I know the IP of my pi normally can't I just put the static IP very far away from that?

null

No, because it may still be in the DHCP range!

k9t33n

yeah but like most routers can only have like 200 devices connected at most so why not just put it 300 above the pi?

null

For example, a range can go from 192.168.188.1 to 192.168.188.254, in which case you could not set the IP outside this range. Therefore you need to know from where to where your DHCP assigns IP. Because 300 does not exist! 0 smallest 255 largest. You cannot use 0 and 255. What's so difficult about simply looking into the router?

k9t33n

nothing much, I'm just brainstorming ig

k9t33n

your the professionals here I should just listen

k9t33n

quick question why do computers love the ranges 0-255? I feel like I see it everywhere

jannik44

thats so true, had many situations where i had a lot of weird luck in the Software lottery 馃槀

jannik44

there isnt a number Higher than 255 in ipv4, read here: https://en.m.wikipedia.org/wiki/Internet_Protocol_version_4

k9t33n

I can't open links for now, but that makes about sense

k9t33n

yeah I saw it a lot in wireless things

null

An IPv4 consists of 32 bits and 4 octets and is made up of zeros and ones. 192.168.188.1 is in Binary:11000000.10101000.10111100.00000001

null


null

And since you have 8 bits per octet, this is how it is done. That's why it only works up to 255.

k9t33n

oh ok

k9t33n

ok found the range

k9t33n

and made an IP that is out of that range

k9t33n

I use nano mode to do this right?

null

Nano Vi Vim Just an editor 馃槈

null

But vi and vim are not so easy to use at the beginning 馃槄

k9t33n

I use nano over ssh tho right?

null

If you are not directly on the Pi, yes, then you can only do it via ssh.

k9t33n

ok what's the command I forgot?

jannik44

whats nano mode? nano is a cli Text Editor

jannik44

still using nano, it works so no reason to switch

k9t33n

I'm sure I remember someone talking about it, you use it to edit files in terminal I think

null

sudo nano NameOfFile

k9t33n

oh-k

k9t33n

ok two questions, do i keep the brackets? and what do i put for the interface?

null

No Think eth0 But you'd better check with ip a again beforehand.

k9t33n

what?

k9t33n

I checked the IP I made is no where near the range

null

No... When you request your IP, it says eth0 at the front - that is the interface.

null

look this is what it looks like for me
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether dc:a6:32:e7:a0:c9 brd ff:ff:ff:ff:ff:ff:ff:ff:ff
    inet 192.168.188.20/24 brd 192.168.188.255 scope global dynamic noprefixroute eth0
       valid_lft 686574sec preferred_lft 578574sec
    inet6 2a04:4540:7211:f00:265d:4055:33af:260a/64 scope global dynamic mngtmpaddr noprefixroute 
       valid_lft 6802sec preferred_lft 3202sec
    inet6 fe80::4410:72fb:63e1:d87a/64 scope link 
       valid_lft forever preferred_lft forever
and eth0 is the interface. on the pc it is 2: enp12s0: therefore again ip a ^^

k9t33n

ah ok

k9t33n

I agree they're helpful

oops.se

Nice

k9t33n

I'm confused now, I looked at the devices to do this. my pi already has a static IP apparently

k9t33n

the thing is tho, the static IP is within the range and is the same as it's normal ip. not to mention that I didn't set this up

k9t33n

so because it's only occupying it's own ip can I just ignore it and carry on with my pihole stuff knowing it already has a static IP?

null

If you mean the output of ip a yes of course he has an IP and of course it's still the old one, otherwise you couldn't communicate with him! It only gets the static IP that you specify once you have entered it and rebooted.

k9t33n

it says (static) in the router next to the pi

null

Then you must have set it there and forgotten about it. But setting the IP statically via the conf is something else. It only gets the one in the router when it asks for an IP. It won't if you specify it via the conf.

oops.se

And this mean that the router can offer the "static IP" to another device if you dont reserve it in the router since you say it is in the "range".

oops.se

I just say Murphys Law!

k9t33n

i have not set the static ip, any chance that pi hole did this automatically because ive noticed that its been keeping this ip even when i remove the ethernet, its only been doing this for a couple of days (when i set up pi hole)

k9t33n

not sure what i can show so i just covered it anyway. what is the interface of this?

k9t33n

it is in the ethernet section if that means anything

null

As explained yesterday, "eth0" is the interface for ip a. So make an ip a and if you are not sure, show us the output!

oops.se

The DHCP standard has a way of keeping the previously assigned IP if possible.

oops.se

ip a

k9t33n

you said double check in the router to see the interface if i remember rightly

null

No, you should check the DHCP range in the router... You can't check the interface there...

k9t33n

oh, well yeah i double checked the range, not sure if i can tell you this but the end numbers are 64-253 so im setting it to 10, also that way its relatively easy to remember

null

So what now static IP through the router or static IP manual in the Pi? Why the latter if the Pi gets a static IP from the router? Please decide on one way.

k9t33n

im doing sudo nano now

k9t33n

whats a dns ip?

k9t33n

interface eth0       
static_routers=192.168.1.254
static domain_name_servers=[DNS IP]
static ip_address=192.168.1.10/24
also is this right so far?

null

Unfortunately I don't know dhcpcd, but DNS will be taken over by the Pi, so I would say that its IP must be included there.

oops.se

DNS = Domain Name System. It is the service that resolves a host + domain name, ex www.raspberrypi.org to an IP adr. so you can reach it.

oops.se

And if you type the command ip a it will show if the IP is dynamic (DHCP) or static.

k9t33n

can i dm you the screenshot of ip a?

null

I don't know why, since you can't reach the server from the outside anyway, but yes.

k9t33n

i feel like this is a dangerous area, im not sure what i can and cant share

null

I shared this from my Pi yesterday.... I wouldn't do it if it was dangerous.

k9t33n

ah ok one sec

k9t33n

kameron@pi-4:~ $ ip a
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
    inet 127.0.0.1/8 scope host lo
       valid_lft forever preferred_lft forever
    inet6 ::1/128 scope host noprefixroute 
       valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
    link/ether d8:3a:dd:3c:4d:2f brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.131/24 brd 192.168.1.255 scope global dynamic noprefixroute eth0
       valid_lft 55490sec preferred_lft 55490sec
    inet6 fe80::b43a:6454:5cf5:171f/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1280 qdisc pfifo_fast state UP group default qlen 1000
    link/ether d8:3a:dd:3c:4d:30 brd ff:ff:ff:ff:ff:ff
    inet 192.168.1.119/24 brd 192.168.1.255 scope global dynamic noprefixroute wlan0
       valid_lft 55662sec preferred_lft 55662sec
    inet6 fe80::28e8:d009:bdae:5576/64 scope link noprefixroute 
       valid_lft forever preferred_lft forever
sorry i didnt dm you right away, i was talking to a few people

null

2: As I said eth0

k9t33n

is ctrl+s how to save in nano? i forgot

null

Ctrl+o

null

But it also says below

k9t33n

and then ctrl+x?

null

Y

k9t33n

ok the ip is the same

k9t33n

after reboot

null

You'll have to ask someone else. I don't know Dhcpcd.

null

Oh yes, it is possible that your Pi still has the old IP because of the WLAN, you should switch this off. It's better to use LAN anyway, otherwise the connection will be slower.

oops.se

That's not probable, the WLAN has a different MAC and will get a different IP as the IP .131 is kept in the DHCP database for the MAC that eth0 has.

null

Yes then, you know why he doesn't get the static IP even though he has set it. I don't know dhcpcd, I would have done it via interface, that's how I learned it.

null

sudo service dhcpcd status

k9t33n

output:
Unit dhcpcd.service could not be found.

null

Well then it can't work...

k9t33n

can I use pihole without a static IP? I mean I just use hostnames anyway

null

Then you would have to change the DNS in the router or on the devices each time to the IP that the pi gets so that pihole can work... You said your Pi has a static address in the router, so what's the problem now?

k9t33n

because with IP a it says it doesn't have a static ip

null

Let's go back to the beginning, where it says there are 2 methods for a static IP. 1 method: you tell the router that this device should always get the same IP. 2 method: you set the static IP yourself via dhcpcd. Method 1: the IP is within the DHCP range because the router takes over the task. Method 2: the IP must be outside the DHCP range, otherwise there may be conflicts with DHCP. I hope I was able to shed some light on this?

k9t33n

so it's confusing

k9t33n

yes, now we know method 2 doesn't work. should we try method 1?

k9t33n

you'd need to really walk me through this one

null

Yes, since the static IP was not set manually, it does not say anything about static, that is normal. There is nothing more to explain. The Pi has a static IP if it has the same IP every time after rebooting. So continue with the next step.

k9t33n

ok I will do some testing moving the ethernet over to test if it still has the same ip

k9t33n

btw I definitely didn't do this myself. any chance it was pi hole doing it?

oops.se

Run raspi-config and choose dhcpcd as network manager

oops.se

6. Advanced and then AA networkmanager

null

Why, what is everyone doing with this dhcpcd ... What's so special about it?

null

No idea, I've never put on a pihole.

null

I manage this via the router or interfaces. Why run an extra service when there are resources on board for this?

k9t33n

I can't find network manager

k9t33n

ok I'm also confused now

k9t33n

so I did this, and when I unplug the ethernet it automatically connects to wireless and still has the same ip, but it doesn't say (static) next to it like when it does with ethernet

k9t33n

and then I tried using a different ethernet port, and the IP changed. but this time it's on the overall router but still with the same static IP. so there's two of them?

k9t33n

I'm really confused now

k9t33n

is this static or not?

k9t33n

oh and also with the different ethernet port even tho the IP is different the IP that works with the original ethernet port still works on ssh

null

The Ethernet ports have nothing to do with it. The router recognizes the device based on the Mac address. If so, you would have to shut down the Pi, delete the IP stored in the router and then start up the Pi again. If it still gets the same IP, it is set to static. This would not work with my FritzBox router because I have to set each device individually so that it only gets this IP. I have no idea how it is with your router.

k9t33n

idk, anyway it sounds like your saying it is static? so i can move on with pihole?

null

The worst thing that can happen is that you can no longer access websites because the DNS is not working because the Pi has a different IP than is set in the router for DNS. At the latest then you will know whether the IP in the router is static or not. Otherwise the only option is to do it via interfaces or install dhcpcd.

k9t33n

if I shut down the pi can people use the internet normally?

k9t33n

if not how can I change that?

k9t33n

or Atleest be able to easily turn the pihole off

jannik44

yes

jannik44

people can always use the internet normally, only when they use your dns server it wont work if its off

jannik44

thats why redundant dns exists

jannik44

you can enter two dns servers in the config

jannik44

host pihole two times and you can restart the pis without any problems

k9t33n

i mean i use a setting in the router right to force everyone through the dns? i mean if i dont want to manually change it on each device

k9t33n

actually how would i change it on each device, is that also easy?

jannik44

yes, its in the wifi settings

jannik44

see?

k9t33n

but if i have 29 devices on my network wont that take a long time?

jannik44

you could do it manually or just set this dns as upstream dns in the router

k9t33n

ok and if the pi shuts down without warning everyone will just automatically switch to normal internet?

jannik44

no

jannik44

then everyone will think he doesnt have Internet

jannik44

thats why you should host two of them on seperate devices

k9t33n

two what?

jannik44

two piholes

jannik44

or just dont shut down your pihole

jannik44

but pihole is very stable, mine runs now for over a year, never had any issues

k9t33n

im also thinking if i mess this up right now my family cant suffer more than an hour without internet lol

k9t33n

ok i forgot what to do now. do i start pihole up again?

jannik44

in docker its just
docker restart <pihole Container>

k9t33n

yeah i know how just making sure i do

k9t33n

also its on pi os not docker

k9t33n

ok, not sure what to do, it said would you like to set a static ip adress, i clicked yes bc im not confident i have an actual one and now its given me this

k9t33n

what do i do?

k9t33n

<@661583386992836619>?

k9t33n

the gateway is already set to my routers ip address. should i leave it like that?

jannik44

yes

k9t33n

ok

jannik44

Set an ip Outside of the dhcp range

k9t33n

yup i did

k9t33n

?

jannik44

would go with cloudflare

k9t33n

?

k9t33n


jannik44

cloudflare as upstream dns

k9t33n

yeah forgot to send pic

jannik44

just go ahead

k9t33n

with show etherything?

jannik44

ye, this is just the loglevel

k9t33n

ok good because i already went with it

k9t33n

this feels illegal with how easy it is to block ads

k9t33n

with 29 devices it wont be slow right? on a pi4 with 2gb ram

jannik44

it will be faster than ever

k9t33n

oh cool, didnt know ads make that much of a difference to speed

k9t33n

ok so it did it, it gave me stuff with a "admin password" i screenshotted it so id remeber. now what do i do?

jannik44

pihole is blocking around 25% of all my dns requests...

jannik44

go to the Dashboard

k9t33n

ok

jannik44

<pi ip>/admin

k9t33n

it gave me admin dashboard, i already went to it

k9t33n

"this site cant be reached?

jannik44

check where the Dashboard is with ip and portscan

k9t33n

uhm ok, so i did ip a my ip is not set to the one i set in pi hole, then i went into the admin table with that ip instead and it worked?

k9t33n

oh this is so cool!

k9t33n

this wont be a problem right?

k9t33n

ok im gonna say no. what do i do now?

oops.se

Its actually more than two.

jannik44

now you could add additional adlists

jannik44

or just start using pihole right away?

k9t33n

which do you recommend?

k9t33n

i mean theres little chance of pi hole crashing right?

jannik44

really? never seen a setting with more than two dns servers

jannik44

it basically wont crash, dont worry

jannik44

its veeeery stable

k9t33n

so whats an adlist?

jannik44

my ph

k9t33n

ok cool

jannik44

an adlist is just a list of Blacklisted websites

jannik44

just click a bit around you will see

k9t33n

cant i just block all ads?

jannik44

yes, but a Computer cant decide between ad and not ad, so you have to tell him xd

k9t33n

i have to go through 143,000 links to decide which is an ad or not an ad?

k9t33n

or atleest look at them?

k9t33n

actually isnt this list certified to be adds? https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts

k9t33n

its the one they gave on the site

jannik44

yes

jannik44

just leave it as is for the next week or so, it works out of the box

k9t33n

ok great

k9t33n

now then, how do put all the devices through this?

k9t33n

also will it cut the internet for a second? i need to warn people if it will

jannik44

1. upstream dns in Router 2. on each device individually

jannik44

these are the options

k9t33n

i mean it will take a while if i do it individually right?

jannik44

no, it will change immediately

k9t33n

i mean it will take a while for me

jannik44

ah yes

k9t33n

also this?

jannik44

nope, they wont notice anything

k9t33n

ok

k9t33n

now how do i do "upstream dns in router"?

jannik44

there is a setting in your router where you can set a dns Server

k9t33n

one second ill check

jannik44

and if there is nothing, your router is probably crap

k9t33n

uhm what does this mean?

jannik44

thats it

jannik44

set to manual

k9t33n

oh this is cool

k9t33n

so i put in the ip of my pi?

jannik44

yes

k9t33n

but my ip adress is more than 4 digits long?

jannik44

this is weird, i guess your router is restricting wich ones you can use, maybe <@796000224690307072> knows

k9t33n

what do mean which ones i can use?

k9t33n

the last bit of digits on the ip is only 3 digits long if it wants that

jannik44

big companys like cloudflare (1.0.0.1, quadnine(9.9.9.9) and Google (8.8.8.8)have 4 digit long dns ips

k9t33n

i used cloudflare right?

jannik44

yes

jannik44

no.

k9t33n

so do i put that in?

jannik44

.

jannik44

ip of the pi

k9t33n

you seem to have two conntradicting answers 馃槀

jannik44

nope

k9t33n

the last 4 digits is 1.119?

jannik44

your dns goes from your device to the pi and if the pi doesnt know to cloudflare, If you set cloudflare in your router you are basically just bypassing pihole

k9t33n

oh, ok

k9t33n

so what do i do?

jannik44

wait for him

k9t33n

oki

k9t33n

sorry

k9t33n

youl probably have to ping me when he comes back

jannik44

looks like its amplifiying itself via the bot logs, he probably got 4 pings now...

k9t33n

damn

k9t33n

well he should be super alert <:kekw:1096152716578934924>

k9t33n

oh yeah forgot i muted the bot logs for the same reason

k9t33n

<@661583386992836619> I need you to convince my brother because he thinks this will make the network slower

k9t33n

I have the pi 4 2gb, give me your best pitch and I'll give it to him

jannik44

pihole caches dns requests, whats faster, a device sending to your pi or a device sending to some random server in your country 馃槃

k9t33n

lol fair point

k9t33n

ok ive figured something out

k9t33n

i went on the real pihole docs, theyre picture looks similar to mine. what they did is put multiple numbers in each box each one separated by the dots

k9t33n

this would work with mine

k9t33n

so these 4 pings werent even needed. sorry oopse

k9t33n

ok im ready to do it now

k9t33n

how do i know if its working?

jannik44

you will see the number on the dashboard increasing

k9t33n

nvm went on https://canyoublockit.com/, it just destroyed the extreme test and it cant even detect it as an adblocker

k9t33n

will this work for sponsered links on google?

k9t33n

https://cnn.com is apparently swimming with ads but I can't see a single one

k9t33n

thank you so much for the help. I love this rn

k9t33n

I've had some problems on mobile. it seems to do a worse job on mobile than desktop

k9t33n

is there any reason for this?

jannik44

no, it doesnt do a worse job, its running perfectly, if you see ads somewhere then you did not set that ad domain on the blacklist

jannik44

here, add these adlists to your pihole and it will block more https://v.firebog.net/hosts/lists.php?type=tick

k9t33n

Im seeing the ads that are blocked when I'm on my laptop

k9t33n

I checked and the ad domain is in the adlist but it's not blocking it on mobile

jannik44

how can you see something that isnt there lmao

k9t33n

because I use "can you block it" which shows you ads and shows you where they would be

jannik44

did you set up pihole as dns server on your phone?

k9t33n

yes, it's routed for every device

k9t33n

remember I did what you told me

jannik44

then pihole is blocking it.

jannik44

remember: when you think something is wrong with pihole, its not pihole but your device/adlist configuration

k9t33n

lol

k9t33n

ill test more later and take screenshots to show you. trust me tho it's not working as good on mobile as desktop. idk why

jannik44

it is, because its just dns, sry cant trust you with that lmao

jannik44

probably the ads are cached on your phone (see? device config)

k9t33n

yeah your right here

k9t33n

they can do that????

k9t33n

where do i find my device config?

jannik44

yes, im pretty sure

jannik44

just clear all the app caches, restart your phone, wait, whatever, just try a few things

k9t33n

how do I clear my app caches?

k9t33n

you use duck duck go?

jannik44

yes

k9t33n

me too

k9t33n

I'm guessing you turned sponsored results off too?

jannik44

yes...

k9t33n

ok glad to see, it's strange how many people actually stick to Google that's all

jannik44

too much

k9t33n

exactly

k9t33n

ok I cleared etherything so it was no chance of being on the cache, but im still getting ads which would be blocked on desktop

jannik44

then check pihole log and check from wich domain it comes, then block that domain

k9t33n

already checked, the weird part is that the domain is in the adlist. its just not blocking it

k9t33n

its blocking all the other ones just not most banner ads

jannik44

is it green or red in the log?

k9t33n

one second. let me check

k9t33n

i didnt check that exactly i just copied the domain from the add

jannik44

show me that domain lmao

k9t33n

doubleclick.net or something

k9t33n

also a bunch of these

k9t33n

ok after some messing around i got to this, now i should never have to see an ad again lol

k9t33n

the majoritory of these came from this btw https://raw.githubusercontent.com/blocklistproject/Lists/master/everything.txt if you want to use it

k9t33n

oh wait that isnt stored on the pi right?

jannik44

wich one exactly?

jannik44

but be careful, some lists contain false-positives if you use all of the firebog lists, thats why i went with only confirmed lists

k9t33n

yeah just realised a few stuffs not working. turning it off now

jannik44

yea

k9t33n

god I do love this tho, ok so if I see an ad I copy the domain and add it to the adlist?

jannik44

yes, to the blacklist

k9t33n

what do you mean?

jannik44

nvm

k9t33n

ok

k9t33n

ok damn I've decided the DNS is actually just not working on my phone

k9t33n

I tried an adblock test, it's miserably failing and the log has no record of it

k9t33n

do I put pi-4 here? (that's the hostname of my pi)

jannik44

ip

k9t33n

but it says hostname?

jannik44

you set the dns server in wifi setting, not private dns because your pihole is on a private network

k9t33n

ok, any other idea of why it's not working on mobile?

jannik44

it is

jannik44

check pihole logs and look for your client ip

k9t33n

my phone is recognising it

k9t33n

ok

k9t33n

so it turns out I forgot I disabled blocking a bit ago when I was having problems and forgot about it

k9t33n

but it's still not great

k9t33n

on https://d3ward.github.io/toolz/adblock.html I'm getting 54% which Is higher than when it wasn't on but no where near the 99% I get on desktop

k9t33n

and I'm still getting banner ads

jannik44

cant see it, my pihole blocks it lol

k9t33n

ok so it definitely isn't working on my phone

k9t33n

oh sorry

k9t33n

do I delete it?

k9t33n

oh nvm I did

k9t33n

ok so what should I do? because the pi hole has my phone up in the logs but it clearly isn't working

jannik44

still, its a domain problem

jannik44

maybe its cached somehwere else

k9t33n

I doubt it

k9t33n

I cleared the cache of anywhere it could be, restarted my phone several times and completely deleted the storage of chrome so I had to sign in again

k9t33n

ok so what do you recommend?

k9t33n

because to me it's not worth having this pi hole if it only works on desktop

k9t33n

or only works well on desktop

k9t33n

ok yeah i thorougly made sure it cant be the cache now

k9t33n

can it be anything else?

岵坚布

you probably didn't clear your dns cache correctly

岵坚布

maybe this will help?

岵坚布

phones handle dns cache differently than a pc operating system

k9t33n

yeah nope, I did all of these in sequence then cleared the app caches again and restarted. it's still not working

k9t33n

do I want to do any of these? this is on the pi hole dashboard

岵坚布

you must do it on your phone if it doesn't work it has to be the issue with the phone (assuming you set up pihole correctly)

岵坚布

make sure you routed your device to your pihole

k9t33n

yes it is

岵坚布

on any browser because pihole works globally

岵坚布

the higher the percentage the better

k9t33n

that's the one I've been using

k9t33n

.

k9t33n

this continues to vary but still not anywhere near desktop scores. ill have a look in a second to see if pi hole sees this stuff in the log

oops.se

Well you can and DNS is now adays a very stable service, but 20-30 years ago it was less so and mostly it was "DNS service overload".

岵坚布

your pihole is working if your browser is not blocking these requests

岵坚布

read up on filters

k9t33n

but why is it different to on my pc?

k9t33n

will do, I'll try a very basic browser so I know it won't be blocking them

k9t33n

I've done these tests on chrome on both devices so it shouldnt block less or something

k9t33n

ok after some more testing, its not much different on my pc now its just not that good on either so im going to be finding some ads for a while

k9t33n

how do unblock googleadservices.com if its from the orriginal list of thats the only one i want to leave out?

k9t33n

nvm done it

岵坚布

you probably have a more sophisticated browser that blocks stuff there is a lot of variables

k9t33n

yeah it could

k9t33n

if I wanted to only set it up for specific devices how would I do that?

k9t33n

with this again? for example if I wanted to set it on my phone

oops.se

If you wan't a specific DNS (PiHole) for one device you need to change that manually. In DHCP all devices get the same IP config. You could setup a second DHCP server and make all addresses reserved for certain MAC addresses = the devices that should have that config.

k9t33n

how would I do that?

oops.se

PiHole can be a DHCP server

k9t33n

I'm so confused right now

oops.se

You have one DHCP server on your router, right. You can also install/activate a DHCP server on your PiHole. And the DHCP server on the router has one config and the one on the PiHole has another. And on the PiHole DHCP server you only allow some devices to get their IP config from.

k9t33n

oooo...k I kinda get that

k9t33n

but I need things like commands and instruction now

oops.se

Google "Pihole config dhcp server"

k9t33n

ok when I have time I will

oops.se

PiHole has a guide

k9t33n

ah ok will follow that then

k9t33n

ok it says that I need to disable it on my router, won't that do this for all the devices?

k9t33n

I want every other device to have a completely normal experience

null

<@1071178789939331253> Make your life easier and set the DNS to be used in the device. Works on your phone and PC.

k9t33n

wdym device works?

k9t33n

I want it to be set just for my phone and pc, how do I do it?

null

You have to google it, unfortunately it is different for every phone. With Windows you have to change it in the adapter. You will also find enough instructions.

k9t33n

okay

k9t33n

all the ones for android say to use this, but the pis hostname doesn't work

k9t33n

and it won't let me put in the ip

k9t33n

ok figured it out for windows, just wondering what this does?

oops.se

You config the devices manually.

oops.se

It tunnel DNS over HTTPS = Encrypts the DNS trafic.

oops.se

How to change your private Android IP address? - Go to your Android Settings and select Connections or Network & Internet. - Click on your wifi network and hold until you see the menu. - Tap Modify Network or Manage Network Settings. - Change IP settings from DHCP to Static, and click 'Save'.

k9t33n

what should i set this static ip to?

k9t33n

i did it

k9t33n

i think

k9t33n

ok back to this again because i reimaged to lite

k9t33n

so im doing this setting this thing
interface eth0
static_routers=192.168.1.254
static domain_name_servers=192.168.1.254
inform ip_address=192.168.1.10/24
because i think thats what worked last time. but when i press ctrl + x or ctrl + o it says "[ Error writing /etc/dhcpcd.conf: Permission denied ]" how do i fix that?

k9t33n

am i supposed to use sudo when i go into nano mode?

k9t33n

ok i used sudo, not sure if it worked or not

k9t33n

if its not using the ip i set does that mean i just did it wrong?

k9t33n

ok im following this tutorial https://raspberrytips.com/set-static-ip-address-raspberry-pi/ and its telling me to use sudo nmtui which so far looks promising but when i get to the ipv4 config what am i supposed to put in the addresses and gateway? the ip i want or the routers ip? or the "domain server" from my router?

k9t33n

ok i decided to scrap that

k9t33n

so i got a completely new os again. so if anyone has any ideas im open to trying it

jannik44

do it as root, normal user cant do that

k9t33n

doesnt sudo make you root kinda?

k9t33n

because its "substituting" the root user in

jannik44

yes

k9t33n

yeah tried that.. it didn't work

k9t33n

I could "write" the file but it didn't change the ip

jannik44

restart your device after that

k9t33n

ok thanks i will try that now

k9t33n

> Replace <interface_name> with the actual name of your network interface, <desired_ip_address> with the IP address you want to assign to your Debian machine, <netmask_address> with the subnet mask, and <default_gateway_address> with the IP address of your router or gateway.

k9t33n

whats a subnet mask?

k9t33n

oh i found it in my router config

k9t33n

and the default gateway address is just my routers ip, or how do i find my gateway?

k9t33n

on my phone it says my gateway is the same as the routers ip, so should I just put that?

k9t33n

YES IT WORKED!

k9t33n

THANK YOU SO MUCH!

k9t33n

god why does this make me so happy

k9t33n

thank you yet again just because you deserve it

k9t33n

god if i had that bot working by now id be spamming it

k9t33n

ok I'll finally close this thread. then make a new one about static public ips because I'm gonna also host a wireguard VPN thingy

jannik44

good