Advertisement
Guest User

Untitled

a guest
Jan 21st, 2019
453
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.54 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] 2019-01-21:17:37:45 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.1.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  15. [i] Branch: master
  16. [i] Commit: v4.1.1-0-g8d85d46
  17.  
  18. *** [ DIAGNOSING ]: Web version
  19. [i] Web: v4.1.1 (https://discourse.pi-hole.net/t/how-do-i-update-pi-hole/249)
  20. [i] Branch: master
  21. [i] Commit: v4.1.1-0-gde7aa5a
  22.  
  23. *** [ DIAGNOSING ]: FTL version
  24. [✓] FTL: v4.1.2
  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. [✓] armv6l
  40.  
  41. *** [ DIAGNOSING ]: Networking
  42. [✓] IPv4 address(es) bound to the eth0 interface:
  43. 192.168.1.4/24 matches the IP found in /etc/pihole/setupVars.conf
  44.  
  45. [✓] IPv6 address(es) bound to the eth0 interface:
  46. fe80::8b40:34c7:37de:dfd4 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)
  47.  
  48. ^ Please note that you may have more than one IP address listed.
  49. As long as one of them is green, and it matches what is in /etc/pihole/setupVars.conf, there is no need for concern.
  50.  
  51. The link to the FAQ is for an issue that sometimes occurs when the IPv6 address changes, which is why we check for it.
  52.  
  53. [i] Default IPv4 gateway: 192.168.1.1
  54. * Pinging 192.168.1.1...
  55. [✓] Gateway responded.
  56.  
  57. *** [ DIAGNOSING ]: Ports in use
  58. *:22 sshd (IPv4)
  59. *:22 sshd (IPv6)
  60. [*:80] is in use by lighttpd
  61. [*:80] is in use by lighttpd
  62. [*:53] is in use by pihole-FTL
  63. [*:53] is in use by pihole-FTL
  64. [127.0.0.1:4711] is in use by pihole-FTL
  65. [[::1]:4711] is in use by pihole-FTL
  66.  
  67. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  68. [✓] ad255.hpg.com.br is 0.0.0.0 via localhost (127.0.0.1)
  69. [✓] ad255.hpg.com.br is 0.0.0.0 via Pi-hole (192.168.1.4)
  70. [✓] doubleclick.com is 216.58.210.14 via a remote, public DNS server (8.8.8.8)
  71.  
  72. *** [ DIAGNOSING ]: Pi-hole processes
  73. [✓] lighttpd daemon is active
  74. [✓] pihole-FTL daemon is active
  75.  
  76. *** [ DIAGNOSING ]: Setup variables
  77. PIHOLE_INTERFACE=eth0
  78. IPV4_ADDRESS=192.168.1.4/24
  79. IPV6_ADDRESS=
  80. PIHOLE_DNS_1=8.8.8.8
  81. PIHOLE_DNS_2=8.8.4.4
  82. QUERY_LOGGING=false
  83. INSTALL_WEB_SERVER=true
  84. INSTALL_WEB_INTERFACE=true
  85. LIGHTTPD_ENABLED=true
  86. DHCP_ACTIVE=true
  87. DHCP_START=192.168.1.2
  88. DHCP_END=192.168.1.199
  89. DHCP_ROUTER=192.168.1.1
  90. DHCP_LEASETIME=0
  91. PIHOLE_DOMAIN=lan
  92. DHCP_IPv6=false
  93. BLOCKING_ENABLED=true
  94.  
  95. *** [ DIAGNOSING ]: Dashboard and block page
  96. [✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  97. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  98.  
  99. *** [ DIAGNOSING ]: Gravity list
  100. -rw-r--r-- 1 root root 2635660 Jan 20 03:45 /etc/pihole/gravity.list
  101. -----head of gravity.list------
  102. 0.0.0.0
  103. 0.r.msn.com
  104. 0.start.bz
  105. 000.0x1f4b0.com
  106.  
  107. -----tail of gravity.list------
  108. zzz.clickbank.net
  109. zzzezeroe.fr
  110. zzzpooeaz-france.com
  111. zzzrtrcm2.com
  112.  
  113. *** [ DIAGNOSING ]: contents of /etc/pihole
  114.  
  115. -rw-r--r-- 1 root root 381 Jan 6 13:01 /etc/pihole/adlists.list
  116. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  117. https://mirror1.malwaredomains.com/files/justdomains
  118. http://sysctl.org/cameleon/hosts
  119. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  120. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  121. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  122. https://hosts-file.net/ad_servers.txt
  123.  
  124. -rw-r--r-- 1 root root 44 Jan 20 03:45 /etc/pihole/local.list
  125. 192.168.1.4 raspberrypi
  126. 192.168.1.4 pi.hole
  127.  
  128. -rw-r--r-- 1 root root 234 Jan 6 13:06 /etc/pihole/logrotate
  129. /var/log/pihole.log {
  130. su root root
  131. daily
  132. copytruncate
  133. rotate 5
  134. compress
  135. delaycompress
  136. notifempty
  137. nomail
  138. }
  139. /var/log/pihole-FTL.log {
  140. su root root
  141. weekly
  142. copytruncate
  143. rotate 3
  144. compress
  145. delaycompress
  146. notifempty
  147. nomail
  148. }
  149.  
  150. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  151.  
  152. -rw-r--r-- 1 root root 1414 Jan 7 17:52 /etc/dnsmasq.d/01-pihole.conf
  153. addn-hosts=/etc/pihole/gravity.list
  154. addn-hosts=/etc/pihole/black.list
  155. addn-hosts=/etc/pihole/local.list
  156. user=pihole
  157. group=pihole
  158. localise-queries
  159. no-resolv
  160. cache-size=10000
  161. log-facility=/var/log/pihole.log
  162. local-ttl=2
  163. log-async
  164. server=8.8.8.8
  165. server=8.8.4.4
  166. interface=eth0
  167.  
  168. -rw-r--r-- 1 root root 486 Jan 6 14:46 /etc/dnsmasq.d/02-pihole-dhcp.conf
  169. dhcp-authoritative
  170. dhcp-range=192.168.1.2,192.168.1.199,infinite
  171. dhcp-option=option:router,192.168.1.1
  172. dhcp-leasefile=/etc/pihole/dhcp.leases
  173. domain=lan
  174.  
  175. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  176.  
  177. -rw-r--r-- 1 root root 3102 Jan 6 13:06 /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 1704 Jan 6 13:06 /etc/cron.d/pihole
  226. 45 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
  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. 16 14 * * * 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 73 Jan 21 06:25 /var/log/lighttpd/error.log
  236. 2019-01-21 06:25:07: (server.c.1534) logfiles cycled UID = 0 PID = 6282
  237.  
  238. *** [ DIAGNOSING ]: contents of /var/log
  239.  
  240. -rw-r--r-- 1 pihole pihole 0 Jan 21 00:00 /var/log/pihole-FTL.log
  241. -----head of pihole-FTL.log------
  242.  
  243. -----tail of pihole-FTL.log------
  244.  
  245. *** [ DIAGNOSING ]: Locale
  246. LANG=
  247.  
  248. *** [ DIAGNOSING ]: Pi-hole log
  249. -rw-r--r-- 1 pihole pihole 14805 Jan 21 17:36 /var/log/pihole.log
  250. -----head of pihole.log------
  251. Jan 21 00:30:12 dnsmasq-dhcp[581]: DHCPDISCOVER(eth0) dc:68:eb:b3:75:ea
  252. Jan 21 00:30:12 dnsmasq-dhcp[581]: DHCPOFFER(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  253. Jan 21 00:30:12 dnsmasq-dhcp[581]: DHCPREQUEST(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  254. Jan 21 00:30:12 dnsmasq-dhcp[581]: DHCPACK(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  255. Jan 21 00:48:17 dnsmasq-dhcp[581]: DHCPREQUEST(eth0) 192.168.1.3 70:3e:ac:94:83:69
  256. Jan 21 00:48:17 dnsmasq-dhcp[581]: DHCPACK(eth0) 192.168.1.3 70:3e:ac:94:83:69 johnnysiPhone8
  257. Jan 21 01:00:28 dnsmasq-dhcp[581]: DHCPDISCOVER(eth0) dc:68:eb:b3:75:ea
  258. Jan 21 01:00:28 dnsmasq-dhcp[581]: DHCPOFFER(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  259. Jan 21 01:00:28 dnsmasq-dhcp[581]: DHCPREQUEST(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  260. Jan 21 01:00:28 dnsmasq-dhcp[581]: DHCPACK(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  261. Jan 21 01:30:44 dnsmasq-dhcp[581]: DHCPDISCOVER(eth0) dc:68:eb:b3:75:ea
  262. Jan 21 01:30:44 dnsmasq-dhcp[581]: DHCPOFFER(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  263. Jan 21 01:30:44 dnsmasq-dhcp[581]: DHCPREQUEST(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  264. Jan 21 01:30:44 dnsmasq-dhcp[581]: DHCPACK(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  265. Jan 21 02:01:00 dnsmasq-dhcp[581]: DHCPDISCOVER(eth0) dc:68:eb:b3:75:ea
  266. Jan 21 02:01:00 dnsmasq-dhcp[581]: DHCPOFFER(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  267. Jan 21 02:01:00 dnsmasq-dhcp[581]: DHCPREQUEST(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  268. Jan 21 02:01:00 dnsmasq-dhcp[581]: DHCPACK(eth0) 192.168.1.175 dc:68:eb:b3:75:ea
  269. Jan 21 02:07:09 dnsmasq-dhcp[581]: DHCPREQUEST(eth0) 192.168.1.3 70:3e:ac:94:83:69
  270. Jan 21 02:07:09 dnsmasq-dhcp[581]: DHCPACK(eth0) 192.168.1.3 70:3e:ac:94:83:69 johnnysiPhone8
  271.  
  272.  
  273. ********************************************
  274. ********************************************
  275. [✓] ** FINISHED DEBUGGING! **
  276.  
  277. * The debug log can be uploaded to tricorder.pi-hole.net for sharing with developers only.
  278. * For more information, see: https://pi-hole.net/2016/11/07/crack-our-medical-tricorder-win-a-raspberry-pi-3/
  279. * If available, we'll use openssl to upload the log, otherwise it will fall back to netcat.
  280. [i] Debug script running in automated mode
  281. * Using openssl for transmission.
  282.  
  283. ***********************************
  284. ***********************************
  285. [✓] Your debug token is: afrwz19l00
  286. ***********************************
  287. ***********************************
  288.  
  289. * Provide the token above to the Pi-hole team for assistance at
  290. * https://discourse.pi-hole.net
  291. * Your log will self-destruct on our server after 48 hours.
  292. * A local copy of the debug log can be found at: /var/log/pihole_debug-sanitized.log
  293.  
  294. Pi-hole Version v4.1.1 Web Interface Version v4.1.1 FTL Version v4.1.2 Donate if you found this useful.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement