{"id":1228,"date":"2019-11-16T10:38:02","date_gmt":"2019-11-16T17:38:02","guid":{"rendered":"http:\/\/emresaglam.com\/blog\/?p=1228"},"modified":"2019-11-16T13:02:48","modified_gmt":"2019-11-16T20:02:48","slug":"run-pihole-without-raspberry-pi","status":"publish","type":"post","link":"https:\/\/emresaglam.com\/blog\/blog\/2019\/11\/16\/run-pihole-without-raspberry-pi\/","title":{"rendered":"Run pihole without raspberry pi"},"content":{"rendered":"\n<p>I have few 24\/7 running linux boxes at home. I wanted to try <a href=\"https:\/\/pi-hole.net\">pi-hole<\/a>. But I really didn&#8217;t want to add another computer (raspberry pi) on my network. <\/p>\n\n\n\n<p>So my initial feeling was why not try Docker? Good choice. Here is how easy it was.<\/p>\n\n\n\n<p>Pull pihole docker image <\/p>\n\n\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\ndocker pull pihole\/pihole\n<\/pre>\n\n\n<p>Find your local IP (Replace eth0 with your ethernet identifier)<\/p>\n\n\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\nsudo ip addr show eth0 | grep &quot;inet\\b&quot; | awk '{print $2}' | cut -d &quot;\/&quot; -f 1\n192.168.0.100\n<\/pre>\n\n\n<p>Get the IP (192.168.0.100 in my case) and run docker:<\/p>\n\n\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\ndocker run -d --name pihole -e ServerIP=192.168.0.100 -e WEBPASSWORD=&quot;myawesomepassword&quot; -e DNS1=8.8.8.8 -p 9080:80 -p 53:53\/tcp -p 53:53\/udp -p 9443:443 pihole\/pihole:latest\n<\/pre>\n\n\n<p>Here in this example above I&#8217;m using myawesomepassword as login password to pihole (Change it to your password). I connect the host OS port 9080 to pihole&#8217;s port 80 and 9443 to pihole&#8217;s port 443. <\/p>\n\n\n\n<p>DNS server is running on port 53. (Since I&#8217;m not doing any zone transfer I can leave TCP 53, but oh well \u00af\\_(\u30c4)_\/\u00af ) <\/p>\n\n\n\n<p>You can login to the admin interface in http:\/\/192.168.100:9080\/admin and start setting your pihole up.  <\/p>\n\n\n\n<p>Have fun blocking pesky DNS requests \ud83d\ude09 <\/p>\n","protected":false},"excerpt":{"rendered":"<p>I have few 24\/7 running linux boxes at home. I wanted to try pi-hole. But I really didn&#8217;t want to add another computer (raspberry pi) on my network. So my initial feeling was why not try Docker? Good choice. Here is how easy it was. Pull pihole docker image Find your local IP (Replace eth0 &hellip; <a href=\"https:\/\/emresaglam.com\/blog\/blog\/2019\/11\/16\/run-pihole-without-raspberry-pi\/\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Run pihole without raspberry pi<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[1],"tags":[79,80,11,81],"_links":{"self":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1228"}],"collection":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/comments?post=1228"}],"version-history":[{"count":4,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/posts\/1228\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/media?parent=1228"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/categories?post=1228"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/emresaglam.com\/blog\/wp-json\/wp\/v2\/tags?post=1228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}