Advertisement
Guest User

pihole

a guest
Jan 27th, 2019
357
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 15.30 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-28:01:08:18 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-gde7aa5a3
  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. [] Debian GNU/Linux 9 (stretch)
  34.  
  35. *** [ DIAGNOSING ]: SELinux
  36. [i] SELinux not detected
  37.  
  38. *** [ DIAGNOSING ]: Processor
  39. [i] x86_64
  40.  
  41. *** [ DIAGNOSING ]: Networking
  42. [] IPv4 address(es) bound to the eth0 interface:
  43.    172.17.0.2/16 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)
  44.  
  45. [] No IPv6 address(es) found on the eth0 interface.
  46.  
  47. [i] Default IPv4 gateway: 172.17.0.1
  48.    * Pinging 172.17.0.1...
  49. [] Gateway responded.
  50.  
  51. *** [ DIAGNOSING ]: Ports in use
  52.  
  53. *** [ DIAGNOSING ]: Name resolution (IPv4) using a random blocked domain and a known ad-serving domain
  54. [] advert.heise.org is 0.0.0.0 via localhost (127.0.0.1)
  55. [] Failed to resolve advert.heise.org via Pi-hole (192.168.1.160)
  56. [] doubleclick.com is 172.217.8.14 via a remote, public DNS server (8.8.8.8)
  57.  
  58. *** [ DIAGNOSING ]: Name resolution (IPv6) using a random blocked domain and a known ad-serving domain
  59. [] Failed to resolve ads.videofen.com via localhost (::1)
  60. [] Failed to resolve ads.videofen.com via Pi-hole (fd30:a4a4:7615:0:2e56:dcff:fe08:acb4)
  61. [] Failed to resolve doubleclick.com via a remote, public DNS server (2001:4860:4860::8888)
  62.  
  63. *** [ DIAGNOSING ]: Pi-hole processes
  64. [] lighttpd daemon is inactive
  65. [] pihole-FTL daemon is inactive
  66.  
  67. *** [ DIAGNOSING ]: Setup variables
  68.     BLOCKING_ENABLED=true
  69.     DNSMASQ_LISTENING=all
  70.     PIHOLE_DNS_3=2620:fe::10
  71.     PIHOLE_DNS_4=2620:fe::fe:10
  72.     PIHOLE_DNS_5=192.168.1.1#53
  73.     DNS_FQDN_REQUIRED=true
  74.     DNS_BOGUS_PRIV=true
  75.     DNSSEC=false
  76.     CONDITIONAL_FORWARDING=true
  77.     CONDITIONAL_FORWARDING_IP=192.168.1.1
  78.     CONDITIONAL_FORWARDING_DOMAIN=lan
  79.     CONDITIONAL_FORWARDING_REVERSE=1.168.192.in-addr.arpa
  80.     QUERY_LOGGING=true
  81.     INSTALL_WEB_SERVER=true
  82.     INSTALL_WEB_INTERFACE=true
  83.     LIGHTTPD_ENABLED=
  84.     IPV4_ADDRESS=192.168.1.160
  85.     IPV6_ADDRESS=fd30:a4a4:7615:0:2e56:dcff:fe08:acb4
  86.     PIHOLE_DNS_1=8.8.8.8
  87.     PIHOLE_DNS_2=8.8.4.4
  88.     PIHOLE_INTERFACE=eth0
  89.  
  90. *** [ DIAGNOSING ]: Dashboard and block page
  91. [] Block page X-Header: X-Pi-hole: A black hole for Internet advertisements.
  92. [] Web interface X-Header: X-Pi-hole: The Pi-hole Web interface is working!
  93.  
  94. *** [ DIAGNOSING ]: Gravity list
  95. -rw-r--r-- 1 root root 2639751 Jan 27 04:32 /etc/pihole/gravity.list
  96.    -----head of gravity.list------
  97.    0.0.0.0
  98.    0.r.msn.com
  99.    0.start.bz
  100.    000.0x1f4b0.com
  101.  
  102.    -----tail of gravity.list------
  103.    zzz.clickbank.net
  104.    zzzezeroe.fr
  105.    zzzpooeaz-france.com
  106.    zzzrtrcm2.com
  107.  
  108. *** [ DIAGNOSING ]: contents of /etc/pihole
  109.  
  110. -rw-r--r-- 1 root root 381 Jan  1 00:58 /etc/pihole/adlists.list
  111.    https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts
  112.    https://mirror1.malwaredomains.com/files/justdomains
  113.    http://sysctl.org/cameleon/hosts
  114.    https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist
  115.    https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt
  116.    https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt
  117.    https://hosts-file.net/ad_servers.txt
  118.  
  119. -rw-r--r-- 1 root root 144 Jan 27 04:32 /etc/pihole/local.list
  120.    192.168.1.160 94fe6fd34d9b
  121.    fd30:a4a4:7615:0:2e56:dcff:fe08:acb4 94fe6fd34d9b
  122.    192.168.1.160 pi.hole
  123.    fd30:a4a4:7615:0:2e56:dcff:fe08:acb4 pi.hole
  124.  
  125. *** [ DIAGNOSING ]: contents of /etc/dnsmasq.d
  126.  
  127. -rw-r--r-- 1 root root 1582 Jan 23 23:24 /etc/dnsmasq.d/01-pihole.conf
  128.    addn-hosts=/etc/pihole/gravity.list
  129.    addn-hosts=/etc/pihole/black.list
  130.    addn-hosts=/etc/pihole/local.list
  131.    user=pihole
  132.    group=pihole
  133.    localise-queries
  134.    no-resolv
  135.    cache-size=10000
  136.    log-queries
  137.    log-facility=/var/log/pihole.log
  138.    local-ttl=2
  139.    log-async
  140.    server=8.8.8.8
  141.    server=8.8.4.4
  142.    server=2620:fe::10
  143.    server=2620:fe::fe:10
  144.    server=192.168.1.1
  145.    domain-needed
  146.    bogus-priv
  147.    except-interface=nonexisting
  148.    server=/lan/192.168.1.1
  149.    server=/1.168.192.in-addr.arpa/192.168.1.1
  150.  
  151. *** [ DIAGNOSING ]: contents of /etc/lighttpd
  152.  
  153. -rw-r--r-- 1 root root 3102 Jan 23 23:24 /etc/lighttpd/lighttpd.conf
  154.    server.modules = (
  155.     "mod_access",
  156.     "mod_accesslog",
  157.     "mod_auth",
  158.     "mod_expire",
  159.     "mod_compress",
  160.     "mod_redirect",
  161.     "mod_setenv",
  162.     "mod_rewrite"
  163.    )
  164.    server.document-root        = "/var/www/html"
  165.    server.error-handler-404    = "pihole/index.php"
  166.    server.upload-dirs          = ( "/var/cache/lighttpd/uploads" )
  167.    server.errorlog             = "/var/log/lighttpd/error.log"
  168.    server.pid-file             = "/var/run/lighttpd.pid"
  169.    server.username             = "www-data"
  170.    server.groupname            = "www-data"
  171.    server.port                 = 80
  172.    accesslog.filename          = "/var/log/lighttpd/access.log"
  173.    accesslog.format            = "%{%s}t|%V|%r|%s|%b"
  174.    index-file.names            = ( "index.php", "index.html", "index.lighttpd.html" )
  175.    url.access-deny             = ( "~", ".inc", ".md", ".yml", ".ini" )
  176.    static-file.exclude-extensions = ( ".php", ".pl", ".fcgi" )
  177.    compress.cache-dir          = "/var/cache/lighttpd/compress/"
  178.    compress.filetype           = ( "application/javascript", "text/css", "text/html", "text/plain" )
  179.    include_shell "/usr/share/lighttpd/use-ipv6.pl " + server.port
  180.    include_shell "/usr/share/lighttpd/create-mime.assign.pl"
  181.    include_shell "find /etc/lighttpd/conf-enabled -name '*.conf' -a ! -name 'letsencrypt.conf' -printf 'include \"%p\"
  182. ' 2>/dev/null"
  183.    $HTTP["url"] =~ "^/admin/" {
  184.  
  185.        setenv.add-response-header = (
  186.            "X-Pi-hole" => "The Pi-hole Web interface is working!",
  187.            "X-Frame-Options" => "DENY"
  188.        )
  189.        $HTTP["url"] =~ ".ttf$" {
  190.  
  191.            setenv.add-response-header = ( "Access-Control-Allow-Origin" => "*" )
  192.        }
  193.    }
  194.    $HTTP["url"] =~ "^/admin/\.(.*)" {
  195.         url.access-deny = ("")
  196.    }
  197.    include_shell "cat external.conf 2>/dev/null"
  198.  
  199. *** [ DIAGNOSING ]: contents of /etc/cron.d
  200.  
  201. -rw-r--r-- 1 root root 1704 Dec 24 16:52 /etc/cron.d/pihole
  202.    32 4   * * 7   root    PATH="$PATH:/usr/local/bin/" pihole updateGravity >/var/log/pihole_updateGravity.log || cat /var/log/pihole_updateGravity.log
  203.    00 00   * * *   root    PATH="$PATH:/usr/local/bin/" pihole flush once quiet
  204.    @reboot root /usr/sbin/logrotate /etc/pihole/logrotate
  205.    */10 *  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker local
  206.    58 14  * * *   root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote
  207.    @reboot root    PATH="$PATH:/usr/local/bin/" pihole updatechecker remote reboot
  208.  
  209. *** [ DIAGNOSING ]: contents of /var/log/lighttpd
  210.  
  211. -rw-r--r-- 1 www-data www-data 49 Jan 23 23:25 /var/log/lighttpd/error.log
  212.    2019-01-23 23:25:04: (log.c.217) server started
  213.  
  214. *** [ DIAGNOSING ]: contents of /var/log
  215.  
  216. -rw-r--r-- 1 pihole pihole 32077 Jan 28 00:48 /var/log/pihole-FTL.log
  217.    -----head of pihole-FTL.log------
  218.    [2019-01-23 23:24:54.644] Using log file /var/log/pihole-FTL.log
  219.    [2019-01-23 23:24:54.644] ########## FTL started! ##########
  220.    [2019-01-23 23:24:54.644] FTL branch: master
  221.    [2019-01-23 23:24:54.644] FTL version: v4.1.2
  222.    [2019-01-23 23:24:54.644] FTL commit: b06eedf
  223.    [2019-01-23 23:24:54.644] FTL date: 2018-12-21 14:43:34 -0600
  224.    [2019-01-23 23:24:54.644] FTL user: root
  225.    [2019-01-23 23:24:54.644] WARNING: Starting pihole-FTL as user root is not recommended
  226.    [2019-01-23 23:24:54.644] Starting config file parsing (/etc/pihole/pihole-FTL.conf)
  227.    [2019-01-23 23:24:54.644]    SOCKET_LISTENING: only local
  228.    [2019-01-23 23:24:54.644]    AAAA_QUERY_ANALYSIS: Show AAAA queries
  229.    [2019-01-23 23:24:54.644]    MAXDBDAYS: max age for stored queries is 365 days
  230.    [2019-01-23 23:24:54.644]    RESOLVE_IPV6: Resolve IPv6 addresses
  231.    [2019-01-23 23:24:54.644]    RESOLVE_IPV4: Resolve IPv4 addresses
  232.    [2019-01-23 23:24:54.644]    DBINTERVAL: saving to DB file every minute
  233.    [2019-01-23 23:24:54.644]    DBFILE: Using /etc/pihole/pihole-FTL.db
  234.    [2019-01-23 23:24:54.644]    MAXLOGAGE: Importing up to 24.0 hours of log data
  235.    [2019-01-23 23:24:54.644]    PRIVACYLEVEL: Set to 0
  236.    [2019-01-23 23:24:54.644]    IGNORE_LOCALHOST: Show queries from localhost
  237.    [2019-01-23 23:24:54.644]    BLOCKINGMODE: Null IPs for blocked domains
  238.    [2019-01-23 23:24:54.644]    REGEX_DEBUGMODE: Inactive
  239.    [2019-01-23 23:24:54.644]    ANALYZE_ONLY_A_AND_AAAA: Disabled. Analyzing all queries
  240.    [2019-01-23 23:24:54.644]    DBIMPORT: Importing history from database
  241.    [2019-01-23 23:24:54.644]    PIDFILE: Using /var/run/pihole-FTL.pid
  242.    [2019-01-23 23:24:54.644]    PORTFILE: Using /var/run/pihole-FTL.port
  243.    [2019-01-23 23:24:54.644]    SOCKETFILE: Using /var/run/pihole/FTL.sock
  244.    [2019-01-23 23:24:54.645]    WHITELISTFILE: Using /etc/pihole/whitelist.txt
  245.    [2019-01-23 23:24:54.645]    BLACKLISTFILE: Using /etc/pihole/black.list
  246.    [2019-01-23 23:24:54.645]    GRAVITYFILE: Using /etc/pihole/gravity.list
  247.    [2019-01-23 23:24:54.645]    REGEXLISTFILE: Using /etc/pihole/regex.list
  248.    [2019-01-23 23:24:54.645]    SETUPVARSFILE: Using /etc/pihole/setupVars.conf
  249.    [2019-01-23 23:24:54.645]    AUDITLISTFILE: Using /etc/pihole/auditlog.list
  250.    [2019-01-23 23:24:54.645] Finished config file parsing
  251.    [2019-01-23 23:24:54.645] INFO: No whitelist file found
  252.    [2019-01-23 23:24:54.645] Compiled 0 Regex filters and 0 whitelisted domains in 0.0 msec (0 errors)
  253.  
  254.    -----tail of pihole-FTL.log------
  255.    [2019-01-23 23:25:06.460]  -> Unknown DNS queries: 74
  256.    [2019-01-23 23:25:06.460]  -> Unique domains: 1780
  257.    [2019-01-23 23:25:06.460]  -> Unique clients: 14
  258.    [2019-01-23 23:25:06.460]  -> Known forward destinations: 3
  259.    [2019-01-23 23:25:06.460] Successfully accessed setupVars.conf
  260.    [2019-01-23 23:25:06.896] PID of FTL process: 524
  261.    [2019-01-23 23:25:06.896] Listening on port 4711 for incoming IPv4 telnet connections
  262.    [2019-01-23 23:25:06.896] Listening on Unix socket
  263.    [2019-01-23 23:25:06.897] INFO: No whitelist file found
  264.    [2019-01-23 23:25:06.897] Compiled 0 Regex filters and 0 whitelisted domains in 0.0 msec (0 errors)
  265.    [2019-01-23 23:25:07.095] /etc/pihole/gravity.list: parsed 112526 domains (took 197.9 ms)
  266.    [2019-01-23 23:25:08.569] New forward server: 8.8.8.8 (3/4)
  267.    [2019-01-23 23:36:03.364] New forward server: 8.8.4.4 (4/4)
  268.    [2019-01-23 23:36:03.364] Notice: Increasing forwarded struct size from 4 to 8
  269.    [2019-01-23 23:38:19.773] Notice: Increasing queries struct size from 1230000 to 1240000
  270.    [2019-01-23 23:46:55.156] Notice: Increasing queries struct size from 1240000 to 1250000
  271.    [2019-01-23 23:55:42.263] Notice: Increasing queries struct size from 1250000 to 1260000
  272.    [2019-01-24 00:26:20.610] Notice: Increasing queries struct size from 1260000 to 1270000
  273.    [2019-01-24 00:30:08.327] Notice: Increasing queries struct size from 1270000 to 1280000
  274.    [2019-01-24 00:33:51.304] Notice: Increasing queries struct size from 1280000 to 1290000
  275.    [2019-01-24 00:53:09.552] Notice: Increasing queries struct size from 1290000 to 1300000
  276.    [2019-01-24 00:55:46.796] Notice: Increasing queries struct size from 1300000 to 1310000
  277.    [2019-01-24 01:38:13.507] Notice: Increasing domains struct size from 2000 to 3000
  278.    [2019-01-24 08:30:00.052] Notice: Increasing overTime struct size from 200 to 300
  279.    [2019-01-25 01:10:04.087] Notice: Increasing overTime struct size from 300 to 400
  280.    [2019-01-25 04:39:56.964] Notice: Increasing domains struct size from 3000 to 4000
  281.    [2019-01-25 17:50:11.454] Notice: Increasing overTime struct size from 400 to 500
  282.    [2019-01-26 10:30:03.797] Notice: Increasing overTime struct size from 500 to 600
  283.    [2019-01-26 21:12:44.448] Notice: Increasing domains struct size from 4000 to 5000
  284.    [2019-01-27 03:10:06.016] Notice: Increasing overTime struct size from 600 to 700
  285.    [2019-01-27 04:32:04.599] INFO: No whitelist file found
  286.    [2019-01-27 04:32:04.600] Compiled 0 Regex filters and 0 whitelisted domains in 0.1 msec (0 errors)
  287.    [2019-01-27 04:32:04.776] /etc/pihole/gravity.list: parsed 112751 domains (took 125.5 ms)
  288.    [2019-01-27 19:50:37.259] Notice: Increasing overTime struct size from 700 to 800
  289.    [2019-01-28 00:48:32.618] Notice: Increasing domains struct size from 5000 to 6000
  290.  
  291. *** [ DIAGNOSING ]: Locale
  292.     LANG=
  293.  
  294. *** [ DIAGNOSING ]: Pi-hole log
  295. -rw-r--r-- 1 pihole pihole 15317314 Jan 28 01:08 /var/log/pihole.log
  296.    -----head of pihole.log------
  297.  
  298.    Jan 28 00:00:07 dnsmasq[524]: query[A] graph.instagram.com from 192.168.1.173
  299.    Jan 28 00:00:07 dnsmasq[524]: /etc/pihole/gravity.list graph.instagram.com is 0.0.0.0
  300.    Jan 28 00:00:07 dnsmasq[524]: query[AAAA] graph.instagram.com from 192.168.1.173
  301.    Jan 28 00:00:07 dnsmasq[524]: /etc/pihole/gravity.list graph.instagram.com is ::
  302.    Jan 28 00:00:17 dnsmasq[524]: query[A] pi.hole from 127.0.0.1
  303.    Jan 28 00:00:17 dnsmasq[524]: /etc/pihole/local.list pi.hole is 192.168.1.160
  304.    Jan 28 00:00:21 dnsmasq[524]: query[A] scontent-iad3-1.cdninstagram.com from 192.168.1.173
  305.    Jan 28 00:00:21 dnsmasq[524]: forwarded scontent-iad3-1.cdninstagram.com to 192.168.1.1
  306.    Jan 28 00:00:21 dnsmasq[524]: query[A] scontent-iad3-1.cdninstagram.com from 192.168.1.1
  307.    Jan 28 00:00:21 dnsmasq[524]: forwarded scontent-iad3-1.cdninstagram.com to 192.168.1.1
  308.    Jan 28 00:00:21 dnsmasq[524]: query[A] scontent-iad3-1.cdninstagram.com from 192.168.1.1
  309.    Jan 28 00:00:21 dnsmasq[524]: forwarded scontent-iad3-1.cdninstagram.com to 192.168.1.1
  310.    Jan 28 00:00:21 dnsmasq[524]: query[AAAA] scontent-iad3-1.cdninstagram.com from 192.168.1.173
  311.    Jan 28 00:00:21 dnsmasq[524]: forwarded scontent-iad3-1.cdninstagram.com to 192.168.1.1
  312.    Jan 28 00:00:21 dnsmasq[524]: query[A] scontent-iad3-1.cdninstagram.com from 192.168.1.1
  313.    Jan 28 00:00:21 dnsmasq[524]: forwarded scontent-iad3-1.cdninstagram.com to 192.168.1.1
  314.    Jan 28 00:00:21 dnsmasq[524]: query[AAAA] scontent-iad3-1.cdninstagram.com from 192.168.1.1
  315.    Jan 28 00:00:21 dnsmasq[524]: forwarded scontent-iad3-1.cdninstagram.com to 192.168.1.1
  316.    Jan 28 00:00:21 dnsmasq[524]: query[A] scontent-iad3-1.cdninstagram.com from 192.168.1.1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement