this post was submitted on 26 Aug 2023
23 points (100.0% liked)

Self Hosted - Self-hosting your services.

11401 readers
1 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

Beginning of January 1st 2024 this rule WILL be enforced. Posts that are not tagged will be warned and if not fixed within 24h then removed!

Cross-posting

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

founded 3 years ago
MODERATORS
 

For example, I prefer to use a VPN instead of port forwarding. And I use SSH for anything I used to use an FTP for.

all 12 comments
sorted by: hot top controversial new old
[–] [email protected] 10 points 1 year ago

I share services with the public, so... strong passwords on everything, MFA, host scanning, SSH MAC/KEX/ciphers tweaked to ultra modern set and exposed only with keys with f2b activating on first failure, constant backups and automatic updates and scheduled reboots. Has worked great for a decade+.

[–] ASK_ME_ABOUT_LOOM 8 points 1 year ago

SSH key auth for terminal login, plus an nginx proxy and client cert auth on anything accessible by the outside world. I'll expose any internal service I want because nobody is getting through the client cert auth.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago)

I use a non standard ssh port, Fail2ban, wiregusrd vpn for some services

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago)
[–] [email protected] 2 points 1 year ago

TOTP MFA highly recommended on SSH and webconsole. The so called "google-authenticator" makes it easy and despite the name does not use any external Google services.

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

IP whitelisting

How do you do that? I understand how blocklisting would work but how does whitelisting work in practice? How can you know in advance from which IPs you will connect to your home network in the future? That just seems like a recipe for getting stranded in some hotel without a way into your network.

[–] Dogeek 1 points 1 year ago

You could host a proxy on a vps, somewhere, and use that vps ip address for the whitelisting. At this point setting up a VPN sounds more convenient though

[–] [email protected] 1 points 1 year ago (1 children)

Blacklist everything then whitelist the IPs you know you'll be connecting from (work, cell phone, etc). I don't connect from random places usually. If I need to then I use cellular. You might be better off with a VPN if you need to connect from random places.

[–] [email protected] 1 points 1 year ago (1 children)

Blacklist everything then whitelist the IPs you know you’ll be connecting from (work, cell phone, etc). I don’t connect from random places usually. If I need to then I use cellular. You might be better off with a VPN if you need to connect from random places.

I see, thanks!
Is there any concern with whitelisting a cellular CGNAT's public IP? Presumably that would potentially whitelist thousands or tens of thousands of other mobile devices at once, wouldn't it?

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

Is there any concern with whitelisting a cellular CGNAT’s public IP?

It depends on how much you decide to whitelist. In my case I whitelist my cellular carrier's IP block. Which does expose those services a little more broadly but I'm willing to risk it.