Advertisement
punkid

Untitled

Sep 30th, 2018
170
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 11.36 KB | None | 0 0
  1. [s6-init] making user provided files available at /var/run/s6/etc...exited 0.,
  2. [s6-init] ensuring user provided files have correct perms...exited 0.,
  3. [fix-attrs.d] applying ownership & permissions fixes...,
  4. [fix-attrs.d] 01-resolver-resolv: applying... ,
  5. [fix-attrs.d] 01-resolver-resolv: exited 0.,
  6. [fix-attrs.d] done.,
  7. [cont-init.d] executing container initialization scripts...,
  8. [cont-init.d] 20-start.sh: executing... ,
  9. ::: Starting docker specific setup for docker pihole/pihole,
  10. [i] Existing PHP installation detected : PHP version 7.0.30-0+deb9u1,
  11. [i] Installing configs from /etc/.pihole...,
  12. [i] Existing dnsmasq.conf found... it is not a Pi-hole file, leaving alone!,
  13. [i] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf...
  14. [✓] Copying 01-pihole.conf to /etc/dnsmasq.d/01-pihole.conf,
  15. + [[ leet1337 == '' ]],
  16. + pihole -a -p leet1337 leet1337,
  17. [✓] New password set,
  18. + '[' 0 -gt 0 ']',
  19. + setup_dnsmasq '' '' '',
  20. + local dns1=,
  21. + local dns2=,
  22. + local interface=,
  23. + setup_dnsmasq_config_if_missing,
  24. + '[' '!' -f /etc/dnsmasq.d/01-pihole.conf ']',
  25. + setup_dnsmasq_dns '' '',
  26. + . /opt/pihole/webpage.sh,
  27. ++ setupVars=/etc/pihole/setupVars.conf,
  28. ++ dnsmasqconfig=/etc/dnsmasq.d/01-pihole.conf,
  29. ++ dhcpconfig=/etc/dnsmasq.d/02-pihole-dhcp.conf,
  30. ++ FTLconf=/etc/pihole/pihole-FTL.conf,
  31. ++ dhcpstaticconfig=/etc/dnsmasq.d/04-pihole-static-dhcp.conf,
  32. ++ coltable=/opt/pihole/COL_TABLE,
  33. ++ [[ -f /opt/pihole/COL_TABLE ]],
  34. ++ source /opt/pihole/COL_TABLE,
  35. +++ [[ -t 1 ]],
  36. +++ COL_BOLD=,
  37. +++ COL_ULINE=,
  38. +++ COL_NC=,
  39. +++ COL_GRAY=,
  40. +++ COL_RED=,
  41. +++ COL_GREEN=,
  42. +++ COL_YELLOW=,
  43. +++ COL_BLUE=,
  44. +++ COL_PURPLE=,
  45. +++ COL_CYAN=,
  46. +++ COL_WHITE=,
  47. +++ COL_BLACK=,
  48. +++ COL_LIGHT_BLUE=,
  49. +++ COL_LIGHT_GREEN=,
  50. +++ COL_LIGHT_CYAN=,
  51. +++ COL_LIGHT_RED=,
  52. +++ COL_URG_RED=,
  53. +++ COL_LIGHT_PURPLE=,
  54. +++ COL_BROWN=,
  55. +++ COL_LIGHT_GRAY=,
  56. +++ COL_DARK_GRAY=,
  57. +++ TICK='[✓]',
  58. +++ CROSS='[✗]',
  59. +++ INFO='[i]',
  60. +++ QST='[?]',
  61. +++ DONE=' done!',
  62. +++ OVER='\r',
  63. + local DNS1=8.8.8.8,
  64. + local DNS2=8.8.4.4,
  65. + local dnsType=default,
  66. + '[' 8.8.8.8 '!=' 8.8.8.8 ']',
  67. + '[' 8.8.4.4 '!=' 8.8.4.4 ']',
  68. + '[' '!' -f /.piholeFirstBoot ']',
  69. Using default DNS servers: 8.8.8.8 & 8.8.4.4,
  70. + echo 'Using default DNS servers: 8.8.8.8 & 8.8.4.4',
  71. + [[ -n 8.8.8.8 ]],
  72. + [[ -z '' ]],
  73. + change_setting PIHOLE_DNS_1 8.8.8.8,
  74. + delete_setting PIHOLE_DNS_1,
  75. + sed -i /PIHOLE_DNS_1/d /etc/pihole/setupVars.conf,
  76. + add_setting PIHOLE_DNS_1 8.8.8.8,
  77. + echo PIHOLE_DNS_1=8.8.8.8,
  78. + [[ -n 8.8.4.4 ]],
  79. + [[ -z '' ]],
  80. + '[' 8.8.4.4 = no ']',
  81. + change_setting PIHOLE_DNS_2 8.8.4.4,
  82. + delete_setting PIHOLE_DNS_2,
  83. + sed -i /PIHOLE_DNS_2/d /etc/pihole/setupVars.conf,
  84. + add_setting PIHOLE_DNS_2 8.8.4.4,
  85. + echo PIHOLE_DNS_2=8.8.4.4,
  86. + setup_dnsmasq_interface '',
  87. + local interface=eth0,
  88. + local interfaceType=default,
  89. + '[' eth0 '!=' eth0 ']',
  90. + echo 'DNSMasq binding to default interface: eth0',
  91. DNSMasq binding to default interface: eth0,
  92. + '[' -n eth0 ']',
  93. + change_setting PIHOLE_INTERFACE eth0,
  94. + delete_setting PIHOLE_INTERFACE,
  95. + sed -i /PIHOLE_INTERFACE/d /etc/pihole/setupVars.conf,
  96. + add_setting PIHOLE_INTERFACE eth0,
  97. + echo PIHOLE_INTERFACE=eth0,
  98. + ProcessDNSSettings,
  99. + source /etc/pihole/setupVars.conf,
  100. ++ TEMPERATUREUNIT=C,
  101. ++ WEBUIBOXEDLAYOUT=boxed,
  102. ++ DNSMASQ_LISTENING=all,
  103. ++ DNS_FQDN_REQUIRED=true,
  104. ++ DNS_BOGUS_PRIV=true,
  105. ++ DNSSEC=false,
  106. ++ CONDITIONAL_FORWARDING=false,
  107. ++ DHCP_ACTIVE=true,
  108. ++ DHCP_START=192.168.1.201,
  109. ++ DHCP_END=192.168.1.251,
  110. ++ DHCP_ROUTER=192.168.1.1,
  111. ++ DHCP_LEASETIME=24,
  112. ++ PIHOLE_DOMAIN=lan,
  113. ++ DHCP_IPv6=false,
  114. ++ QUERY_LOGGING=true,
  115. ++ INSTALL_WEB_SERVER=true,
  116. ++ INSTALL_WEB_INTERFACE=true,
  117. ++ LIGHTTPD_ENABLED=,
  118. ++ IPV4_ADDRESS=192.168.1.50,
  119. ++ IPV6_ADDRESS=,
  120. ++ WEBPASSWORD=6f89e6dfa84481a7e7a886a44fc09f972429ae0f2da29b523ac1bc7a146b87c2,
  121. ++ PIHOLE_DNS_1=8.8.8.8,
  122. ++ PIHOLE_DNS_2=8.8.4.4,
  123. ++ PIHOLE_INTERFACE=eth0,
  124. + delete_dnsmasq_setting server,
  125. + sed -i /server/d /etc/dnsmasq.d/01-pihole.conf,
  126. + COUNTER=1,
  127. + [[ -n 1 ]],
  128. + var=PIHOLE_DNS_1,
  129. + '[' -z 8.8.8.8 ']',
  130. + add_dnsmasq_setting server 8.8.8.8,
  131. + [[ 8.8.8.8 != '' ]],
  132. + echo server=8.8.8.8,
  133. + let COUNTER=COUNTER+1,
  134. + [[ -n 1 ]],
  135. + var=PIHOLE_DNS_2,
  136. + '[' -z 8.8.4.4 ']',
  137. + add_dnsmasq_setting server 8.8.4.4,
  138. + [[ 8.8.4.4 != '' ]],
  139. + echo server=8.8.4.4,
  140. + let COUNTER=COUNTER+1,
  141. + [[ -n 1 ]],
  142. + var=PIHOLE_DNS_3,
  143. + '[' -z '' ']',
  144. + break,
  145. + '[' '!' -z '' ']',
  146. + delete_dnsmasq_setting domain-needed,
  147. + sed -i /domain-needed/d /etc/dnsmasq.d/01-pihole.conf,
  148. + [[ true == true ]],
  149. + add_dnsmasq_setting domain-needed,
  150. + [[ '' != '' ]],
  151. + echo domain-needed,
  152. + delete_dnsmasq_setting bogus-priv,
  153. + sed -i /bogus-priv/d /etc/dnsmasq.d/01-pihole.conf,
  154. + [[ true == true ]],
  155. + add_dnsmasq_setting bogus-priv,
  156. + [[ '' != '' ]],
  157. + echo bogus-priv,
  158. + delete_dnsmasq_setting dnssec,
  159. + sed -i /dnssec/d /etc/dnsmasq.d/01-pihole.conf,
  160. + delete_dnsmasq_setting trust-anchor=,
  161. + sed -i /trust-anchor=/d /etc/dnsmasq.d/01-pihole.conf,
  162. + [[ false == true ]],
  163. + delete_dnsmasq_setting host-record,
  164. + sed -i /host-record/d /etc/dnsmasq.d/01-pihole.conf,
  165. + '[' '!' -z '' ']',
  166. + delete_dnsmasq_setting interface,
  167. + sed -i /interface/d /etc/dnsmasq.d/01-pihole.conf,
  168. + delete_dnsmasq_setting local-service,
  169. + sed -i /local-service/d /etc/dnsmasq.d/01-pihole.conf,
  170. + [[ all == \a\l\l ]],
  171. + add_dnsmasq_setting except-interface nonexisting,
  172. + [[ nonexisting != '' ]],
  173. + echo except-interface=nonexisting,
  174. + [[ false == true ]],
  175. + setup_php_env,
  176. + '[' -z '' ']',
  177. + VIRTUAL_HOST=192.168.1.50,
  178. + local 'vhost_line=\t\t\t"VIRTUAL_HOST" => "192.168.1.50",',
  179. + local 'serverip_line=\t\t\t"ServerIP" => "192.168.1.50",',
  180. + local 'php_error_line=\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",',
  181. + grep -qP '\t\t\t"VIRTUAL_HOST" => "192.168.1.50",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  182. + sed -i '/bin-environment/ a\\t\t\t"VIRTUAL_HOST" => "192.168.1.50",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  183. + grep -qP '\t\t\t"ServerIP" => "192.168.1.50",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  184. + sed -i '/bin-environment/ a\\t\t\t"ServerIP" => "192.168.1.50",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  185. + grep -qP '\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  186. + sed -i '/bin-environment/ a\\t\t\t"PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  187. + echo 'Added ENV to php:',
  188. + grep -E '(VIRTUAL_HOST|ServerIP|PHP_ERROR_LOG)' /etc/lighttpd/conf-enabled/15-fastcgi-php.conf,
  189. Added ENV to php:,
  190. "PHP_ERROR_LOG" => "/var/log/lighttpd/error.log",,
  191. "ServerIP" => "192.168.1.50",,
  192. "VIRTUAL_HOST" => "192.168.1.50",,
  193. + setup_dnsmasq_hostnames 192.168.1.50 '' allfather,
  194. + local IPV4_ADDRESS=192.168.1.50,
  195. + local IPV6_ADDRESS=,
  196. + local hostname=allfather,
  197. + local dnsmasq_pihole_01_location=/etc/dnsmasq.d/01-pihole.conf,
  198. + '[' -z allfather ']',
  199. + [[ 192.168.1.50 != '' ]],
  200. + tmp=192.168.1.50,
  201. + sed -i s/@IPV4@/192.168.1.50/ /etc/dnsmasq.d/01-pihole.conf,
  202. + [[ '' != '' ]],
  203. + sed -i '/^address=\/pi.hole\/@IPv6@/d' /etc/dnsmasq.d/01-pihole.conf,
  204. + sed -i '/^address=\/@HOSTNAME@\/@IPv6@/d' /etc/dnsmasq.d/01-pihole.conf,
  205. + [[ allfather != '' ]],
  206. + sed -i s/@HOSTNAME@/allfather/ /etc/dnsmasq.d/01-pihole.conf,
  207. + setup_ipv4_ipv6,
  208. + local 'ip_versions=IPv4 and IPv6',
  209. + '[' False '!=' True ']',
  210. + ip_versions=IPv4,
  211. + sed -i '/use-ipv6.pl/ d' /etc/lighttpd/lighttpd.conf,
  212. Using IPv4,
  213. + echo 'Using IPv4',
  214. + setup_lighttpd_bind 192.168.1.50,
  215. + local serverip=192.168.1.50,
  216. + grep -q docker /proc/net/dev,
  217. + grep -q server.bind /etc/lighttpd/lighttpd.conf,
  218. + sed -i -E 's/server\.port\s+\=\s+([0-9]+)/server.bind\t\t = "192.168.1.50"\nserver.port\t\t = \1\n$SERVER\["socket"\] == "127\.0\.0\.1:\1" \{\}/' /etc/lighttpd/lighttpd.conf,
  219. + setup_blocklists,
  220. ::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early)),
  221. + local blocklists=,
  222. + exit_string='(exiting setup_blocklists early)',
  223. + '[' -n '' ']',
  224. + '[' -f /etc/pihole/adlists.list ']',
  225. + echo '::: Preexisting ad list /etc/pihole/adlists.list detected ((exiting setup_blocklists early))',
  226. + cat /etc/pihole/adlists.list,
  227. # The below list amalgamates several lists we used previously.,
  228. # See `https://github.com/StevenBlack/hosts` for details,
  229. ##StevenBlack's list,
  230. https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts,
  231. ##MalwareDomains,
  232. https://mirror1.malwaredomains.com/files/justdomains,
  233. ##Cameleon,
  234. http://sysctl.org/cameleon/hosts,
  235. + return,
  236. ##Zeustracker,
  237. https://zeustracker.abuse.ch/blocklist.php?download=domainblocklist,
  238. + test_configs,
  239. ##Disconnect.me Tracking,
  240. https://s3.amazonaws.com/lists.disconnect.me/simple_tracking.txt,
  241. ##Disconnect.me Ads,
  242. + set -e,
  243. https://s3.amazonaws.com/lists.disconnect.me/simple_ad.txt,
  244. + echo -n '::: Testing pihole-FTL configs: ',
  245. + pihole-FTL test,
  246. ##Hosts-file.net,
  247. https://hosts-file.net/ad_servers.txt,
  248. tps://tspprs.com/dl/ads,
  249. #https://tspprs.com/dl/malware,
  250. #https://tspprs.com/dl/tracking,
  251. ::: Testing pihole-FTL configs: FTL started!,
  252. + echo -n '::: Testing pihole-dnsmasq configs: ',
  253. + pihole-FTL dnsmasq-test,
  254. dnsmasq: syntax check OK.,
  255. + echo -n '::: Testing lighttpd config: ',
  256. + lighttpd -t -f /etc/lighttpd/lighttpd.conf,
  257. ::: Testing pihole-dnsmasq configs: ::: Testing lighttpd config: Syntax OK,
  258. + set +e,
  259. ::: All config checks passed, cleared for startup ...,
  260. + echo '::: All config checks passed, cleared for startup ...',
  261. + '[' -f /.piholeFirstBoot ']',
  262. + rm /.piholeFirstBoot,
  263. ::: Docker start setup complete,
  264. + echo ' ::: Docker start setup complete',
  265. [i] Neutrino emissions detected...,
  266.  
  267. [✓] Pulling blocklist source list into range,
  268. [i] Target: raw.githubusercontent.com (hosts),
  269. [i] Status: Pending...
  270. [✓] Status: Retrieval successful,
  271. [i] Target: mirror1.malwaredomains.com (justdomains),
  272. [i] Status: Pending...
  273. [✓] Status: No changes detected,
  274. [i] Target: sysctl.org (hosts),
  275. [i] Status: Pending...
  276. [✓] Status: No changes detected,
  277. [i] Target: zeustracker.abuse.ch (blocklist.php?download=domainblocklist),
  278. [i] Status: Pending...
  279. [✓] Status: No changes detected,
  280. [i] Target: s3.amazonaws.com (simple_tracking.txt),
  281. [i] Status: Pending...
  282. [✓] Status: No changes detected,
  283. [i] Target: s3.amazonaws.com (simple_ad.txt),
  284. [i] Status: Pending...
  285. [✓] Status: No changes detected,
  286. [i] Target: hosts-file.net (ad_servers.txt),
  287. [i] Status: Pending...
  288. [✓] Status: No changes detected,
  289. [i] Consolidating blocklists...
  290. [✓] Consolidating blocklists,
  291. [i] Extracting domains from blocklists...
  292. [✓] Extracting domains from blocklists,
  293. [i] Number of domains being pulled in by gravity: 153681,
  294. [i] Removing duplicate domains...
  295. [✓] Removing duplicate domains,
  296. [i] Number of unique domains trapped in the Event Horizon: 130557,
  297. [i] Number of whitelisted domains: 6...
  298. [i] Number of whitelisted domains: 6,
  299. [i] Number of blacklisted domains: 1,
  300. [i] Number of regex filters: 0,
  301. [i] Parsing domains into hosts format...
  302. [✓] Parsing domains into hosts format,
  303. [i] Cleaning up stray matter...
  304. [✓] Cleaning up stray matter,
  305. [✓] DNS service is running,
  306. [✓] Pi-hole blocking is Enabled,
  307. [cont-init.d] 20-start.sh: exited 0.,
  308. [cont-init.d] done.,
  309. [services.d] starting services,
  310. Starting pihole-FTL (no-daemon),
  311. Starting lighttpd,
  312. Starting crond,
  313. [services.d] done.,
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement