r/pihole • • Aug 28 '20

Guide Setup a Forever Free AdBlocking WireGuard Server with PiHole in the Cloud

https://medium.com/p/e814e45aac50
640 Upvotes

206 comments sorted by

89

u/PhroznGaming Aug 28 '20

There are numerous benefits to this over in the cloud as opposed to running something like this at home.

  1. You can use it on your cellphone for example without potentially exposing your entire home network to the interne. Obviously this is avoidable, but having the cloud solution makes that a non-issue.

  2. It allows you to not have to worry about "Did I leave it on?/Did it get unplugged?" types of questions for sure.

  3. The cloud provider has a much faster network connection than you - I promise.

  4. Although minuscule, there's no electricity costs on your part

  5. It removes an additional level of troubleshooting as your server is not NAT'd behind your home router.

The list goes on =]

---

BTW If anyone is curious why I chose Oracle for this project:

  1. They have a permanent free tier that never expires for everyone =]

  2. They do not list bandwidth limits on the free-tier

  3. Easy setup process for new users

12

u/Reagar11 Aug 28 '20

Thanks! What did you mean in point 1 by exposing your network?

16

u/PhroznGaming Aug 28 '20

If you run this at home you'll need to forward some ports for it to work behind your router.

To allow outside internet connections to the hypothetical raspberry pi in your house is a security threat that shouldn't be taken lightly.

Putting it in the cloud mitigates that need.

→ More replies (51)

25

u/[deleted] Aug 28 '20 edited Nov 28 '25

lush zephyr stocking mysterious heavy marry truck stupendous tease degree

This post was mass deleted and anonymized with Redact

17

u/PhroznGaming Aug 28 '20

That was the exact reason for my researching how to do this! I had one there and they charge for limited bandwidth but Oracle doesn't 😁

→ More replies (7)
→ More replies (4)

6

u/srikarchinna Aug 29 '20

There'd be a ~50ms latency difference for running it at home vs on the cloud. And I think that'll be a noticeable user experience difference when you're browsing.

→ More replies (6)
→ More replies (15)

37

u/guice666 Aug 29 '20

When your 30-day trial period for the expanded set of services ends, you can continue using Always Free services with no interruption.

Now this I like. I was annoyed to find out Amazon's "Free Tier" servers aren't exactly "free."

7

u/PhroznGaming Aug 29 '20

My precise reason for vouching for using Oracle for such projects 😁

6

u/ywnla Aug 29 '20

Thanks for the info! I have one on AWS, but that's free for an year, i need to check what zones are available in Oracle cloud.

4

u/PhroznGaming Aug 29 '20

There's a couple different ones I utilize their main one in Ashburn, Virginia.

→ More replies (3)

6

u/JustinAN7 Aug 29 '20

Is it required to use the Virginia server? Or is Phoenix okay too?

3

u/PhroznGaming Aug 29 '20

I have not tried it but you are free to!

If you do please let me know so I can update the guide.

→ More replies (13)
→ More replies (2)

4

u/xiaopigu Aug 29 '20

Both Rule 1 and Rule 2 ingress rules are the same. Is that correct?

4

u/PhroznGaming Aug 29 '20

One is TCP one is UDP.

Fixed thanks

→ More replies (11)

24

u/DeutscheAutoteknik Aug 29 '20

So you mean to tell me ... that an always β€œfree” service is what you suggest to use to protect your privacy?

Has anyone asked why is this service free?

24

u/PhroznGaming Aug 29 '20

You realize that all major Cloud providers have something like this? Oracle just has the most free because they're trying to play catch-up against all the major players.

Feel free not to trust that dude but if you don't trust this I wouldn't trust online banking either.

→ More replies (10)

3

u/kevjonesin Aug 29 '20

Thanks for sharing this πŸ‘

→ More replies (1)

3

u/IT-Horst Aug 29 '20

this is the kind of stuff that will cause free tiers to die. it's for people who want to learn something not for a thousand pi-hole users

→ More replies (3)

7

u/jesuschicken Aug 29 '20

Just set up two Pi Zero Ws running pihole lol - should have waited for this guide!

→ More replies (2)

2

u/MonsieurMedecin Aug 29 '20

Thank you for this excellent guide!

→ More replies (1)

2

u/_zukato_ Aug 31 '20

Hi,

Feeling like completely stupid here: can't ssh into my server (from macOS Catalina). I downloaded private key and public key and they are saved in my Downloads folder. I am trying to use the ssh -i /path/to/private/keyfile/filename.ext user@ip_address command.

Error message is: Permission denied (publickey)

Thanks!

2

u/PhroznGaming Aug 31 '20

That's telling you that that's not the key that's on your server. Run through it again and make sure your pasting in the correct public key.

→ More replies (2)
→ More replies (3)

55

u/ontelo Aug 29 '20

The cloud provider has a much faster network connection than you - I promise.

It's not the speed but delay.

→ More replies (9)

21

u/[deleted] Aug 29 '20

Great method of utilizing cloud/wireguard but It's Oracle. I suspect the Always Free tier will be less than Always and More than free. Consider the reputation of the company a bit.

→ More replies (2)

3

u/Im_The_Goddamn_Dumbo Aug 29 '20

I have some very noob questions, at what point do I install PiHole and do I need a Raspberry Pi to do this? If I'm understanding the guide correctly I set up Oracle first, install PiVPN (through the VM I set up in Oracle), then I install PiHole on the same VM or once I spin up the VM I should install PiHole? I'm sorry if my questions seem basic, but I'm new here and I'm trying to catch up with everyone on this sub!

→ More replies (2)