PiVPN + Pi-Hole installation let crashes the Raspberry

The 10 digit code is the token that we use to access your uploads on the Tricorder server. So every upload will generate a new token.

If you'd like us to take a look at a log or an upload to see what we can find, you'll have to post the token here for us. It's a secured system, even if everyone knows your token there are only 5 people that can currently see anything on Tricorder.pi-hole.net. (You can check that by going to that server and you'll see that you are unable to log in as you don't have the proper credentials.)

Yes, That was a bit stupid of me.

A new try. I hope everything went well now.
The token is: 9y09g8nixe

Thanks.

The information uploaded was just the path to a file about your firewall...it wasn't a full log file. Will you try again?

I used this command: echo /home/pi/Documents/Firewallrules.txt | nc tricorder.pi-hole.net 9999

Then I got that token en post it.

You need to cat the file's content to be uploaded; when you used echo it just uploaded the file path to the server. Try again with

cat /home/pi/Documents/Firewallrules.txt | nc tricorder.pi-hole.net 9999

and post the debug token.

I tried that too. But then I get back:
cat: /home/pi/Documents/Firewallrules.txt: No such file or directory Use netcat.

Does

cat /home/pi/Documents/Firewallrules.txt

actually output the contents of the file? It looks like that file doesn't exist.

Apparently I have to put the extension .txt at the end of the file.
So I did that, and now got a token:

cxm2mojf87

Thanks.

I've been traveling a lot lately and haven't had a chance to check what was going on here. You you please re-upload your file?

Background: Our backend deletes any uploaded data after 48 hours, so I cannot access the data using your token, anymore. However, I should have time to look at your file on Wednesday.

No probs. I uploaded it again:

1tlfqlukqk

Thanks.

Okay, I finally came around to look at your file before it expires (in 20 minutes :sweat_smile:).

  • These rules do only protect your Pi-hole if it is connected over wlan0, but not over wired connection. Are you using wireless upstream connection only?
  • These rules will not allow you any SSH access, except from an address in the range 10.10.10.*
  • HTTP and HTTPS (ports 80 and 443) won't be protected (accessible both over wlan0 and tun0). The protection has to be on the router level.
  • DNS won't be available on wlan0, only though the VPN. Is that intended?

Thanks for looking to the file.
See my answers under yours.

The rest of the rules looking good? Nothing is missing?

The reason I use PiVPN is that PiVPN gives the possibility to use a password in the OVPN config files. For so far I know OpenVPN does not.

FWIW- here is an openvpn server implementation with password authentication:

I'm currently running it on a regular Ubuntu 14.04 server but I don't see any reason why it should not install on a Raspberry Pi.

The installer is not quite as nice as Pihole's/PiVPN's but It comes with a nifty web UI for managing openvpn users and downloading openvpn client config files. I'm going to attempt to get this running in harmony with Pihole tonight and will report back.

From what I've seen everything should be fine anyhow as your router is hiding the Raspberry as long as there are no rules (as you said). What you add is only adding some security in a place where you will (most likely) never need it.

Yes, that is what I meant.

Could someone please explain the basic steps in order to install both pihole and pivpn. For the pihole, what dns server should I use and what for the pivpn. After installing both of them should I continue with the extra step of the recommended tutorial?

This should help:

I think you just setup Pi-hole normally and then install PiVPN afterwards (I haven't done this before though).

That's exactly what I did, and it "just worked". I simply configured the LAN IP of the Pi-Hole system as the DNS server, I didn't do anything else special.

1 Like