this post was submitted on 08 Dec 2024
37 points (91.1% liked)

Selfhosted

40708 readers
460 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:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

As the title says...

Is this a risky thing?

EDIT: I have a wireguard VPN set up for myself and it's always on so I can access *arrs and the like. I would like to expose immich on my domain to share photo albums and such.

you are viewing a single comment's thread
view the rest of the comments
[–] chronicledmonocle@lemmy.world 11 points 2 weeks ago (2 children)

Best solution is a VPN to your home network.

However, if you want to host it publicly, at least restrict access to it via GeoIP. For example, if you live in Europe and only need access from there, only allow the areas in Europe you travel to and block everything else. This will greatly reduce your attack surface.

Also, make sure everything is patched. Always. And implement something like fail2ban to deny repeated failed logins, along with a reverse proxy.

[–] possiblylinux127@lemmy.zip 4 points 2 weeks ago

Best solution is using a mesh VPN service like Tailscale or Netbird

[–] jws_shadotak@sh.itjust.works 3 points 2 weeks ago (1 children)

GeoIP restricting is a brilliant idea I never thought of. I have been getting a few people trying to sign up on one of my other services and they're all from Asia somewhere.

I'll try setting this up.

[–] chronicledmonocle@lemmy.world 4 points 2 weeks ago (1 children)

Sweet. Both OPNSense and pfSense firewalls have the ability to tie into MaxMind's GeoIP service. Not sure what your perimeter device is, but it's pretty easy on those. And free.

[–] Appoxo@lemmy.dbzer0.com 1 points 2 weeks ago (1 children)

If you use Cloudflare as the domain-DNS I'd rather use them as the GeoIP filter.

[–] chronicledmonocle@lemmy.world 1 points 2 weeks ago (1 children)

Yes, but OP mentioned nothing about Cloudflare.

[–] Appoxo@lemmy.dbzer0.com 2 points 2 weeks ago

Doesnt hurt to mention though in case others come across this discussion, no?