Sorry, dass das möglicherweise eine blöde Frage ist, aber ich verwende Pi-hole noch nicht so lange.
Um geblockte Seiten zu loggen, habe ich mich vor dem Update auf V. 4.0 auf meinem Raspi angemeldet und pilog gestartet , was einfach ein in der .bashrc definierter Alias ist:
alias pilog="pihole tail | grep -e gravity\.list -e black\.list"
Nun nach dem Update habe ich diesen Befehl erweitert auf:
alias pilog="pihole tail | grep -e gravity\.list -e black\.list -e regex\.list"
um auch Regex und Wildcard-Blocking angezeigt zu bekommen. Leider funktioniert das nicht.
Ich habe z.B. folgende Regel:
(^|\.)firebase\.io$
Führe ich nun
dig firebase.io
aus, wird mir das zwar unter Queries in der Pi-hole Admin Console als geblockt angezeigt (Status: Pi-holed (wildcard) ), aber eben nicht auf der Konsole mit obigem Befehl.
Irgendetwas mache ich falsch - oder ist das noch nicht implementiert?
DL6ER
August 13, 2018, 11:49am
2
Ja, das habe ich erst gestern hinzugefügt:
pi-hole:development
← pi-hole:tweak/log_show_regex.list_as_source
opened 10:32PM - 12 Aug 18 UTC
**By submitting this pull request, I confirm the following (please check boxes, … eg [X]) _Failure to fill the template will close your PR_:**
***Please submit all pull requests against the `development` branch. Failure to do so will delay or deny your request***
- [X] I have read and understood the [contributors guide](https://github.com/pi-hole/pi-hole/blob/master/CONTRIBUTING.md).
- [X] I have checked that [another pull request](https://github.com/pi-hole/FTL/pulls) for this purpose does not exist.
- [X] I have considered, and confirmed that this submission will be valuable to others.
- [X] I accept that this submission may not be used, and the pull request closed at the will of the maintainer.
- [X] I give this submission freely, and claim no ownership to its content.
**How familiar are you with the codebase?:**
## 10
---
Show "regex.list" as source of regex blocked queries instead of `unknown`. Exemplary log lines are now:
```plain
Aug 12 21:31:30 dnsmasq[14331]: 1507 127.0.0.1/47018 query[A] twitter.com from 127.0.0.1
Aug 12 21:31:30 dnsmasq[14331]: 1507 127.0.0.1/47018 /etc/pihole/regex.list twitter.com is 0.0.0.0
```
_This template was created based on the work of [`udemy-dl`](https://github.com/nishad/udemy-dl/blob/master/LICENSE)._
Ich glaube z.Zt. müsste <unknown>
ausgegeben werden.
Es gibt den Regex Debug Modus . Wenn Du Deinen pilog
Befehl auf die Datei /var/log/pihole-FTL.log` erweiterst bekommst Du dort dann angezeigt wenn ein (und welcher) Regex Filter das erste Mal getroffen hat.
1 Like
DL6ER:
Ja, das habe ich erst gestern hinzugefügt: [/quote]
Vielen Dank - das beruhigt mich! So blöd bin ich also doch nicht
[quote]Es gibt den Regex Debug Modus . Wenn Du Deinen pilog
Befehl auf die Datei /var/log/pihole-FTL.log` erweiterst bekommst Du dort dann angezeigt wenn ein (und welcher) Regex Filter das erste Mal getroffen hat.
Den Regex Debug Mode hatte ich tatsächlich gestern schon aktiviert, es funktioniert aber leider trotzdem nicht. Ich habe den Befehl geändert in
pihole tail | grep -e gravity\.list -e black\.list -e pihole-FTL\.log
und dann nochmal mit vollem Pfad:
pihole tail | grep -e gravity\.list -e black\.list -e \/var\/log\/pihole-FTL\.log
Leider wird immer noch nichts angezeigt, obwohl in der pihole-FTL.log durchaus ein Eintrag ist:
[2018-08-13 13:30:47.500] DEBUG: Regex in line 107 "(^|.)firebase.io$" matches "firebase.io"
DL6ER
August 13, 2018, 12:16pm
4
Vielleicht eher
tail -f /var/log/pihole.log /var/log/pihole-FTL.log | grep -e black.list -e gravity.list -e Regex
1 Like
Ah - vielen Dank! Das funktioniert