Advertisement
BelluX

Untitled

Sep 27th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.71 KB | None | 0 0
  1. This process collects information from your Pi-hole, and optionally uploads it to a unique and random directory on tricorder.pi-hole.net.
  2.  
  3. The intent of this script is to allow users to self-diagnose their installations. This is accomplished by running tests against our software and providing the user with links to FAQ articles when a problem is detected. Since we are a small team and Pi-hole has been growing steadily, it is our hope that this will help us spend more time on development.
  4.  
  5. NOTE: All log files auto-delete after 48 hours and ONLY the Pi-hole developers can access your data via the given token. We have taken these extra steps to secure your data and will work to further reduce any personal information gathered.
  6.  
  7. *** [ INITIALIZING ]
  8. [i] 2018-09-27:15:17:02 debug log has been initialized.
  9.  
  10. *** [ INITIALIZING ] Sourcing setup variables
  11. [i] Sourcing /etc/pihole/setupVars.conf...
  12.  
  13. *** [ DIAGNOSING ]: Core version
  14. [i] Core: v4.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v4.0-0-gddbdb51
  17.  
  18. *** [ DIAGNOSING ]: Web version
  19. [i] Web: v4.0 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  20. [i] Branch: master
  21. [i] Commit: v4.0-0-gaf8c926
  22.  
  23. *** [ DIAGNOSING ]: FTL version
  24. [✓] FTL: v4.0
  25.  
  26. *** [ DIAGNOSING ]: dnsmasq version
  27. [i] 340:
  28.  
  29. *** [ DIAGNOSING ]: lighttpd version
  30. [i] 1.4.45
  31.  
  32. *** [ DIAGNOSING ]: php version
  33. [i] 7.0.30
  34.  
  35. *** [ DIAGNOSING ]: Operating system
  36. [✓] Raspbian GNU/Linux 9 (stretch)
  37.  
  38. *** [ DIAGNOSING ]: SELinux
  39. [i] SELinux not detected
  40.  
  41. *** [ DIAGNOSING ]: Processor
  42. [✓] armv7l
  43.  
  44. *** [ DIAGNOSING ]: Networking
  45. [✓] IPv4 address(es) bound to the eth0 interface:
  46. 192.168.250.50/24 matches the IP found in /etc/pihole/setupVars.conf
  47.  
  48. [✓] IPv6 address(es) bound to the eth0 interface:
  49. fe80::488e:9b99:1f13:eafc does not match the IP found in /etc/pihole/setupVars.conf (https://discourse.pi-hole.net/t/use-ipv6-ula-addresses-for-pi-hole/2127)
  50.  
  51. ^ Please note that you may have more than one IP address listed.
  52. As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.
  53.  
  54. The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
  55.  
  56. [i] Default IPv4 gateway: 192.168.250.254
  57. * Pinging 192.168.250.254...
  58. [✓] Gateway responded.
  59.  
  60. *** [ DIAGNOSING ]: Ports in use
  61. *:22 sshd (IPv4)
  62. *:22 sshd (IPv6)
  63. *:80 lighttpd (IPv4)
  64. *:80 lighttpd (IPv6)
  65. *:53 pihole-FTL (IPv4)
  66. *:53 pihole-FTL (IPv6)
  67. 127.0.0.1:4711 pihole-FTL (IPv4)
  68. [::1]:4711 pihole-FTL (IPv6)
  69.  
  70. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  71. [✓] dagcoin.org is 0.0.0.0 via localhost (127.0.0.1)
  72. [✓] dagcoin.org is 0.0.0.0 via Pi-hole (192.168.250.50)
  73. [✓] doubleclick.com is 216.58.205.142 via a remote, public DNS server (8.8.8.8)
  74.  
  75. *** [ DIAGNOSING ]: Pi-hole processes
  76. [✗] dnsmasq daemon is inactive
  77. [✓] lighttpd daemon is active
  78. [✓] pihole-FTL daemon is active
  79.  
  80. *** [ DIAGNOSING ]: Setup variables
  81. PIHOLE_INTERFACE=eth0
  82. IPV4_ADDRESS=192.168.250.50/24
  83. IPV6_ADDRESS=
  84. QUERY_LOGGING=true
  85. INSTALL_WEB_SERVER=true
  86. INSTALL_WEB_INTERFACE=true
  87. LIGHTTPD_ENABLED=true
  88. DNSMASQ_LISTENING=single
  89. PIHOLE_DNS_1=8.8.8.8
  90. PIHOLE_DNS_2=8.8.4.4
  91. DNS_FQDN_REQUIRED=true
  92. DNS_BOGUS_PRIV=true
  93. DNSSEC=false
  94. CONDITIONAL_FORWARDING=false
  95.  
  96. *** [ DIAGNOSING ]: Dashboard and block page
  97. [✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  98. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  99.  
  100. *** [ DIAGNOSING ]: Gravity list
  101. -rw-r--r-- 1 root root 2994443 Sep 27 14:10 /etc/pihole/gravity.list
  102. -----head of gravity.list------
  103. 0.0.0.0
  104. 0.r.msn.com
  105. 0.start.bz
  106. 000.0x1f4b0.com
  107.  
  108. -----tail of gravity.list------
  109. zzz.clickbank.net
  110. zzzezeroe.fr
  111. zzzpooeaz-france.com
  112. zzzrtrcm2.com
  113.  
  114. *** [ DIAGNOSING ]: contents of /etc/pihole
  115.  
  116. -rw-r--r-- 1 root root 381 Sep 27 13:44 /etc/pihole/adlists.list
  117. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  118. https://mirror1.malwaredomains.com/files/justdomains
  119. http://sysctl.org/cameleon/hosts
  120. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  121. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  122. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  123. https://hosts-file.net/ad_servers.txt
  124.  
  125. -rw-r--r-- 1 root root 13 Sep 27 14:10 /etc/pihole/blacklist.txt
  126. facebook.com
  127.  
  128. -rw-r--r-- 1 root root 50 Sep 27 14:10 /etc/pihole/local.list
  129. 192.168.250.50 raspberrypi
  130. 192.168.250.50 pi.hole
  131.  
  132. -rw-r--r-- 1 root root 234 Sep 27 13:50 /etc/pihole/logrotate
  133. /var/log/pihole.log {
  134. su root root
  135. daily
  136. copytruncate
  137. rotate 5
  138. compress
  139. delaycompress
  140. notifempty
  141. nomail
  142. }
  143. /var/log/pihole-FTL.log {
  144. su root root
  145. weekly
  146. copytruncate
  147. rotate 3
  148. compress
  149. delaycompress
  150. notifempty
  151. nomail
  152. }
  153.  
  154. -rw-r--r-- 1 root root 0 Sep 27 14:10 /etc/pihole/whitelist.txt
  155.  
  156. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  157.  
  158. -rw-r--r-- 1 root root 1533 Sep 27 15:01 /etc/dnsmasq.d/01-pihole.conf
  159. addn-hosts=/etc/pihole/gravity.list
  160. addn-hosts=/etc/pihole/black.list
  161. addn-hosts=/etc/pihole/local.list
  162. localise-queries
  163. no-resolv
  164. cache-size=10000
  165. log-queries=extra
  166. log-facility=/var/log/pihole.log
  167. local-ttl=2
  168. log-async
  169. server=8.8.8.8
  170. server=8.8.4.4
  171. domain-needed
  172. bogus-priv
  173. interface=eth0
  174.  
  175. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  176.  
  177. -rw-r--r-- 1 root root 3027 Sep 27 13:50 /etc/lighttpd/lighttpd.conf
  178. server.modules = (
  179. "mod_access",
  180. "mod_accesslog",
  181. "mod_auth",
  182. "mod_expire",
  183. "mod_compress",
  184. "mod_redirect",
  185. "mod_setenv",
  186. "mod_rewrite"
  187. )
  188. server.document-root = "/var/www/html"
  189. server.error-handler-404 = "pihole/index.php"
  190. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  191. server.errorlog = "/var/log/lighttpd/error.log"
  192. server.pid-file = "/var/run/lighttpd.pid"
  193. server.username = "www-data"
  194. server.groupname = "www-data"
  195. server.port = 80
  196. accesslog.filename = "/var/log/lighttpd/access.log"
  197. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  198. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  199. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  200. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  201. compress.cache-dir = "/var/cache/lighttpd/compress/"
  202. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  203. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  204. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  205. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  206. ' 2>/dev/null"
  207. $HTTP["url"] =~ "^/admin/" {
  208.  
  209. setenv.add-response-header = (
  210. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  211. "X-Frame-Options" => "DENY"
  212. )
  213. $HTTP["url"] =~ ".ttf$" {
  214.  
  215. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  216. }
  217. }
  218. $HTTP["url"] =~ "^/admin/\.(.*)" {
  219. url.access-deny = ("")
  220. }
  221. include_shell "cat external.conf 2>/dev/null"
  222.  
  223. *** [ DIAGNOSING ]: contents of /etc/cron.d
  224.  
  225. -rw-r--r-- 1 root root 1496 Sep 27 13:50 /etc/cron.d/pihole
  226. 34 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  227. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  228. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  229. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  230. 23 18 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  231. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  232.  
  233. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  234.  
  235. -rw-r--r-- 1 www-data www-data 389 Sep 27 14:32 /var/log/lighttpd/error.log
  236. 2018-09-27 13:48:38: (log.c.217) server started
  237. 2018-09-27 13:50:58: (server.c.1828) server stopped by UID = 0 PID = 1
  238. 2018-09-27 13:50:59: (log.c.217) server started
  239. 2018-09-27 14:03:54: (server.c.1828) server stopped by UID = 0 PID = 1
  240. 2018-09-27 14:04:33: (log.c.217) server started
  241. 2018-09-27 14:22:56: (log.c.217) server started
  242. 2018-09-27 14:32:16: (log.c.217) server started
  243.  
  244. *** [ DIAGNOSING ]: contents of /var/log
  245.  
  246. -rw-r--r-- 1 pihole pihole 21030 Sep 27 15:01 /var/log/pihole-FTL.log
  247. -----head of pihole-FTL.log------
  248. [2018-09-27 13:51:10.974] ########## FTL started! ##########
  249. [2018-09-27 13:51:10.974] FTL branch:
  250. [2018-09-27 13:51:10.974] FTL version: v4.0
  251. [2018-09-27 13:51:10.974] FTL commit: 8493df4
  252. [2018-09-27 13:51:10.974] FTL date: 2018-08-05 13:40:30 -0700
  253. [2018-09-27 13:51:10.974] FTL user: pihole
  254. [2018-09-27 13:51:10.974] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  255. [2018-09-27 13:51:10.974] SOCKET_LISTENING: only local
  256. [2018-09-27 13:51:10.974] AAAA_QUERY_ANALYSIS: Show AAAA queries
  257. [2018-09-27 13:51:10.974] MAXDBDAYS: max age for stored queries is 365 days
  258. [2018-09-27 13:51:10.974] RESOLVE_IPV6: Resolve IPv6 addresses
  259. [2018-09-27 13:51:10.974] RESOLVE_IPV4: Resolve IPv4 addresses
  260. [2018-09-27 13:51:10.974] DBINTERVAL: saving to DB file every minute
  261. [2018-09-27 13:51:10.975] DBFILE: Using /etc/pihole/pihole-FTL.db
  262. [2018-09-27 13:51:10.975] MAXLOGAGE: Importing up to 24.0 hours of log data
  263. [2018-09-27 13:51:10.975] PRIVACYLEVEL: Set to 0
  264. [2018-09-27 13:51:10.975] IGNORE_LOCALHOST: Show queries from localhost
  265. [2018-09-27 13:51:10.975] BLOCKINGMODE: Null IPs for blocked domains
  266. [2018-09-27 13:51:10.975] REGEX_DEBUGMODE: Inactive
  267. [2018-09-27 13:51:10.975] Finished config file parsing
  268. [2018-09-27 13:51:10.975] INFO: No whitelist file found
  269. [2018-09-27 13:51:10.975] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)
  270. [2018-09-27 13:51:10.975] db_init() - Cannot open database (14): unable to open database file
  271. [2018-09-27 13:51:10.975] Creating new (empty) database
  272. [2018-09-27 13:51:11.390] Database successfully initialized
  273. [2018-09-27 13:51:11.391] Imported 0 queries from the long-term database
  274. [2018-09-27 13:51:11.391] -> Total DNS queries: 0
  275. [2018-09-27 13:51:11.391] -> Cached DNS queries: 0
  276. [2018-09-27 13:51:11.391] -> Forwarded DNS queries: 0
  277. [2018-09-27 13:51:11.391] -> Exactly blocked DNS queries: 0
  278. [2018-09-27 13:51:11.391] -> Unknown DNS queries: 0
  279. [2018-09-27 13:51:11.391] -> Unique domains: 0
  280. [2018-09-27 13:51:11.391] -> Unique clients: 0
  281. [2018-09-27 13:51:11.391] -> Known forward destinations: 0
  282. [2018-09-27 13:51:11.391] Successfully accessed setupVars.conf
  283.  
  284. -----tail of pihole-FTL.log------
  285. [2018-09-27 15:01:42.522] DBFILE: Using /etc/pihole/pihole-FTL.db
  286. [2018-09-27 15:01:42.522] MAXLOGAGE: Importing up to 24.0 hours of log data
  287. [2018-09-27 15:01:42.522] PRIVACYLEVEL: Set to 0
  288. [2018-09-27 15:01:42.522] IGNORE_LOCALHOST: Show queries from localhost
  289. [2018-09-27 15:01:42.522] BLOCKINGMODE: Null IPs for blocked domains
  290. [2018-09-27 15:01:42.522] REGEX_DEBUGMODE: Inactive
  291. [2018-09-27 15:01:42.522] Finished config file parsing
  292. [2018-09-27 15:01:42.522] Skipping empty regex filter on line 1
  293. [2018-09-27 15:01:42.523] Compiled 1 Regex filters and 0 whitelisted domains in 0.4 msec (0 errors)
  294. [2018-09-27 15:01:42.525] Database successfully initialized
  295. [2018-09-27 15:01:42.526] Notice: Increasing queries struct size from 0 to 10000
  296. [2018-09-27 15:01:42.526] Notice: Increasing domains struct size from 0 to 1000
  297. [2018-09-27 15:01:42.526] Notice: Increasing clients struct size from 0 to 10
  298. [2018-09-27 15:01:42.526] New forward server: 8.8.4.4 (0/0)
  299. [2018-09-27 15:01:42.526] Notice: Increasing forwarded struct size from 0 to 4
  300. [2018-09-27 15:01:42.526] Notice: Increasing overTime struct size from 0 to 100
  301. [2018-09-27 15:01:42.526] New forward server: 8.8.8.8 (1/4)
  302. [2018-09-27 15:01:42.532] Imported 462 queries from the long-term database
  303. [2018-09-27 15:01:42.532] -> Total DNS queries: 462
  304. [2018-09-27 15:01:42.532] -> Cached DNS queries: 24
  305. [2018-09-27 15:01:42.532] -> Forwarded DNS queries: 287
  306. [2018-09-27 15:01:42.532] -> Exactly blocked DNS queries: 71
  307. [2018-09-27 15:01:42.532] -> Unknown DNS queries: 80
  308. [2018-09-27 15:01:42.532] -> Unique domains: 110
  309. [2018-09-27 15:01:42.532] -> Unique clients: 2
  310. [2018-09-27 15:01:42.533] -> Known forward destinations: 2
  311. [2018-09-27 15:01:42.533] Successfully accessed setupVars.conf
  312. [2018-09-27 15:01:42.541] PID of FTL process: 1255
  313. [2018-09-27 15:01:42.542] Listening on port 4711 for incoming IPv4 telnet connections
  314. [2018-09-27 15:01:42.543] Listening on port 4711 for incoming IPv6 telnet connections
  315. [2018-09-27 15:01:42.543] Listening on Unix socket
  316. [2018-09-27 15:01:42.545] Skipping empty regex filter on line 1
  317. [2018-09-27 15:01:42.545] Compiled 1 Regex filters and 0 whitelisted domains in 0.4 msec (0 errors)
  318. [2018-09-27 15:01:42.546] /etc/pihole/black.list: parsed 1 domains (took 0.0 ms)
  319. [2018-09-27 15:01:43.407] /etc/pihole/gravity.list: parsed 130558 domains (took 860.8 ms)
  320.  
  321. *** [ DIAGNOSING ]: Locale
  322. LANG=en_GB.UTF-8
  323.  
  324. *** [ DIAGNOSING ]: Pi-hole log
  325. -rw-r--r-- 1 pihole pihole 201961 Sep 27 15:17 /var/log/pihole.log
  326. -----head of pihole.log------
  327. Sep 27 13:51:11 dnsmasq[13429]: started, version pi-hole-2.79 cachesize 10000
  328. Sep 27 13:51:11 dnsmasq[13429]: compile time options: IPv6 GNU-getopt no-DBus no-i18n no-IDN DHCP DHCPv6 no-Lua TFTP no-conntrack ipset auth DNSSEC loop-detect inotify
  329. Sep 27 13:51:11 dnsmasq[13429]: warning: failed to change owner of /var/log/pihole.log: Operation not permitted
  330. Sep 27 13:51:11 dnsmasq[13429]: using nameserver 8.8.4.4#53
  331. Sep 27 13:51:11 dnsmasq[13429]: using nameserver 8.8.8.8#53
  332. Sep 27 13:51:11 dnsmasq[13429]: read /etc/hosts - 5 addresses
  333. Sep 27 13:51:11 dnsmasq[13429]: failed to load names from /etc/pihole/local.list: No such file or directory
  334. Sep 27 13:51:11 dnsmasq[13429]: failed to load names from /etc/pihole/black.list: No such file or directory
  335. Sep 27 13:51:11 dnsmasq[13429]: failed to load names from /etc/pihole/gravity.list: No such file or directory
  336. Sep 27 13:51:12 dnsmasq[13429]: 1 127.0.0.1/56757 query[AAAA] raw.githubusercontent.com from 127.0.0.1
  337. Sep 27 13:51:12 dnsmasq[13429]: 1 127.0.0.1/56757 forwarded raw.githubusercontent.com to 8.8.4.4
  338. Sep 27 13:51:12 dnsmasq[13429]: 1 127.0.0.1/56757 forwarded raw.githubusercontent.com to 8.8.8.8
  339. Sep 27 13:51:12 dnsmasq[13429]: 1 127.0.0.1/56757 reply raw.githubusercontent.com is <CNAME>
  340. Sep 27 13:51:12 dnsmasq[13429]: 1 127.0.0.1/56757 reply github.map.fastly.net is NODATA-IPv6
  341. Sep 27 13:51:12 dnsmasq[13429]: 2 127.0.0.1/44068 query[A] raw.githubusercontent.com from 127.0.0.1
  342. Sep 27 13:51:12 dnsmasq[13429]: 2 127.0.0.1/44068 cached raw.githubusercontent.com is <CNAME>
  343. Sep 27 13:51:12 dnsmasq[13429]: 2 127.0.0.1/44068 forwarded raw.githubusercontent.com to 8.8.8.8
  344. Sep 27 13:51:12 dnsmasq[13429]: 2 127.0.0.1/44068 reply raw.githubusercontent.com is <CNAME>
  345. Sep 27 13:51:12 dnsmasq[13429]: 2 127.0.0.1/44068 reply github.map.fastly.net is 151.101.0.133
  346. Sep 27 13:51:12 dnsmasq[13429]: 2 127.0.0.1/44068 reply github.map.fastly.net is 151.101.64.133
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement