this post was submitted on 26 Apr 2024
248 points (91.9% liked)

Programming

17517 readers
350 users here now

Welcome to the main community in programming.dev! Feel free to post anything relating to programming here!

Cross posting is strongly encouraged in the instance. If you feel your post or another person's post makes sense in another community cross post into it.

Hope you enjoy the instance!

Rules

Rules

  • Follow the programming.dev instance rules
  • Keep content related to programming in some way
  • If you're posting long videos try to add in some form of tldr for those who don't want to watch videos

Wormhole

Follow the wormhole through a path of communities [email protected]



founded 1 year ago
MODERATORS
 

For most personal projects, hosting on the cloud may be overkill, but tempting with its supposed ease of use and benefits of scale. Self-hosting is often overlooked as a solution with the benefit of simplicity and cost.

Interesting discussion and demonstration of self hosting the kinds of apps most personal projects will end being.

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 14 points 7 months ago (8 children)

I would really like to mess around with self-hosting someday, but I live in a residential area and those sort of shenanigans are explicitly banned by my ISP. Is there anything someone in that position can do?

[–] [email protected] 25 points 7 months ago (1 children)

Your ISP bans self hosting? I've never heard of that before.

[–] [email protected] 31 points 7 months ago (2 children)

It used to be extremely common as a way of forcing people onto more expensive “business” services.

[–] [email protected] 5 points 7 months ago (1 children)

Wow that's messed up. I guess the only recourse then would be to ask someone or some local business if you could setup the server there for a fee, but at that point just use a cloud service provider and it's the same experience for about the same cost.

[–] [email protected] 5 points 7 months ago (1 children)

I was afraid that might be the case... Definitely pretty messed up, but with the state of ISPs around here it's not surprising either. This guide is super awesome though, I'll use it if I ever get a chance to!

[–] [email protected] 3 points 7 months ago

I sure hope so friend! All the best of luck in the meantime!

[–] [email protected] 2 points 7 months ago

That's crazy.. I once changed to a business plan to get more reliable support and it was actually cheaper.

[–] [email protected] 9 points 7 months ago* (last edited 7 months ago) (1 children)

My local ISP is the same, no static ip without a business plan.

So I use cloudflare tunnels now and they can pound sand

Edit: tail scale funnels could also be a good option

[–] [email protected] 4 points 7 months ago (1 children)

Why do you need a static ip? For a business case I get it. But for most stuff... Dns is there for a reason.

[–] [email protected] 2 points 7 months ago (2 children)

Because when my IP address changes all my websites stop point to the services. Unless I go and change the A record in my DNS every time that happens, which is frustrating and annoying. Cloud flare tunnels fixed that for me so that no matter what happens my domains are fixed to the local host services in my machine with no port forwarding and no DNS maintenance

[–] [email protected] 3 points 7 months ago (1 children)

Because when my IP address changes all my websites stop point to the services

Stuff like no-ip and dyndns exist for that specific usecase.

[–] [email protected] 3 points 7 months ago

Exactly this. I've been using afraid dns for over a decade. Easy to setup and is basically instant.

[–] [email protected] 2 points 7 months ago

I have a static IP now, but I used to have a script in my cron that would update the IP address my Cloud Flare points to if it needed to. It was super easy.

[–] [email protected] 8 points 7 months ago (2 children)

How seriously do they take it? I've been self-hosting stuff for...well for a long time, and It's been against my tos for almost all of it. The only issue I've had has been blocked outbound port 25.

[–] [email protected] 4 points 7 months ago (2 children)

That's what I've been wondering, like can I just do it anyway? I have Verizon FiOS gigabit, for reference. If they really just don't care then I don't mind violating TOS at all, but I wasn't sure if they do or not

[–] [email protected] 7 points 7 months ago

"Maybe." You'd have to try and see. I've mostly been on the cable networks so YMMV. The first issue would be if they block commonly used ports which should be fairly easy to test.

[–] [email protected] 2 points 7 months ago

ive never heard of anyone even getting a warning about hosting anything on a residential connection.. many isps have verbiage about not doing it, but i don't think any of them actually care because generally your upstream on a residential connection are so low it doesn't matter if you saturate it often

[–] [email protected] 2 points 7 months ago

Yea and no one should be hosting their own mail server anyway. Just a massive headache.

[–] [email protected] 5 points 7 months ago

If only you and your family are using a service it’s better not to open ports to the public internet anyway. Tailscale or another VPN will solve this nicely and your ISP won’t be able to tell aside from bandwidth usage

[–] [email protected] 4 points 7 months ago (1 children)
[–] [email protected] 1 points 7 months ago (1 children)

I've heard of options to get around the lack of static IP, but will something like this also keep my ISP off my back about hosting? If so I'm onboard!

[–] [email protected] 2 points 7 months ago

Given that the domain of the site that you've made resolves to a Tailscale relay server IP, I don't see how the ISP would get alerted. Unless you're getting huge amounts of ingress traffic to your home IP.

[–] [email protected] 3 points 7 months ago

You might wanna read that fine print again. I'm betting they only disallow self hosting for business purposes.

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago) (1 children)
[–] [email protected] 4 points 7 months ago (1 children)

Pennsylvania, U.S.A. I hear it's a fairly common policy here but does vary from provider to provider. As I understand it, most areas in the U.S. have at most 2 ISP companies to choose from, and many only have 1. So they can kinda set whatever BS policies they want.

[–] [email protected] 2 points 7 months ago* (last edited 7 months ago)

Wtf isn't that against freedom of expression big time? Didn't expect the US as you guys are typically really strict on that.

[–] [email protected] 2 points 7 months ago

I run an opnsense firewall with dynamic DNS to cloudflare. I have owned a domain for decades and I have it point home. Recently I gave up inbound NAT. Now I just use wireguard. It's performant and my phone automatically kicks it on it I'm off my Wi-Fi network. And I've significantly reduced my attack surface.