this post was submitted on 08 Dec 2025
81 points (98.8% liked)

Selfhosted

53588 readers
827 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.

  7. No low-effort posts. This is subjective and will largely be determined by the community member reports.

Resources:

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

Questions? DM the mods!

founded 2 years ago
MODERATORS
 

when reading through the jellyfin with chromecast guide i realized that it would probably be less effort to just let the casting api be public, with the added bonus that i could then cast my library to any device that supports it. but that seems like it would paint a giant target on the server.

what's the recommended way of doing stuff like this? ideally i want to be able to go to someone's house and just play some of my media on their tv.

not that any of this is doable in the near future, since i'm behind cgnat and won't get my colocated bounce server up until spring.

you are viewing a single comment's thread
view the rest of the comments
[–] diegantobass@lemmy.world 13 points 4 days ago (7 children)

Dumb question: why does everyone is so terribly afraid of opening stuff to the internet ? What's the scenario?

[–] 4am@lemmy.zip 56 points 4 days ago (2 children)

Allowing external access to your services means that any misconfiguration or bugs can be exploited to gain control of your machine(s).

Once that happens they can be fucked with, your data stolen, your resources co-opted for someone else’s use, etc. and often times it can be made to look as though whatever bad shit it’s doing is your doing.

So, understand your security posture. You can’t be too careful. Taking over weak or exposed machines is a global industry now.

[–] planish@sh.itjust.works 1 points 2 days ago* (last edited 2 days ago)

But you can, in fact, be too careful. Availability is one arm of the security triad.

If whatever complex configuration you have set up to avoid exposing something to the Internet is incompatible with something and what you wanted to do can't be done, or if you look and see that setting all that up would be too hard and don't bother to expose the service at all, then your security posture is incorrect because your service is just as unavailable as if someone else broke it.

[–] Ricaz@lemmy.dbzer0.com 1 points 2 days ago

At the same time, taking over exposed machines has never been more difficult.

[–] rollerbang@lemmy.world 25 points 4 days ago

It starts with being used in a botnet. Then your data can be either erased, corrupted or encrypted against ransom.

[–] lime@feddit.nu 15 points 4 days ago (1 children)

i've set up servers with static ips in datacenter settings before. the way you know you're online is usually that your cpu activity jumps a few percent from all the incoming ssh traffic from russia and china. i don't want to risk anything happening to my home server.

[–] GreenCrunch@piefed.blahaj.zone 6 points 3 days ago (1 children)

so fun to look through the ssh log and see hundreds of attempts...

[–] diegantobass@lemmy.world 2 points 3 days ago (2 children)

Quick question: If I look through the ssh log and I don't see the hundred of attempts, what could be going on?..

[–] GreenCrunch@piefed.blahaj.zone 5 points 3 days ago (1 children)

I am not sure lol. perhaps your ssh port isn't exposed to the internet, or maybe the bots are just ignoring you? maybe your hosting provider has some sort of security process to reject those attempts preemptively?

I have no clue

[–] diegantobass@lemmy.world 2 points 3 days ago

Ignoring ? Nah someone mentionned my ISP might be protecting me uphill.

[–] teawrecks@sopuli.xyz 2 points 3 days ago (1 children)

Are you not actually open to the public internet? Is it running on a nonstandard port? Is it already pwned and something is scrubbing logs?

[–] diegantobass@lemmy.world 1 points 3 days ago (1 children)

Non standard port. But aren't secret chinese hack farm scanning wider than just 22 ? I don't know and deep down believe that it's pawned and scrubbing logs.

[–] teawrecks@sopuli.xyz 3 points 3 days ago (1 children)

The resources required to port scan every port on every IP is generally not worth it. AFAIK they tend to stick to lower ports or popular ports. Unless they're intentionally targeting a specific IP or IP range, they're just looking for low hanging fruit.

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

Low hanging fruits are, in my personal case, pictures of my cats and public domain cultural artefacts.

Industrializing hacking of random servers sounds like a shitty idea at the end of the day...

[–] teawrecks@sopuli.xyz 2 points 2 days ago (1 children)

The ability to generate a bunch of traffic that looks like it's coming from legit, every-day residential IPs is invaluable to disinformation campaigns. If they can get persistence in your network, they can toss it into a bot net which they'll sell access to on the dark web.

A sucker opens insecure services to the open internet every day, that's free real estate to bot farms. Only when the probability of finding them is low enough is it not worth the energy/network costs. I think hosting on non-standard ports is probably correlated with lowering that probability below some threshold where it becomes not worth it...don't quote me, though.

At the end of the day, the rule is not to depend on security by obscurity, but that doesn't mean never use it.

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

This whole thread (that I shamelessly hijacked) is very informative and allowed me to understand that cybersecurity is in practice a mixture of concrete nerdy log books and vague feeling of being under a threshold of worthiness.

I woke up this morning and there was a faint noise coming from the server: immediately thought "ok that's it, it's pawned and become a node in a vast grid of malicious bots"....it was a cron verification of drives

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

Hah yeah, I've definitely pulled the plug on my router before because I wasn't sure what I was seeing.

I mean, cybersecurity I would consider to be a research field. In practice, yeah, it's a bunch of people just doing their best.

I tend to keep everything inside my network and only expose what I need visible on non standard ports, one of those being a VPN. It's not that I couldn't run these services public facing, it's that the people taking the time to constantly update, configure, and auditing everything full time to head off red team are being paid. I don't need to deal with an attack surface any larger than it needs to be, ain't nobody got time for that.

[–] aichan@piefed.blahaj.zone 10 points 4 days ago (1 children)

Missconfigurations allowing bots and shit hacking you. Overblown paranoia mostly if you just take some precautions

[–] diegantobass@lemmy.world 6 points 3 days ago (2 children)

Okay thanks for mentionning overblown paranoia, that's what I have.

What kind of exploitable server misconfigurations are we talking about here?? Brute forcing won't work because fail2ban, right? I'm a noob and deep down I'm convinced that my homeserver is compromised and has beenpart of a bitcoin mining farm for years... Yet, not a single proof...

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

my homeserver is compromised and has beenpart of a bitcoin mining farm for years

The very first Linux server I deployed on a VPS was hacked almost immediately because of my ignorance. The bot gained entrance, and they supplanted a miner rig. Now, on a tiny VPS, it's pretty easy to tell if you're running a coin miner because all of the resources will be pegged. However, I got to thinking, on a corporate server, if they did manage to do this, it would almost be undetectable until someone started reviewing logs.

[–] Ricaz@lemmy.dbzer0.com 1 points 2 days ago* (last edited 2 days ago)

Corporate servers will usually have some degree of SIEM implemented, and at least automatic audit log monitoring.

[–] LiveLM@lemmy.zip 6 points 3 days ago* (last edited 3 days ago) (2 children)

I'm paranoid dude, I don't need the whole world judging my awful taste in TV shows!

[–] gdog05@lemmy.world 2 points 3 days ago

I set up Jellyseer so my friends can request whatever. Just blame your full collection of My Little Pony and Gilmore girls on that one friend from Finland (unless you're in Finland, and then use Greece).

[–] Danitos@reddthat.com 3 points 3 days ago

The first thing I opened to the internet was a SSH server. 28 minutes after opening it, I started getting constant entry attempts.

[–] FreedomAdvocate 3 points 3 days ago (1 children)

It’s not just opening stuff to the internet, it’s opening stuff to the internet without any authentication in this case. If you don’t know how that’s bad…….

[–] diegantobass@lemmy.world 2 points 3 days ago* (last edited 3 days ago)

Yeah sorry I missed the part where it has no authentification whatsoever, that's just open bar.

Authentification + monitoring + fail2ban + ip blacklist