this post was submitted on 23 Jun 2023
68 points (98.6% liked)

Selfhosted

40263 readers
1166 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 1 year ago
MODERATORS
 

Hi all, I'm running a small website off of a raspberry pi in my house. I have opened ports 80 and 443 and connected my IP to a domain. I'm pretty confident in my security for my raspberry pi (no password ssh, fail2ban, nginx. Shoutout networkchuck.). However, I am wondering if by exposing my ports to the raspberry pi, I am also exposing those same ports to other devices in my home network, for example, my PC. I'm just a bit unsure if port forwarding to an internal IP would also expose other internal IP's or if it only goes to the pi. If you are able to answer or have any other comments about my setup, I would appreciate your comment. Thanks!

you are viewing a single comment's thread
view the rest of the comments
[–] kamaii 24 points 1 year ago (3 children)

I have my services proxied through nginx and behind cloudflares free tier. That way I don't have to worry about my IP getting exposed and opening myself up to DDOS/DOS attacks, which is a genuine threat if you do things that piss people off (I'm an admin on a popular minecraft server).

[–] [email protected] 5 points 1 year ago

You can use Cloudflare Tunnels too, so that you don't even need to port forward.

[–] Darnov 4 points 1 year ago

It’s 2023, the threat is there regardless if you piss anyone off. We’re all commodities that can/will be exploited for capitalistic gain.

[–] gccalvin 0 points 1 year ago (1 children)

I looked into nginx for minecraft, but minecraft doesn't use http headers, so I'd have to open minecraft ports on the router. Would this alleviate that? What's the difference between this setup and using something like a cloudflare tunnel? Obviously, there is still some reliance on Cloudflare.

[–] kamaii 2 points 1 year ago* (last edited 1 year ago) (1 children)

https://tcpshield.com/ they have a very generous free tier. It requires spigot/bukkit plugins or a velocity plugin (velocity is a Minecraft proxy, think of this as NGINX for minecraft).

[–] gccalvin 1 points 1 year ago