this post was submitted on 07 Aug 2025
17 points (94.7% liked)

Self Hosted - Self-hosting your services.

15346 readers
3 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

Important

Cross-posting

If you see a rule-breaker please DM the mods!

founded 4 years ago
MODERATORS
 

I'm in the process of setting up homelab stuff and i've been doing some reading. It seems the consensus is to put everything behind a reverse proxy and use a vpn or cloudflare tunnel.

I plan to use a VPN for accessing my internal network from outside and to protect less battle tested foss software. But I feel like if I cant open a port to the internet to host a webserver then the internet is no longer a free place and we're cooked.

So my question is, Can I expose webserver, SSH, WireGuard to the internet with reasonable safety? What precautions and common mistakes do I need to watchout for.

you are viewing a single comment's thread
view the rest of the comments
[–] thecoffeehobbit@sopuli.xyz 2 points 5 days ago (2 children)

This post considers the situation where you expose your ports to the internet, on the edge of your residential network, for example by setting your router to forward requests with port 443 to a certain host in your network. In this case you do have a public ip address and the configured port on your home server is now reachable from the internet. This is different from just exposing a port on a machine inside a residential network for local use.

[–] Auth@lemmy.world 1 points 2 days ago (1 children)

If you set your router to only forward traffic from port 443 to a certain host does this drop all non port 443 traffic to that host?

[–] thecoffeehobbit@sopuli.xyz 2 points 2 days ago

I'd expect so, but you'll need to test with your exact router model how it behaves. Some have a 'DMZ' function that you can use to pass all ports to a certain host. I use it to expose the WAN interface of my opnsense router to the internet through the ISP router. Then I can fine tune the open ports further in opnsense which is better designed for that than the usual ISP box.