this post was submitted on 30 Jul 2024
20 points (88.5% liked)

Selfhosted

60426 readers
239 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

Detailed Rules Post

  1. Be civil.

  2. No spam.

  3. Posts are to be related to self-hosting.

  4. Don't duplicate the full text of your blog or readme if you're providing a link.

  5. Submission headline should match the article title.

  6. No trolling.

  7. Promotion posts require active participation, with an account that is at least 30 days old. F/LOSS without a paywall has exceptions, with requirements. See the rules link for details.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 3 years ago
MODERATORS
 

I'm strongly considering adding another backup location in the form of an old Raspberry Pi and a USB HDD.

I want the Pi to exclusively use the available network to connect to my Wireguard Server, so other devices (local to the Wireguard Server and remote connected to the server) can use it as a secondary backup location.

I'm kind of worried about a scenario, where my network is compromised and, through the VPN connection of the Pi in the external network, the external network is as well.

What are the best practices to secure such a setup?

you are viewing a single comment's thread
view the rest of the comments
[–] jet@hackertalks.com 6 points 2 years ago (1 children)

This is a exercise in network DMZ planning. Assume the NAS will be compromised, so you limit its access to the rest of the network.

put the NAS on its own VLAN in both locations, setup firewall rules so that only select protocols are allowed to/from the NAS.

[–] Emotet@slrpnk.net 1 points 2 years ago (1 children)

That'd be the gold standard. Unfortunately, the external network utilizes infrastructure that doesn't support specifying firewall rules on the existing separate VLAN, so all rules would have to be applied on the Pi itself or on yet another device between, which is something I'd like to avoid. Great general advice, though!

[–] Trainguyrom@reddthat.com 5 points 2 years ago

so all rules would have to be applied on the Pi itself

Sounds like you'll want to setup IPTables