Advertisement
Guest User

Untitled

a guest
Aug 13th, 2018
371
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 15.60 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-13:06:37:24 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 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  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.178.7/24 matches the IP found in /etc/pihole/setupVars.conf
  47.  
  48. [✓] IPv6 address(es) bound to the eth0 interface:
  49. fe80::96b1:768f:c2bd:469d 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.178.1
  57. * Pinging 192.168.178.1...
  58. [✓] Gateway responded.
  59.  
  60. *** [ DIAGNOSING ]: Ports in use
  61. 127.0.1.1:53 stubby (IPv4)
  62. [::1]:53 stubby (IPv6)
  63. *:22 sshd (IPv4)
  64. *:22 sshd (IPv6)
  65. *:80 lighttpd (IPv4)
  66. *:80 lighttpd (IPv6)
  67.  
  68. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  69. [✗] Failed to resolve ads.pointroll.com.29591.9190.302br.net via localhost (127.0.0.1)
  70. [✗] Failed to resolve ads.pointroll.com.29591.9190.302br.net via Pi-hole (192.168.178.7)
  71. [✓] doubleclick.com is 172.217.168.14 via a remote, public DNS server (8.8.8.8)
  72.  
  73. *** [ DIAGNOSING ]: Pi-hole processes
  74. [✗] dnsmasq daemon is inactive
  75. [✓] lighttpd daemon is active
  76. [✓] pihole-FTL daemon is active
  77.  
  78. *** [ DIAGNOSING ]: Setup variables
  79. PIHOLE_INTERFACE=eth0
  80. IPV4_ADDRESS=192.168.178.7/24
  81. IPV6_ADDRESS=
  82. QUERY_LOGGING=true
  83. INSTALL_WEB_SERVER=true
  84. INSTALL_WEB_INTERFACE=true
  85. LIGHTTPD_ENABLED=true
  86. DNSMASQ_LISTENING=all
  87. PIHOLE_DNS_1=84.200.69.80
  88. PIHOLE_DNS_2=127.0.0.1#53
  89. PIHOLE_DNS_3=0::1#53
  90. DNS_FQDN_REQUIRED=true
  91. DNS_BOGUS_PRIV=true
  92. DNSSEC=true
  93. CONDITIONAL_FORWARDING=true
  94. CONDITIONAL_FORWARDING_IP=192.168.178.1
  95. CONDITIONAL_FORWARDING_DOMAIN=fritz.box
  96. CONDITIONAL_FORWARDING_REVERSE=178.168.192.in-addr.arpa
  97.  
  98. *** [ DIAGNOSING ]: Dashboard and block page
  99. [✗] Block page X-Header: X-Header does not match or could not be retrieved.
  100. HTTP/1.1 200 OK
  101. Content-type: text/html; charset=UTF-8
  102. Date: Mon, 13 Aug 2018 06:37:31 GMT
  103. Server: lighttpd/1.4.45
  104.  
  105. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  106.  
  107. *** [ DIAGNOSING ]: Gravity list
  108. -rw-r--r-- 1 root root 3055590 Aug 12 20:06 /etc/pihole/gravity.list
  109. -----head of gravity.list------
  110. 0.0.0.0
  111. 0.r.msn.com
  112. 0.start.bz
  113. 000.0x1f4b0.com
  114.  
  115. -----tail of gravity.list------
  116. zzz.clickbank.net
  117. zzzezeroe.fr
  118. zzzpooeaz-france.com
  119. zzzrtrcm2.com
  120.  
  121. *** [ DIAGNOSING ]: contents of /etc/pihole
  122.  
  123. -rw-r--r-- 1 root root 381 Aug 12 19:45 /etc/pihole/adlists.list
  124. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  125. https://mirror1.malwaredomains.com/files/justdomains
  126. http://sysctl.org/cameleon/hosts
  127. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  128. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  129. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  130. https://hosts-file.net/ad_servers.txt
  131.  
  132. -rw-r--r-- 1 root root 48 Aug 12 20:06 /etc/pihole/local.list
  133. 192.168.178.7 raspberrypi
  134. 192.168.178.7 pi.hole
  135.  
  136. -rw-r--r-- 1 root root 234 Aug 12 20:22 /etc/pihole/logrotate
  137. /var/log/pihole.log {
  138. su root root
  139. daily
  140. copytruncate
  141. rotate 5
  142. compress
  143. delaycompress
  144. notifempty
  145. nomail
  146. }
  147. /var/log/pihole-FTL.log {
  148. su root root
  149. weekly
  150. copytruncate
  151. rotate 3
  152. compress
  153. delaycompress
  154. notifempty
  155. nomail
  156. }
  157.  
  158. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  159.  
  160. -rw-r--r-- 1 root root 1840 Aug 12 20:24 /etc/dnsmasq.d/01-pihole.conf
  161. addn-hosts=/etc/pihole/gravity.list
  162. addn-hosts=/etc/pihole/black.list
  163. addn-hosts=/etc/pihole/local.list
  164. localise-queries
  165. no-resolv
  166. cache-size=10000
  167. log-queries=extra
  168. log-facility=/var/log/pihole.log
  169. local-ttl=2
  170. log-async
  171. server=84.200.69.80
  172. server=127.0.0.1
  173. server=0::1
  174. domain-needed
  175. bogus-priv
  176. dnssec
  177. trust-anchor=.,19036,8,2,49AAC11D7B6F6446702E54A1607371607A1A41855200FD2CE1CDDE32F24E8FB5
  178. trust-anchor=.,20326,8,2,E06D44B80B8F1D39A95C0B0D7C65D08458E880409BBC683457104237C7F8EC8D
  179. except-interface=nonexisting
  180. server=/fritz.box/192.168.178.1
  181. server=/178.168.192.in-addr.arpa/192.168.178.1
  182.  
  183. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  184.  
  185. -rw-r--r-- 1 root root 3027 Aug 12 20:22 /etc/lighttpd/lighttpd.conf
  186. server.modules = (
  187. "mod_access",
  188. "mod_accesslog",
  189. "mod_auth",
  190. "mod_expire",
  191. "mod_compress",
  192. "mod_redirect",
  193. "mod_setenv",
  194. "mod_rewrite"
  195. )
  196. server.document-root = "/var/www/html"
  197. server.error-handler-404 = "pihole/index.php"
  198. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  199. server.errorlog = "/var/log/lighttpd/error.log"
  200. server.pid-file = "/var/run/lighttpd.pid"
  201. server.username = "www-data"
  202. server.groupname = "www-data"
  203. server.port = 80
  204. accesslog.filename = "/var/log/lighttpd/access.log"
  205. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  206. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  207. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  208. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  209. compress.cache-dir = "/var/cache/lighttpd/compress/"
  210. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  211. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  212. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  213. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  214. ' 2>/dev/null"
  215. $HTTP["url"] =~ "^/admin/" {
  216.  
  217. setenv.add-response-header = (
  218. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  219. "X-Frame-Options" => "DENY"
  220. )
  221. $HTTP["url"] =~ ".ttf$" {
  222.  
  223. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  224. }
  225. }
  226. $HTTP["url"] =~ "^/admin/\.(.*)" {
  227. url.access-deny = ("")
  228. }
  229. include_shell "cat external.conf 2>/dev/null"
  230.  
  231. *** [ DIAGNOSING ]: contents of /etc/cron.d
  232.  
  233. -rw-r--r-- 1 root root 1496 Aug 12 20:22 /etc/cron.d/pihole
  234. 53 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  235. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  236. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  237. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  238. 50 18 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  239. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  240.  
  241. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  242.  
  243. -rw-r--r-- 1 www-data www-data 1017 Aug 13 06:37 /var/log/lighttpd/error.log
  244. 2018-08-12 19:46:21: (log.c.217) server started
  245. 2018-08-12 19:47:28: (server.c.1828) server stopped by UID = 0 PID = 1
  246. 2018-08-12 19:47:29: (log.c.217) server started
  247. 2018-08-12 20:04:39: (server.c.1828) server stopped by UID = 0 PID = 1
  248. 2018-08-12 20:04:50: (log.c.217) server started
  249. 2018-08-12 20:06:16: (server.c.1828) server stopped by UID = 0 PID = 1
  250. 2018-08-12 20:06:18: (log.c.217) server started
  251. 2018-08-12 20:18:47: (server.c.1828) server stopped by UID = 0 PID = 1
  252. 2018-08-12 20:18:59: (log.c.217) server started
  253. 2018-08-12 20:20:54: (server.c.1828) server stopped by UID = 0 PID = 1
  254. 2018-08-12 20:21:04: (log.c.217) server started
  255. 2018-08-12 20:22:23: (server.c.1828) server stopped by UID = 0 PID = 1
  256. 2018-08-12 20:22:24: (log.c.217) server started
  257. 2018-08-12 20:22:52: (server.c.1828) server stopped by UID = 0 PID = 1
  258. 2018-08-12 20:23:04: (log.c.217) server started
  259. 2018-08-13 06:37:06: (server.c.1828) server stopped by UID = 0 PID = 1
  260. 2018-08-13 06:37:18: (log.c.217) server started
  261.  
  262. *** [ DIAGNOSING ]: contents of /var/log
  263.  
  264. -rw-r--r-- 1 pihole pihole 2560 Aug 13 06:37 /var/log/pihole-FTL.log
  265. -----head of pihole-FTL.log------
  266. [2018-08-13 06:37:22.320] ########## FTL started! ##########
  267. [2018-08-13 06:37:22.320] FTL branch:
  268. [2018-08-13 06:37:22.320] FTL version: v4.0
  269. [2018-08-13 06:37:22.320] FTL commit: 8493df4
  270. [2018-08-13 06:37:22.320] FTL date: 2018-08-05 13:40:30 -0700
  271. [2018-08-13 06:37:22.320] FTL user: pihole
  272. [2018-08-13 06:37:22.322] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  273. [2018-08-13 06:37:22.322] SOCKET_LISTENING: only local
  274. [2018-08-13 06:37:22.322] AAAA_QUERY_ANALYSIS: Show AAAA queries
  275. [2018-08-13 06:37:22.322] MAXDBDAYS: max age for stored queries is 365 days
  276. [2018-08-13 06:37:22.322] RESOLVE_IPV6: Resolve IPv6 addresses
  277. [2018-08-13 06:37:22.322] RESOLVE_IPV4: Resolve IPv4 addresses
  278. [2018-08-13 06:37:22.322] DBINTERVAL: saving to DB file every minute
  279. [2018-08-13 06:37:22.322] DBFILE: Using /etc/pihole/pihole-FTL.db
  280. [2018-08-13 06:37:22.322] MAXLOGAGE: Importing up to 24.0 hours of log data
  281. [2018-08-13 06:37:22.322] PRIVACYLEVEL: Set to 0
  282. [2018-08-13 06:37:22.322] IGNORE_LOCALHOST: Show queries from localhost
  283. [2018-08-13 06:37:22.322] BLOCKINGMODE: Null IPs for blocked domains
  284. [2018-08-13 06:37:22.322] REGEX_DEBUGMODE: Inactive
  285. [2018-08-13 06:37:22.322] Finished config file parsing
  286. [2018-08-13 06:37:22.323] INFO: No whitelist file found
  287. [2018-08-13 06:37:22.323] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)
  288. [2018-08-13 06:37:22.347] Database successfully initialized
  289. [2018-08-13 06:37:22.347] Notice: Increasing queries struct size from 0 to 10000
  290. [2018-08-13 06:37:22.348] Notice: Increasing domains struct size from 0 to 1000
  291. [2018-08-13 06:37:22.348] Notice: Increasing clients struct size from 0 to 10
  292. [2018-08-13 06:37:22.348] New forward server: 84.200.70.40 (0/0)
  293. [2018-08-13 06:37:22.348] Notice: Increasing forwarded struct size from 0 to 4
  294. [2018-08-13 06:37:22.348] Notice: Increasing overTime struct size from 0 to 100
  295. [2018-08-13 06:37:22.348] New forward server: 84.200.69.80 (1/4)
  296. [2018-08-13 06:37:22.348] Imported 41 queries from the long-term database
  297. [2018-08-13 06:37:22.348] -> Total DNS queries: 41
  298. [2018-08-13 06:37:22.348] -> Cached DNS queries: 16
  299. [2018-08-13 06:37:22.348] -> Forwarded DNS queries: 25
  300. [2018-08-13 06:37:22.348] -> Exactly blocked DNS queries: 0
  301.  
  302. -----tail of pihole-FTL.log------
  303. [2018-08-13 06:37:22.320] FTL user: pihole
  304. [2018-08-13 06:37:22.322] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  305. [2018-08-13 06:37:22.322] SOCKET_LISTENING: only local
  306. [2018-08-13 06:37:22.322] AAAA_QUERY_ANALYSIS: Show AAAA queries
  307. [2018-08-13 06:37:22.322] MAXDBDAYS: max age for stored queries is 365 days
  308. [2018-08-13 06:37:22.322] RESOLVE_IPV6: Resolve IPv6 addresses
  309. [2018-08-13 06:37:22.322] RESOLVE_IPV4: Resolve IPv4 addresses
  310. [2018-08-13 06:37:22.322] DBINTERVAL: saving to DB file every minute
  311. [2018-08-13 06:37:22.322] DBFILE: Using /etc/pihole/pihole-FTL.db
  312. [2018-08-13 06:37:22.322] MAXLOGAGE: Importing up to 24.0 hours of log data
  313. [2018-08-13 06:37:22.322] PRIVACYLEVEL: Set to 0
  314. [2018-08-13 06:37:22.322] IGNORE_LOCALHOST: Show queries from localhost
  315. [2018-08-13 06:37:22.322] BLOCKINGMODE: Null IPs for blocked domains
  316. [2018-08-13 06:37:22.322] REGEX_DEBUGMODE: Inactive
  317. [2018-08-13 06:37:22.322] Finished config file parsing
  318. [2018-08-13 06:37:22.323] INFO: No whitelist file found
  319. [2018-08-13 06:37:22.323] Compiled 0 Regex filters and -1 whitelisted domains in 0.1 msec (0 errors)
  320. [2018-08-13 06:37:22.347] Database successfully initialized
  321. [2018-08-13 06:37:22.347] Notice: Increasing queries struct size from 0 to 10000
  322. [2018-08-13 06:37:22.348] Notice: Increasing domains struct size from 0 to 1000
  323. [2018-08-13 06:37:22.348] Notice: Increasing clients struct size from 0 to 10
  324. [2018-08-13 06:37:22.348] New forward server: 84.200.70.40 (0/0)
  325. [2018-08-13 06:37:22.348] Notice: Increasing forwarded struct size from 0 to 4
  326. [2018-08-13 06:37:22.348] Notice: Increasing overTime struct size from 0 to 100
  327. [2018-08-13 06:37:22.348] New forward server: 84.200.69.80 (1/4)
  328. [2018-08-13 06:37:22.348] Imported 41 queries from the long-term database
  329. [2018-08-13 06:37:22.348] -> Total DNS queries: 41
  330. [2018-08-13 06:37:22.348] -> Cached DNS queries: 16
  331. [2018-08-13 06:37:22.348] -> Forwarded DNS queries: 25
  332. [2018-08-13 06:37:22.348] -> Exactly blocked DNS queries: 0
  333. [2018-08-13 06:37:22.348] -> Unknown DNS queries: 0
  334. [2018-08-13 06:37:22.348] -> Unique domains: 12
  335. [2018-08-13 06:37:22.348] -> Unique clients: 1
  336. [2018-08-13 06:37:22.348] -> Known forward destinations: 2
  337. [2018-08-13 06:37:22.349] Successfully accessed setupVars.conf
  338.  
  339. *** [ DIAGNOSING ]: Locale
  340. LANG=
  341.  
  342. *** [ DIAGNOSING ]: Pi-hole log
  343. -rw-r--r-- 1 pihole pihole 0 Aug 13 06:37 /var/log/pihole.log
  344. -----head of pihole.log------
  345.  
  346.  
  347. ********************************************
  348. ********************************************
  349. [✓] ** FINISHED DEBUGGING! **
  350.  
  351. * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  352. * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  353. * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
  354. [i] Debug script running in automated mode
  355. * Using openssl for transmission.
  356. [✗] There was an error uploading your debug log.
  357. * Please try again or contact the Pi-hole team for assistance.
  358. * A local copy of the debug log can be found at: /var/log/pihole_debug-sanitized.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement