Advertisement
Guest User

Untitled

a guest
Sep 11th, 2019
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 16.12 KB | None | 0 0
  1. his 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] 2019-09-11:00:09:06 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.3.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v4.3.1-0-g1a741f6
  17.  
  18. *** [ DIAGNOSING ]: Web version
  19. [i] Web: v4.3 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  20. [i] Branch: master
  21. [i] Commit: v4.3-0-g44aff727
  22.  
  23. *** [ DIAGNOSING ]: FTL version
  24. [✓] FTL: v4.3.1
  25.  
  26. *** [ DIAGNOSING ]: lighttpd version
  27. [i] 1.4.45
  28.  
  29. *** [ DIAGNOSING ]: php version
  30. [i] 7.0.33
  31.  
  32. *** [ DIAGNOSING ]: Operating system
  33. [✓] Raspbian GNU/Linux 9 (stretch)
  34.  
  35. *** [ DIAGNOSING ]: SELinux
  36. [i] SELinux not detected
  37.  
  38. *** [ DIAGNOSING ]: Processor
  39. [✓] armv7l
  40.  
  41. *** [ DIAGNOSING ]: Networking
  42. [✓] IPv4 address(es) bound to the wlan0 interface:
  43. 192.168.0.63/24 matches the IP found in /etc/pihole/setupVars.conf
  44.  
  45. [✓] IPv6 address(es) bound to the wlan0 interface:
  46. 2601:205:380:c56:a55c:2918:a43b:fd35 matches the IP found in /etc/pihole/setupVars.conf
  47. fe80::861c:1c90:6215:e0c7 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)
  48.  
  49. ^ Please note that you may have more than one IP address listed.
  50. As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.
  51.  
  52. The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
  53.  
  54. [i] Default IPv4 gateway: 192.168.0.1
  55. * Pinging 192.168.0.1...
  56. [✓] Gateway responded.
  57. [i] Default IPv6 gateway: fe80::12da:43ff:feee:ab3b
  58. * Pinging fe80::12da:43ff:feee:ab3b...
  59. [✓] Gateway responded.
  60.  
  61. *** [ DIAGNOSING ]: Ports in use
  62. *:22 sshd (IPv4)
  63. *:22 sshd (IPv6)
  64. [*:80] is in use by lighttpd
  65. [*:80] is in use by lighttpd
  66. *:445 smbd (IPv6)
  67. *:139 smbd (IPv6)
  68. *:445 smbd (IPv4)
  69. *:139 smbd (IPv4)
  70. [*:53] is in use by pihole-FTL
  71. [*:53] is in use by pihole-FTL
  72. [127.0.0.1:4711] is in use by pihole-FTL
  73. [[::1]:4711] is in use by pihole-FTL
  74.  
  75. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  76. [✗] Failed to resolve www.j962822.myjino.ru via localhost (127.0.0.1)
  77. [✗] Failed to resolve www.j962822.myjino.ru via Pi-hole (192.168.0.63)
  78. [✓] doubleclick.com is 172.217.164.110 via a remote, public DNS server (8.8.8.8)
  79.  
  80. *** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
  81. [✗] Failed to resolve ads.pader.de via localhost (::1)
  82. [✗] Failed to resolve ads.pader.de via Pi-hole (2601:205:380:c56:a55c:2918:a43b:fd35)
  83. [✓] doubleclick.com is 2607:f8b0:4005:804::200e via a remote, public DNS server (2001:4860:4860::8888)
  84.  
  85. *** [ DIAGNOSING ]: Pi-hole processes
  86. [✓] lighttpd daemon is active
  87. [✓] pihole-FTL daemon is active
  88.  
  89. *** [ DIAGNOSING ]: Setup variables
  90. BLOCKING_ENABLED=true
  91. PIHOLE_INTERFACE=wlan0
  92. IPV4_ADDRESS=192.168.0.63/24
  93. IPV6_ADDRESS=2601:205:380:c56:a55c:2918:a43b:fd35
  94. QUERY_LOGGING=true
  95. INSTALL_WEB_SERVER=true
  96. INSTALL_WEB_INTERFACE=true
  97. LIGHTTPD_ENABLED=true
  98. DNSMASQ_LISTENING=single
  99. PIHOLE_DNS_1=8.8.8.8
  100. PIHOLE_DNS_2=8.8.4.4
  101. PIHOLE_DNS_3=208.67.222.222
  102. PIHOLE_DNS_4=208.67.220.220
  103. PIHOLE_DNS_5=2620:0:ccc::2
  104. PIHOLE_DNS_6=2620:0:ccd::2
  105. PIHOLE_DNS_7=1.1.1.1
  106. PIHOLE_DNS_8=1.0.0.1
  107. DNS_FQDN_REQUIRED=true
  108. DNS_BOGUS_PRIV=true
  109. DNSSEC=false
  110. CONDITIONAL_FORWARDING=false
  111. DHCP_ACTIVE=true
  112. DHCP_START=192.168.0.2
  113. DHCP_END=192.168.0.254
  114. DHCP_ROUTER=192.168.0.1
  115. DHCP_LEASETIME=24
  116. PIHOLE_DOMAIN=piholelan
  117. DHCP_IPv6=true
  118. DHCP_rapid_commit=true
  119.  
  120. *** [ DIAGNOSING ]: Dashboard and block page
  121. [✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  122. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  123.  
  124. *** [ DIAGNOSING ]: Gravity list
  125. -rw-r--r-- 1 root root 31231340 Sep 10 23:14 /etc/pihole/gravity.list
  126. -----head of gravity.list------
  127. 0-0-----------------------------------------------------------0.com
  128. 0-0-0-0-0-0-0-0-0-0-0-0-0-1-0-0-0-0-0-0-0-0-0-0-0-0-0.info
  129. 0-0-0-0-0-0-0-0-0-0-0-0-0-10-0-0-0-0-0-0-0-0-0-0-0-0-0.info
  130. 0-0-0-0-0-0-0-0-0-0-0-0-0-18-0-0-0-0-0-0-0-0-0-0-0-0-0.info
  131.  
  132. -----tail of gravity.list------
  133. zzzzz.cauction.hop.clickbank.net
  134. zzzzz.regmum.hop.clickbank.net
  135. zzzzzqp.com
  136. zzzzzz.com
  137.  
  138. *** [ DIAGNOSING ]: contents of /etc/pihole
  139.  
  140. -rw-r--r-- 1 root root 401 Sep 10 23:13 /etc/pihole/adlists.list
  141. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  142. https://mirror1.malwaredomains.com/files/justdomains
  143. http://sysctl.org/cameleon/hosts
  144. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  145. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  146. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  147. https://hosts-file.net/ad_servers.txt
  148. https://dbl.oisd.nl
  149.  
  150. -rw-r--r-- 1 root root 84 Sep 10 23:41 /etc/pihole/blacklist.txt
  151. droiddownloads-0.download
  152. libreape.com
  153. o12zs3u2n.com
  154. informereng.com
  155. www.nutaku.net
  156.  
  157. -rw-r--r-- 1 root root 134 Sep 10 23:14 /etc/pihole/local.list
  158. 192.168.0.63 retropie
  159. 2601:205:380:c56:a55c:2918:a43b:fd35 retropie
  160. 192.168.0.63 pi.hole
  161. 2601:205:380:c56:a55c:2918:a43b:fd35 pi.hole
  162.  
  163. -rw-r--r-- 1 root root 234 Sep 10 23:03 /etc/pihole/logrotate
  164. /var/log/pihole.log {
  165. su root root
  166. daily
  167. copytruncate
  168. rotate 5
  169. compress
  170. delaycompress
  171. notifempty
  172. nomail
  173. }
  174. /var/log/pihole-FTL.log {
  175. su root root
  176. weekly
  177. copytruncate
  178. rotate 3
  179. compress
  180. delaycompress
  181. notifempty
  182. nomail
  183. }
  184.  
  185. -rw-r--r-- 1 root root 25 Oct 16 2018 /etc/pihole/whitelist.txt
  186. github.com
  187. s.youtube.com
  188.  
  189. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  190.  
  191. -rw-r--r-- 1 root root 1657 Sep 10 23:24 /etc/dnsmasq.d/01-pihole.conf
  192. addn-hosts=/etc/pihole/gravity.list
  193. addn-hosts=/etc/pihole/black.list
  194. addn-hosts=/etc/pihole/local.list
  195. localise-queries
  196. no-resolv
  197. cache-size=10000
  198. log-queries
  199. log-facility=/var/log/pihole.log
  200. local-ttl=2
  201. log-async
  202. server=8.8.8.8
  203. server=8.8.4.4
  204. server=208.67.222.222
  205. server=208.67.220.220
  206. server=2620:0:ccc::2
  207. server=2620:0:ccd::2
  208. server=1.1.1.1
  209. server=1.0.0.1
  210. domain-needed
  211. bogus-priv
  212. interface=wlan0
  213.  
  214. -rw-r--r-- 1 root root 641 Sep 10 23:24 /etc/dnsmasq.d/02-pihole-dhcp.conf
  215. dhcp-authoritative
  216. dhcp-range=192.168.0.2,192.168.0.254,24h
  217. dhcp-option=option:router,192.168.0.1
  218. dhcp-leasefile=/etc/pihole/dhcp.leases
  219. domain=piholelan
  220. dhcp-rapid-commit
  221. dhcp-option=option6:dns-server,[::]
  222. dhcp-range=::100,::1ff,constructor:wlan0,ra-names,slaac,24h
  223. ra-param=*,0,0
  224.  
  225. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  226.  
  227. -rw-r--r-- 1 root root 3498 Sep 10 23:03 /etc/lighttpd/lighttpd.conf
  228. server.modules = (
  229. "mod_access",
  230. "mod_accesslog",
  231. "mod_auth",
  232. "mod_expire",
  233. "mod_compress",
  234. "mod_redirect",
  235. "mod_setenv",
  236. "mod_rewrite"
  237. )
  238. server.document-root = "/var/www/html"
  239. server.error-handler-404 = "pihole/index.php"
  240. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  241. server.errorlog = "/var/log/lighttpd/error.log"
  242. server.pid-file = "/var/run/lighttpd.pid"
  243. server.username = "www-data"
  244. server.groupname = "www-data"
  245. server.port = 80
  246. accesslog.filename = "/var/log/lighttpd/access.log"
  247. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  248. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  249. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  250. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  251. compress.cache-dir = "/var/cache/lighttpd/compress/"
  252. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  253. mimetype.assign = ( ".png" => "image/png",
  254. ".jpg" => "image/jpeg",
  255. ".jpeg" => "image/jpeg",
  256. ".html" => "text/html",
  257. ".css" => "text/css; charset=utf-8",
  258. ".js" => "application/javascript",
  259. ".json" => "application/json",
  260. ".txt" => "text/plain",
  261. ".svg" => "image/svg+xml" )
  262. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  263. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  264. ' 2>/dev/null"
  265. $HTTP["url"] =~ "^/admin/" {
  266.  
  267. setenv.add-response-header = (
  268. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  269. "X-Frame-Options" => "DENY"
  270. )
  271. $HTTP["url"] =~ ".ttf$" {
  272.  
  273. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  274. }
  275. }
  276. $HTTP["url"] =~ "^/admin/\.(.*)" {
  277. url.access-deny = ("")
  278. }
  279. include_shell "cat external.conf 2>/dev/null"
  280.  
  281. *** [ DIAGNOSING ]: contents of /etc/cron.d
  282.  
  283. -rw-r--r-- 1 root root 1704 Sep 10 23:03 /etc/cron.d/pihole
  284. 24 4 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
  285. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  286. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  287. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  288. 58 15 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  289. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  290.  
  291. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  292.  
  293. -rw-r--r-- 1 www-data www-data 3052 Sep 10 23:35 /var/log/lighttpd/error.log
  294. 2019-09-09 06:25:03: (server.c.1534) logfiles cycled UID = 0 PID = 18724
  295. 2019-09-09 18:32:49: (server.c.1828) server stopped by UID = 0 PID = 1
  296. 2019-09-09 18:33:31: (log.c.217) server started
  297. 2019-09-09 18:33:31: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  298. 2019-09-09 19:30:57: (server.c.1828) server stopped by UID = 0 PID = 1
  299. 2019-09-09 19:30:58: (log.c.217) server started
  300. 2019-09-09 19:30:58: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  301. 2019-09-09 19:45:21: (server.c.1828) server stopped by UID = 0 PID = 1
  302. 2019-09-09 19:45:41: (log.c.217) server started
  303. 2019-09-09 19:45:41: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  304. 2019-09-09 19:51:22: (server.c.1828) server stopped by UID = 0 PID = 1
  305. 2019-09-09 19:51:23: (log.c.217) server started
  306. 2019-09-09 19:51:23: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  307. 2019-09-09 20:02:14: (server.c.1828) server stopped by UID = 0 PID = 1
  308. 2019-09-09 20:02:14: (log.c.217) server started
  309. 2019-09-09 20:02:14: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  310. 2019-09-09 20:11:07: (server.c.1828) server stopped by UID = 0 PID = 1
  311. 2019-09-09 20:11:08: (log.c.217) server started
  312. 2019-09-09 20:11:08: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  313. 2019-09-09 20:46:22: (server.c.1828) server stopped by UID = 0 PID = 1
  314. 2019-09-09 20:46:41: (log.c.217) server started
  315. 2019-09-09 20:46:41: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  316. 2019-09-09 20:54:47: (server.c.1828) server stopped by UID = 0 PID = 1
  317. 2019-09-09 20:54:48: (log.c.217) server started
  318. 2019-09-09 20:54:48: (server.c.1295) WARNING: unknown config-key: alias.url (ignored)
  319.  
  320. *** [ DIAGNOSING ]: contents of /var/log
  321.  
  322. -rw-r--r-- 1 pihole pihole 0 Sep 11 00:00 /var/log/pihole-FTL.log
  323. -----head of pihole-FTL.log------
  324.  
  325. -----tail of pihole-FTL.log------
  326.  
  327. *** [ DIAGNOSING ]: contents of /dev/shm
  328. -rw------- 1 pihole pihole 323584 Sep 11 00:10 /dev/shm/FTL-clients
  329. -rw------- 1 pihole pihole 108 Sep 10 23:38 /dev/shm/FTL-counters
  330. -rw------- 1 pihole pihole 65536 Sep 10 23:40 /dev/shm/FTL-domains
  331. -rw------- 1 pihole pihole 12288 Sep 10 23:40 /dev/shm/FTL-forwarded
  332. -rw------- 1 pihole pihole 28 Sep 10 23:38 /dev/shm/FTL-lock
  333. -rw------- 1 pihole pihole 53248 Sep 10 23:38 /dev/shm/FTL-overTime
  334. -rw------- 1 pihole pihole 196608 Sep 10 23:59 /dev/shm/FTL-queries
  335. -rw------- 1 pihole pihole 12 Sep 10 23:38 /dev/shm/FTL-settings
  336. -rw------- 1 pihole pihole 4096 Sep 10 23:40 /dev/shm/FTL-strings
  337.  
  338. *** [ DIAGNOSING ]: Locale
  339. LANG=
  340.  
  341. *** [ DIAGNOSING ]: Pi-hole log
  342. -rw-r--r-- 1 pihole pihole 140437 Sep 11 00:10 /var/log/pihole.log
  343. -----head of pihole.log------
  344. Sep 11 00:00:07 dnsmasq-dhcp[2282]: DHCPACK(wlan0) 192.168.0.148 68:37:e9:64:8e:5f amazon-dce62b144
  345. Sep 11 00:00:10 dnsmasq-dhcp[2282]: RTR-SOLICIT(wlan0) 68:37:e9:64:8e:5f
  346. Sep 11 00:00:10 dnsmasq-dhcp[2282]: RTR-ADVERT(wlan0) 2601:205:380:c56::
  347. Sep 11 00:00:10 dnsmasq[2282]: query[PTR] 167.0.168.192.in-addr.arpa from 127.0.0.1
  348. Sep 11 00:00:10 dnsmasq[2282]: DHCP 192.168.0.167 is amazon-a98423dfc.piholelan
  349. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPDISCOVER(wlan0) 44:00:49:d8:b3:b9
  350. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPOFFER(wlan0) 192.168.0.167 44:00:49:d8:b3:b9
  351. Sep 11 00:00:10 dnsmasq-dhcp[2282]: RTR-SOLICIT(wlan0) 68:37:e9:64:8e:5f
  352. Sep 11 00:00:10 dnsmasq-dhcp[2282]: RTR-ADVERT(wlan0) 2601:205:380:c56::
  353. Sep 11 00:00:10 dnsmasq[2282]: query[PTR] 167.0.168.192.in-addr.arpa from 127.0.0.1
  354. Sep 11 00:00:10 dnsmasq[2282]: DHCP 192.168.0.167 is amazon-a98423dfc.piholelan
  355. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPDISCOVER(wlan0) 44:00:49:d8:b3:b9
  356. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPOFFER(wlan0) 192.168.0.167 44:00:49:d8:b3:b9
  357. Sep 11 00:00:10 dnsmasq[2282]: query[PTR] 172.0.168.192.in-addr.arpa from 127.0.0.1
  358. Sep 11 00:00:10 dnsmasq[2282]: DHCP 192.168.0.172 is MUs-MacBook-Pro.piholelan
  359. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPDISCOVER(wlan0) 44:00:49:7e:47:06
  360. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPOFFER(wlan0) 192.168.0.161 44:00:49:7e:47:06
  361. Sep 11 00:00:10 dnsmasq[2282]: query[PTR] 66.0.168.192.in-addr.arpa from 127.0.0.1
  362. Sep 11 00:00:10 dnsmasq[2282]: DHCP 192.168.0.66 is BedroomAppleTV.piholelan
  363. Sep 11 00:00:10 dnsmasq-dhcp[2282]: DHCPDISCOVER(wlan0) 44:00:49:7e:47:06
  364.  
  365.  
  366. ********************************************
  367. ********************************************
  368. [✓] ** FINISHED DEBUGGING! **
  369.  
  370. * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  371. * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  372. * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
  373. [i] Debug script running in automated mode
  374. * Using curl for transmission.
  375.  
  376. ***********************************
  377. ***********************************
  378. [✓] Your debug token is: https://tricorder.pi-hole.net/u1fcs1cjyf
  379. ***********************************
  380. ***********************************
  381.  
  382. * Provide the token above to the Pi-hole team for assistance at
  383. * https://discourse.pi-hole.net
  384. * Your log will self-destruct on our server after 48 hours.
  385. * A local copy of the debug log can be found at: /var/log/pihole_debug.log
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement