Advertisement
Guest User

Untitled

a guest
Dec 16th, 2018
237
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.74 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-12-16:18:14:23 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-gaf8c926c
  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.33
  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 wlan0 interface:
  46. 192.168.0.23/24 matches the IP found in /etc/pihole/setupVars.conf
  47.  
  48. [✓] IPv6 address(es) bound to the wlan0 interface:
  49. fe80::5d28:1319:7dbd:5f07 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.0.1
  57. * Pinging 192.168.0.1...
  58. [✓] Gateway responded.
  59.  
  60. *** [ DIAGNOSING ]: Ports in use
  61. [::1]:2947 systemd (IPv6)
  62. 127.0.0.1:2947 systemd (IPv4)
  63. *:22 sshd (IPv4)
  64. *:22 sshd (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. *:80 lighttpd (IPv4)
  70. *:80 lighttpd (IPv6)
  71. *:8200 minidlnad (IPv4)
  72. *:20661 rslsync (IPv4)
  73. *:20661 rslsync (IPv6)
  74. 192.168.0.23:8888 rslsync (IPv4)
  75. *:445 smbd (IPv6)
  76. *:139 smbd (IPv6)
  77. *:445 smbd (IPv4)
  78. *:139 smbd (IPv4)
  79.  
  80. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  81. [✓] www.chainblock.science is 0.0.0.0 via localhost (127.0.0.1)
  82. [✓] www.chainblock.science is 0.0.0.0 via Pi-hole (192.168.0.23)
  83. [✓] doubleclick.com is 216.58.198.238 via a remote, public DNS server (8.8.8.8)
  84.  
  85. *** [ DIAGNOSING ]: Pi-hole processes
  86. [✗] dnsmasq daemon is inactive
  87. [✓] lighttpd daemon is active
  88. [✓] pihole-FTL daemon is active
  89.  
  90. *** [ DIAGNOSING ]: Setup variables
  91. PIHOLE_INTERFACE=wlan0
  92. IPV4_ADDRESS=192.168.0.23/24
  93. IPV6_ADDRESS=
  94. PIHOLE_DNS_1=8.8.8.8
  95. PIHOLE_DNS_2=8.8.4.4
  96. QUERY_LOGGING=true
  97. INSTALL_WEB_SERVER=true
  98. INSTALL_WEB_INTERFACE=true
  99. LIGHTTPD_ENABLED=true
  100.  
  101. *** [ DIAGNOSING ]: Dashboard and block page
  102. [✓] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  103. [✓] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  104.  
  105. *** [ DIAGNOSING ]: Gravity list
  106. -rw-r--r-- 1 root root 3221746 Dec 16 03:58 /etc/pihole/gravity.list
  107. -----head of gravity.list------
  108. -x3.vindicosuite.com
  109. 0-hjsochvj-ios-1-2-3.mobile-sdk-api.intercom.io
  110. 0-jovd32f9-ios-7-0-1.mobile-sdk-api.intercom.io
  111. 0.0.0.0
  112.  
  113. -----tail of gravity.list------
  114. zzz.clickbank.net
  115. zzzezeroe.fr
  116. zzzpooeaz-france.com
  117. zzzrtrcm2.com
  118.  
  119. *** [ DIAGNOSING ]: contents of /etc/pihole
  120.  
  121. -rw-r--r-- 1 root root 381 Nov 1 20:41 /etc/pihole/adlists.list
  122. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  123. https://mirror1.malwaredomains.com/files/justdomains
  124. http://sysctl.org/cameleon/hosts
  125. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  126. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  127. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  128. https://hosts-file.net/ad_servers.txt
  129.  
  130. -rw-r--r-- 1 root root 0 Dec 6 18:18 /etc/pihole/blacklist.txt
  131.  
  132. -rw-r--r-- 1 root root 47 Dec 16 03:58 /etc/pihole/local.list
  133. 192.168.0.23 raspberrypi3
  134. 192.168.0.23 pi.hole
  135.  
  136. -rw-r--r-- 1 root root 234 Nov 1 20:43 /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. -rw-r--r-- 1 root root 17 Dec 6 18:18 /etc/pihole/whitelist.txt
  159. thepiratebay.org
  160.  
  161. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  162.  
  163. -rw-r--r-- 1 root root 1509 Nov 1 20:43 /etc/dnsmasq.d/01-pihole.conf
  164. addn-hosts=/etc/pihole/gravity.list
  165. addn-hosts=/etc/pihole/black.list
  166. addn-hosts=/etc/pihole/local.list
  167. localise-queries
  168. no-resolv
  169. cache-size=10000
  170. log-queries=extra
  171. log-facility=/var/log/pihole.log
  172. local-ttl=2
  173. log-async
  174. server=8.8.8.8
  175. server=8.8.4.4
  176. interface=wlan0
  177.  
  178. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  179.  
  180. -rw-r--r-- 1 root root 3027 Nov 1 20:43 /etc/lighttpd/lighttpd.conf
  181. server.modules = (
  182. "mod_access",
  183. "mod_accesslog",
  184. "mod_auth",
  185. "mod_expire",
  186. "mod_compress",
  187. "mod_redirect",
  188. "mod_setenv",
  189. "mod_rewrite"
  190. )
  191. server.document-root = "/var/www/html"
  192. server.error-handler-404 = "pihole/index.php"
  193. server.upload-dirs = ( "/var/cache/lighttpd/uploads" )
  194. server.errorlog = "/var/log/lighttpd/error.log"
  195. server.pid-file = "/var/run/lighttpd.pid"
  196. server.username = "www-data"
  197. server.groupname = "www-data"
  198. server.port = 80
  199. accesslog.filename = "/var/log/lighttpd/access.log"
  200. accesslog.format = "%{%s}t|%V|%r|%s|%b"
  201. index-file.names = ( "index.php", "index.html", "index.lighttpd.html" )
  202. url.access-deny = ( "~", ".inc", ".md", ".yml", ".ini" )
  203. static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  204. compress.cache-dir = "/var/cache/lighttpd/compress/"
  205. compress.filetype = ( "application/javascript", "text/css", "text/html", "text/plain" )
  206. include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  207. include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  208. include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  209. ' 2>/dev/null"
  210. $HTTP["url"] =~ "^/admin/" {
  211.  
  212. setenv.add-response-header = (
  213. "X-Pi-hole" => "The Pi-hole Web interface is working!",
  214. "X-Frame-Options" => "DENY"
  215. )
  216. $HTTP["url"] =~ ".ttf$" {
  217.  
  218. setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  219. }
  220. }
  221. $HTTP["url"] =~ "^/admin/\.(.*)" {
  222. url.access-deny = ("")
  223. }
  224. include_shell "cat external.conf 2>/dev/null"
  225.  
  226. *** [ DIAGNOSING ]: contents of /etc/cron.d
  227.  
  228. -rw-r--r-- 1 root root 1496 Nov 1 20:43 /etc/cron.d/pihole
  229. 58 3 * * 7 root PATH="$PATH:/usr/local/bin/" pihole updateGravity
  230. 00 00 * * * root PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  231. @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  232. */10 * * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  233. 39 14 * * * root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  234. @reboot root PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  235.  
  236. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  237.  
  238. -rw-r--r-- 1 www-data www-data 72 Dec 9 06:25 /var/log/lighttpd/error.log
  239. 2018-12-09 06:25:02: (server.c.1534) logfiles cycled UID = 0 PID = 362
  240.  
  241. *** [ DIAGNOSING ]: contents of /var/log
  242.  
  243. -rw-r--r-- 1 pihole pihole 355 Dec 16 15:59 /var/log/pihole-FTL.log
  244. -----head of pihole-FTL.log------
  245. [2018-12-16 03:58:06.354] Compiled 0 Regex filters and 1 whitelisted domains in 0.1 msec (0 errors)
  246. [2018-12-16 03:58:06.538] /etc/pihole/black.list: parsed 0 domains (took 0.0 ms)
  247. [2018-12-16 03:58:07.084] /etc/pihole/gravity.list: parsed 136335 domains (took 544.9 ms)
  248. [2018-12-16 15:59:00.090] Notice: Increasing overTime struct size from 2500 to 2600
  249.  
  250. -----tail of pihole-FTL.log------
  251. [2018-12-16 03:58:06.354] Compiled 0 Regex filters and 1 whitelisted domains in 0.1 msec (0 errors)
  252. [2018-12-16 03:58:06.538] /etc/pihole/black.list: parsed 0 domains (took 0.0 ms)
  253. [2018-12-16 03:58:07.084] /etc/pihole/gravity.list: parsed 136335 domains (took 544.9 ms)
  254. [2018-12-16 15:59:00.090] Notice: Increasing overTime struct size from 2500 to 2600
  255.  
  256. *** [ DIAGNOSING ]: Locale
  257. LANG=en_GB.UTF-8
  258.  
  259. *** [ DIAGNOSING ]: Pi-hole log
  260. -rw-r--r-- 1 pihole pihole 915579 Dec 16 18:14 /var/log/pihole.log
  261. -----head of pihole.log------
  262. Dec 16 00:01:45 dnsmasq[700]: 40906 192.168.0.12/13738 query[AAAA] kinesis.us-east-1.amazonaws.com from 192.168.0.12
  263. Dec 16 00:01:45 dnsmasq[700]: 40906 192.168.0.12/13738 forwarded kinesis.us-east-1.amazonaws.com to 8.8.4.4
  264. Dec 16 00:01:45 dnsmasq[700]: 40906 192.168.0.12/13738 reply kinesis.us-east-1.amazonaws.com is NODATA-IPv6
  265. Dec 16 00:01:45 dnsmasq[700]: 40907 192.168.0.12/27956 query[A] kinesis.us-east-1.amazonaws.com from 192.168.0.12
  266. Dec 16 00:01:45 dnsmasq[700]: 40907 192.168.0.12/27956 forwarded kinesis.us-east-1.amazonaws.com to 8.8.4.4
  267. Dec 16 00:01:45 dnsmasq[700]: 40907 192.168.0.12/27956 reply kinesis.us-east-1.amazonaws.com is 52.94.229.190
  268. Dec 16 00:05:12 dnsmasq[700]: 40908 192.168.0.12/32718 query[AAAA] ssl.google-analytics.com from 192.168.0.12
  269. Dec 16 00:05:12 dnsmasq[700]: 40908 192.168.0.12/32718 /etc/pihole/gravity.list ssl.google-analytics.com is ::
  270. Dec 16 00:05:12 dnsmasq[700]: 40909 192.168.0.12/33923 query[A] ssl.google-analytics.com from 192.168.0.12
  271. Dec 16 00:05:12 dnsmasq[700]: 40909 192.168.0.12/33923 /etc/pihole/gravity.list ssl.google-analytics.com is 0.0.0.0
  272. Dec 16 00:08:45 dnsmasq[700]: 40910 192.168.0.12/41262 query[AAAA] android.clients.google.com from 192.168.0.12
  273. Dec 16 00:08:45 dnsmasq[700]: 40910 192.168.0.12/41262 forwarded android.clients.google.com to 8.8.4.4
  274. Dec 16 00:08:46 dnsmasq[700]: 40910 192.168.0.12/41262 reply android.clients.google.com is <CNAME>
  275. Dec 16 00:08:46 dnsmasq[700]: 40910 192.168.0.12/41262 reply android.l.google.com is NODATA-IPv6
  276. Dec 16 00:08:46 dnsmasq[700]: 40911 192.168.0.12/38410 query[A] android.clients.google.com from 192.168.0.12
  277. Dec 16 00:08:46 dnsmasq[700]: 40911 192.168.0.12/38410 cached android.clients.google.com is <CNAME>
  278. Dec 16 00:08:46 dnsmasq[700]: 40911 192.168.0.12/38410 forwarded android.clients.google.com to 8.8.4.4
  279. Dec 16 00:08:46 dnsmasq[700]: 40911 192.168.0.12/38410 reply android.clients.google.com is <CNAME>
  280. Dec 16 00:08:46 dnsmasq[700]: 40911 192.168.0.12/38410 reply android.l.google.com is 216.58.213.110
  281. Dec 16 00:08:46 dnsmasq[700]: 40911 192.168.0.12/38410 reply android.l.google.com is 216.58.204.14
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement