netblue30 / fdns

Firejail DNS-over-HTTPS Proxy Server
GNU General Public License v3.0
125 stars 30 forks source link

Option to disable ipv6 #13

Closed glitsj16 closed 4 years ago

glitsj16 commented 4 years ago

During prolonged use of fdns --monitor the stats view it offers gets polluted rather quickly when ipv6 is not enabled on your machine. It's filled with (ipv6) dropped entrees and the high rate of its dropped counter might confuse the user into thinking something is wrong. Would it be possible to have a knob to disable ipv6?

netblue30 commented 4 years ago

I've noticed it, quite annoying. Let's try this: I'll disable all counts and monitor info for ipv6 (received, dropped, etc.) if ipv6 is disabled, and only enable all of them if the user specifically requests --ipv6.

startx2017 commented 4 years ago

Closed for now!

glitsj16 commented 4 years ago

Let's try this: I'll disable all counts and monitor info for ipv6 (received, dropped, etc.) if ipv6 is disabled, and only enable all of them if the user specifically requests --ipv6.

Looks much better now, but I still see a high count of dropped requests in the monitor. Just a FYI, as I'm used to it by now and I assume these are mostly dropped ipv6 requests. Wanted to bring this to the attention of @startx2017 too now he has taken over #13.

digital-society ENCRYPTED (SSL 16.30 ms, fallback 0), 
requests 128, drop 60, cache 16, fwd 0
...
netblue30 commented 4 years ago

Yes, something wrong there, the count still goes up - it is probably an ipv6 count. I'll take a look.

glitsj16 commented 4 years ago

Confirming https://github.com/glitsj16/fdns/commit/39df8bde1e87934c220a47c47c87093fdf4e06b7 fixed the high drop count. Looking really impressive now with new servers flowing in.

Cheers!