this post was submitted on 05 Jul 2023
120 points (97.6% liked)

Selfhosted

38773 readers
1255 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
 

Lot of sales for 4th of july (and ongoing ones) where you can pay $10-$14 for a YEAR of a small cheap VPS. Usually only has 1GB of memory, but that's plenty to play around with and learn. If nothing else, a good cheap ipv4 you can use for some port forwarding. There are lots of options, but I've used racknerd and ethernetservers which have been fine.

I have my own server at home, but I bought two small ones to start learning Ansible with in a risk free way. Eventually plan to redo my main server with a complete Ansible setup, really want to hop on that "infrastructure as code" train.

you are viewing a single comment's thread
view the rest of the comments
[–] trifictional@lemmy.world 18 points 1 year ago* (last edited 1 year ago) (6 children)

Another Pro tip:

If you really want to self host and have good internet speeds, then just use a dynamic dns service to point a domain at your home network :)

It’s free minus the power costs. Sure you won’t be able to guarantee availability but for most personal(and friends/family) use it’s more than good enough.

I say this because the reason a lot of people use VPS is because their ISP won’t give them a static IP. You don’t need a static IP.

[–] balance_sheet@lemmy.world 6 points 1 year ago (5 children)

Another tip: IPs don't change that often than you think. It is static as long as you have a constant connection, which is almost always the case when you use a router. Ensure that the router has little to no downtime and you have a semi static ip address(I have mine for +2 years now). But it is strongly adviced to have some kind of solution in case it actually changes.

[–] Amcro@lemm.ee 5 points 1 year ago (2 children)

I think it depends on the ISP. In my country (Croatia) most of the ISPs, if not all, change your IP address every 24h no matter what. You can force the IP change when you restart the router so if I restart mine at 2am it will change my IP every day at 2am.

[–] balance_sheet@lemmy.world 4 points 1 year ago (1 children)

If you just can't avoid the IP changes, that can be a vaild option. Thank you for your insight!

[–] Amcro@lemm.ee 4 points 1 year ago

God, i love how nice everyone is on lemmy right now.

[–] Auli@lemmy.ca 2 points 1 year ago (1 children)

What OS? I run a Linux router that when the IP changes it just updates the DNS record. Worst case I'm down for 5 minutes. But have never noticed anything.

[–] Amcro@lemm.ee 2 points 1 year ago

Oh my server is running through cloudflare tunnel so im not affected by ip change at all. Im actually running default ISPs router it’s actually pretty nice and does the job for me.

[–] Auli@lemmy.ca 2 points 1 year ago

Depends on Canada my cable did not but my fiber bother the ipv4 and 6 change enough that I wrote scripts to update the DNS records.

[–] lka1988@lemmy.world 2 points 1 year ago

I had the same IP address for almost four years through Spectrum in Upstate NY, on a residential plan. It changed once. I ended up moving anyway though, so I didn't get to see how long that one stuck around.

[–] rarkgrames@lemmy.world 1 points 1 year ago

I’m with BT in the UK and whilst this is somewhat true (as in if we lose power my ip normally changes) my ip does change from time to time for no apparent reason.

I have dynamic DNS set up for my services so it’s not a major pain but I do wish I had a true static IP.

[–] Twitchy1@lemmy.fmhy.ml 1 points 1 year ago

For several years I connected to my home surveillance cameras via dynamic IP. It went months at a time without change, very infrequent. Created a tasker profile, android app, to pull IP daily when my alarm went off in the morning. If IP changed I would get a notification with the new IP address. I could then reconfigure my connection when needed.

[–] xavier666@lemm.ee 6 points 1 year ago* (last edited 1 year ago) (2 children)
[–] Bluefruit@lemmy.world 8 points 1 year ago (1 children)

I was right there with you and did a vpn tunnel with cloudflare. Not a perfect solution but it works well for my jellyfin server.

https://www.cloudflare.com/products/tunnel/

[–] xavier666@lemm.ee 3 points 1 year ago

Yeah, but your speed is limited by the tunnel. My ISP has excellent upload speeds otherwise (140 Mbps).

I checked with my ISP, they said they will give me a static IP but it will cost around $15 per month along with my internet cost. I'd rather just get a VPS.

[–] Protegee9850@lemmy.world 2 points 1 year ago

Seriously. Even better when they just turn it on one day without warning because they can’t handle building out infrastructure to suit their growing customer base. Bastards.

[–] LynneOfFlowers@midwest.social 2 points 1 year ago

One thing to look at if you're going this route is whether your router supports NAT loopback (a.k.a. NAT reflection or NAT hairpinning). This feature means that you can access your server via the external IP (and therefore via the ddns domain name) even from within your network. It's really useful for phones and laptops that might be on your home network at some times and off somewhere else at other times, so you don't have to change configurations on e.g. the Nextcloud client, or remember to type in different addresses inside and outside the network. Some routers just do this, some don't, some it's a setting you have to turn on. The router built into my ISP-supplied cable modem didn't support it so I got my own router and put the ISP one into bridge mode.

[–] kensand@lemmy.kensand.net 2 points 1 year ago

Even still, you can get a small VPS and connect a VPN between it and your LAN, using it as a gateway with a static IP.

Gotta watch out for bandwidth limitations and data caps on small VPS like that though.

[–] beeb@lemm.ee 2 points 1 year ago (1 children)

If your domain is registered with cloudflare, they have an amazing tunnelling service that is free to point your domain to your own device at home!

[–] ThorrJo@lemmy.sdf.org 3 points 1 year ago

For people who don't like cloudflare, it's also possible to self-host your reverse proxy, using e.g. nginx on the front end, and rathole or frp for the reverse tunnel. I use ssh if I need a forward proxy too (so outbound requests don't come from my "real" IP) and that's not super ideal, but it works.

This is of course considerably more difficult than something that's point-and-click, but for me, using Cloudflare defeats the purpose of self-hosting.

I have built & rebuilt such a setup several times now and it gets better documented every time, soon I'll release a step by step HOWTO.

[–] Cyclo@lemmy.ml -1 points 1 year ago* (last edited 1 year ago) (1 children)

Please get familiar with your ISP's TOS before doing that.

[–] trifictional@lemmy.world 14 points 1 year ago (1 children)

I pay them nearly $100 a month for internet. They can get fucked if they want to dictate what legal things I do with it.

[–] Cyclo@lemmy.ml 2 points 1 year ago* (last edited 1 year ago)

It doesn't matter how much you pay them. When you signed the contract you accepted their Terms of Service. Of course they can dictate what they want, you are free to go and choose another provider.