Advertisement
Guest User

Untitled

a guest
Aug 8th, 2018
424
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.07 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-08-08:20:55:21 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. [✗] No IPv4 address(es) found on the eth0 interface.
  46.  
  47. [✗] No IPv6 address(es) found on the eth0 interface.
  48.  
  49. [i] Default IPv4 gateway: 192.168.86.1
  50. * Pinging 192.168.86.1...
  51. [✗] Gateway did not respond. (https://discourse.pi-hole.net/t/why-is-a-default-gateway-important-for-pi-hole/3546)
  52.  
  53.  
  54. *** [ DIAGNOSING ]: Ports in use
  55. *:80 lighttpd (IPv4)
  56. *:80 lighttpd (IPv6)
  57. *:53 pihole-FTL (IPv4)
  58. *:53 pihole-FTL (IPv6)
  59. 127.0.0.1:4711 pihole-FTL (IPv4)
  60. [::1]:4711 pihole-FTL (IPv6)
  61.  
  62. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  63. [✓] voxel.write.admin.mpx.mopub.com is 0.0.0.0 via localhost (127.0.0.1)
  64. [✗] Failed to resolve voxel.write.admin.mpx.mopub.com via Pi-hole (192.168.86.53)
  65. [✓] doubleclick.com is 172.217.12.206 via a remote, public DNS server (8.8.8.8)
  66.  
  67. *** [ DIAGNOSING ]: Pi-hole processes
  68. [✗] dnsmasq daemon is inactive
  69. [✓] lighttpd daemon is active
  70. [✓] pihole-FTL daemon is active
  71.  
  72. *** [ DIAGNOSING ]: Setup variables
  73. PIHOLE_INTERFACE=eth0
  74. IPV4_ADDRESS=192.168.86.53/24
  75. IPV6_ADDRESS=
  76. PIHOLE_DNS_1=8.8.8.8
  77. PIHOLE_DNS_2=8.8.4.4
  78. QUERY_LOGGING=true
  79. INSTALL_WEB_SERVER=true
  80. INSTALL_WEB_INTERFACE=true
  81. LIGHTTPD_ENABLED=true
  82. TEMPERATUREUNIT=F
  83. DNSMASQ_LISTENING=single
  84.  
  85. *** [ DIAGNOSING ]: Dashboard and block page
  86. [✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  87. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  88.  
  89. *** [ DIAGNOSING ]: Gravity list
  90. -rw-r--r-- 1 root root 3041065 Aug 7 17:16 /etc/pihole/gravity.list
  91. -----head of gravity.list------
  92. 0.0.0.0
  93. 0.r.msn.com
  94. 0.start.bz
  95. 000.0x1f4b0.com
  96.  
  97. -----tail of gravity.list------
  98. zzz.clickbank.net
  99. zzzezeroe.fr
  100. zzzpooeaz-france.com
  101. zzzrtrcm2.com
  102.  
  103. *** [ DIAGNOSING ]: contents of /etc/pihole
  104.  
  105. -rw-r--r-- 1 root root 381 Aug 8 07:49 /etc/pihole/adlists.list
  106. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  107. https://mirror1.malwaredomains.com/files/justdomains
  108. http://sysctl.org/cameleon/hosts
  109. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  110. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  111. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  112. https://hosts-file.net/ad_servers.txt
  113.  
  114. -rw-r--r-- 1 root root 48 Aug 7 17:16 /etc/pihole/local.list
  115. 192.168.86.53 raspberrypi
  116. 192.168.86.53 pi.hole
  117.  
  118. -rw-r--r-- 1 root root 234 Aug 7 17:15 /etc/pihole/logrotate
  119. /var/log/pihole.log {
  120. su root root
  121. daily
  122. copytruncate
  123. rotate 5
  124. compress
  125. delaycompress
  126. notifempty
  127. nomail
  128. }
  129. /var/log/pihole-FTL.log {
  130. su root root
  131. weekly
  132. copytruncate
  133. rotate 3
  134. compress
  135. delaycompress
  136. notifempty
  137. nomail
  138. }
  139.  
  140. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  141.  
  142. -rw-r--r-- 1 root root 1508 Aug 8 20:49 /etc/dnsmasq.d/01-pihole.conf
  143. addn-hosts=/etc/pihole/gravity.list
  144. addn-hosts=/etc/pihole/black.list
  145. addn-hosts=/etc/pihole/local.list
  146. localise-queries
  147. no-resolv
  148. cache-size=10000
  149. log-queries=extra
  150. log-facility=/var/log/pihole.log
  151. local-ttl=2
  152. log-async
  153. server=8.8.8.8
  154. server=8.8.4.4
  155. interface=eth0
  156.  
  157. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  158.  
  159. -rw-r--r-- 1 root root 3027 Aug 7 17:15 /etc/lighttpd/lighttpd.conf
  160. server.modules = (
  161. "mod_access",
  162. "mod_accesslog",
  163. "mod_auth",
  164. "mod_expire",
  165. "mod_compress",
  166. "mod_redirect",
  167. "mod_setenv",
  168. "mod_rewrite"
  169. )
  170. server.document-root = "/var/www/html"
  171. server.error-handler-404 = "pihole/index.php"
  172. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  173. server.errorlog = "/var/log/lighttpd/error.log"
  174. server.pid-file = "/var/run/lighttpd.pid"
  175. server.username = "www-data"
  176. server.groupname = "www-data"
  177. server.port = 80
  178. accesslog.filename = "/var/log/lighttpd/access.log"
  179. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  180. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  181. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  182. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  183. compress.cache-dir = "/var/cache/lighttpd/compress/"
  184. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  185. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  186. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  187. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  188. ' 2>/dev/null"
  189. $HTTP["url"] =~ "^/admin/" {
  190.  
  191. setenv.add-response-header = (
  192. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  193. "X-Frame-Options" => "DENY"
  194. )
  195. $HTTP["url"] =~ ".ttf$" {
  196.  
  197. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  198. }
  199. }
  200. $HTTP["url"] =~ "^/admin/\.(.*)" {
  201. url.access-deny = ("")
  202. }
  203. include_shell "cat external.conf 2>/dev/null"
  204.  
  205. *** [ DIAGNOSING ]: contents of /etc/cron.d
  206.  
  207. -rw-r--r-- 1 root root 1496 Aug 7 17:15 /etc/cron.d/pihole
  208. 23 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  209. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  210. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  211. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  212. 26 15 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  213. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  214.  
  215. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  216.  
  217. -rw-r--r-- 1 www-data www-data 529 Aug 8 07:54 /var/log/lighttpd/error.log
  218. 2018-08-07 17:14:12: (log.c.217) server started
  219. 2018-08-07 17:16:10: (server.c.1828) server stopped by UID = 0 PID = 1
  220. 2018-08-07 17:16:12: (log.c.217) server started
  221. 2018-08-07 17:16:12: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  222. 2018-08-07 23:17:04: (log.c.217) server started
  223. 2018-08-07 23:17:04: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  224. 2018-08-08 07:54:14: (log.c.217) server started
  225. 2018-08-08 07:54:14: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  226.  
  227. *** [ DIAGNOSING ]: contents of /var/log
  228.  
  229. -rw-r--r-- 1 pihole pihole 19209 Aug 8 20:49 /var/log/pihole-FTL.log
  230. -----head of pihole-FTL.log------
  231. [2018-08-07 23:17:15.247] ########## FTL started! ##########
  232. [2018-08-07 23:17:15.247] FTL branch:
  233. [2018-08-07 23:17:15.247] FTL version: v4.0
  234. [2018-08-07 23:17:15.247] FTL commit: 8493df4
  235. [2018-08-07 23:17:15.247] FTL date: 2018-08-05 13:40:30 -0700
  236. [2018-08-07 23:17:15.247] FTL user: pihole
  237. [2018-08-07 23:17:15.249] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  238. [2018-08-07 23:17:15.249] SOCKET_LISTENING: only local
  239. [2018-08-07 23:17:15.249] AAAA_QUERY_ANALYSIS: Show AAAA queries
  240. [2018-08-07 23:17:15.249] MAXDBDAYS: max age for stored queries is 365 days
  241. [2018-08-07 23:17:15.249] RESOLVE_IPV6: Resolve IPv6 addresses
  242. [2018-08-07 23:17:15.249] RESOLVE_IPV4: Resolve IPv4 addresses
  243. [2018-08-07 23:17:15.249] DBINTERVAL: saving to DB file every minute
  244. [2018-08-07 23:17:15.249] DBFILE: Using /etc/pihole/pihole-FTL.db
  245. [2018-08-07 23:17:15.250] MAXLOGAGE: Importing up to 24.0 hours of log data
  246. [2018-08-07 23:17:15.250] PRIVACYLEVEL: Set to 0
  247. [2018-08-07 23:17:15.250] IGNORE_LOCALHOST: Show queries from localhost
  248. [2018-08-07 23:17:15.250] BLOCKINGMODE: Null IPs for blocked domains
  249. [2018-08-07 23:17:15.250] REGEX_DEBUGMODE: Inactive
  250. [2018-08-07 23:17:15.250] Finished config file parsing
  251. [2018-08-07 23:17:15.250] INFO: No whitelist file found
  252. [2018-08-07 23:17:15.250] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)
  253. [2018-08-07 23:17:15.275] Database successfully initialized
  254. [2018-08-07 23:17:15.275] Notice: Increasing queries struct size from 0 to 10000
  255. [2018-08-07 23:17:15.275] Notice: Increasing domains struct size from 0 to 1000
  256. [2018-08-07 23:17:15.275] Notice: Increasing clients struct size from 0 to 10
  257. [2018-08-07 23:17:15.275] New forward server: 8.8.4.4 (0/0)
  258. [2018-08-07 23:17:15.276] Notice: Increasing forwarded struct size from 0 to 4
  259. [2018-08-07 23:17:15.276] Notice: Increasing overTime struct size from 0 to 100
  260. [2018-08-07 23:17:15.276] Imported 41 queries from the long-term database
  261. [2018-08-07 23:17:15.276] -> Total DNS queries: 41
  262. [2018-08-07 23:17:15.276] -> Cached DNS queries: 8
  263. [2018-08-07 23:17:15.276] -> Forwarded DNS queries: 33
  264. [2018-08-07 23:17:15.276] -> Exactly blocked DNS queries: 0
  265. [2018-08-07 23:17:15.276] -> Unknown DNS queries: 0
  266.  
  267. -----tail of pihole-FTL.log------
  268. [2018-08-08 20:49:58.789] MAXLOGAGE: Importing up to 24.0 hours of log data
  269. [2018-08-08 20:49:58.789] PRIVACYLEVEL: Set to 0
  270. [2018-08-08 20:49:58.789] IGNORE_LOCALHOST: Show queries from localhost
  271. [2018-08-08 20:49:58.789] BLOCKINGMODE: Null IPs for blocked domains
  272. [2018-08-08 20:49:58.789] REGEX_DEBUGMODE: Inactive
  273. [2018-08-08 20:49:58.789] Finished config file parsing
  274. [2018-08-08 20:49:58.789] INFO: No whitelist file found
  275. [2018-08-08 20:49:58.789] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)
  276. [2018-08-08 20:49:58.790] Database successfully initialized
  277. [2018-08-08 20:49:58.791] Notice: Increasing queries struct size from 0 to 10000
  278. [2018-08-08 20:49:58.791] Notice: Increasing domains struct size from 0 to 1000
  279. [2018-08-08 20:49:58.791] Notice: Increasing clients struct size from 0 to 10
  280. [2018-08-08 20:49:58.791] New forward server: 8.8.4.4 (0/0)
  281. [2018-08-08 20:49:58.791] Notice: Increasing forwarded struct size from 0 to 4
  282. [2018-08-08 20:49:58.791] Notice: Increasing overTime struct size from 0 to 100
  283. [2018-08-08 20:49:58.791] New forward server: 8.8.8.8 (1/4)
  284. [2018-08-08 20:49:58.792] Notice: Increasing overTime struct size from 100 to 200
  285. [2018-08-08 20:49:58.793] Imported 216 queries from the long-term database
  286. [2018-08-08 20:49:58.793] -> Total DNS queries: 216
  287. [2018-08-08 20:49:58.793] -> Cached DNS queries: 27
  288. [2018-08-08 20:49:58.793] -> Forwarded DNS queries: 149
  289. [2018-08-08 20:49:58.793] -> Exactly blocked DNS queries: 8
  290. [2018-08-08 20:49:58.793] -> Unknown DNS queries: 32
  291. [2018-08-08 20:49:58.793] -> Unique domains: 83
  292. [2018-08-08 20:49:58.793] -> Unique clients: 1
  293. [2018-08-08 20:49:58.793] -> Known forward destinations: 2
  294. [2018-08-08 20:49:58.793] Successfully accessed setupVars.conf
  295. [2018-08-08 20:49:58.798] PID of FTL process: 13411
  296. [2018-08-08 20:49:58.798] Listening on port 4711 for incoming IPv4 telnet connections
  297. [2018-08-08 20:49:58.798] Listening on port 4711 for incoming IPv6 telnet connections
  298. [2018-08-08 20:49:58.799] Listening on Unix socket
  299. [2018-08-08 20:49:58.800] FATAL: Trying to free NULL pointer in free_whitelist_domains() (regex.c:72)
  300. [2018-08-08 20:49:58.800] INFO: No whitelist file found
  301. [2018-08-08 20:49:58.800] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)
  302. [2018-08-08 20:49:59.638] /etc/pihole/gravity.list: parsed 133692 domains (took 838.3 ms)
  303.  
  304. *** [ DIAGNOSING ]: Locale
  305. LANG=en_US.UTF-8
  306.  
  307. *** [ DIAGNOSING ]: Pi-hole log
  308. -rw-r--r-- 1 pihole pihole 30222 Aug 8 20:55 /var/log/pihole.log
  309. -----head of pihole.log------
  310. Aug 8 07:54:25 dnsmasq[903]: started, version pi-hole-2.79 cachesize 10000
  311. Aug 8 07:54:25 dnsmasq[903]: 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
  312. Aug 8 07:54:25 dnsmasq[903]: warning: failed to change owner of /var/log/pihole.log: Operation not permitted
  313. Aug 8 07:54:25 dnsmasq[903]: warning: interface eth0 does not currently exist
  314. Aug 8 07:54:25 dnsmasq[903]: using nameserver 8.8.4.4#53
  315. Aug 8 07:54:25 dnsmasq[903]: using nameserver 8.8.8.8#53
  316. Aug 8 07:54:25 dnsmasq[903]: read /etc/hosts - 5 addresses
  317. Aug 8 07:54:25 dnsmasq[903]: read /etc/pihole/local.list - 2 addresses
  318. Aug 8 07:54:25 dnsmasq[903]: failed to load names from /etc/pihole/black.list: No such file or directory
  319. Aug 8 07:54:25 dnsmasq[903]: read /etc/pihole/gravity.list - 267384 addresses
  320. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 query[A] 2.debian.pool.ntp.org from 127.0.0.1
  321. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 forwarded 2.debian.pool.ntp.org to 8.8.4.4
  322. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 forwarded 2.debian.pool.ntp.org to 8.8.8.8
  323. Aug 8 07:54:43 dnsmasq[903]: 2 127.0.0.1/54539 query[AAAA] 2.debian.pool.ntp.org from 127.0.0.1
  324. Aug 8 07:54:43 dnsmasq[903]: 2 127.0.0.1/54539 forwarded 2.debian.pool.ntp.org to 8.8.4.4
  325. Aug 8 07:54:43 dnsmasq[903]: 2 127.0.0.1/54539 forwarded 2.debian.pool.ntp.org to 8.8.8.8
  326. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 reply 2.debian.pool.ntp.org is 204.2.134.163
  327. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 reply 2.debian.pool.ntp.org is 50.22.155.163
  328. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 reply 2.debian.pool.ntp.org is 204.2.134.164
  329. Aug 8 07:54:43 dnsmasq[903]: 1 127.0.0.1/54539 reply 2.debian.pool.ntp.org is 52.37.26.163
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement