A recent post here about 4th July sales has made me consider buying a VPS but the cost still seems a little steep. What are the main advantages of using a VPS?
Story time. Apologies for the length, but consider it a cautionary tale.
I have my own email server. I have been hosting my own email since around 2001. It used to be hosted on a box in my house, which was fine since I had a “business” plan from the cable provider giving me a /29 and no port blocking.
One summer, I moved from a 1 bedroom apartment to a 2 bedroom. Awesome, now I have a room dedicated to computer stuff instead of having it in the living room.
Just after moving I went on a 2 week vacation. About 2 days in I was no longer able to access my email server. Could not ping the ip or anything. I had someone go to the apartment to check the console. Nothing wrong, just no internet access. Hmmm. Maybe my router is broken. I wasn’t going to subject the person looking at it to debugging it, so I figured I would deal with it when I got back.
Aside: my domain is hosted at EasyDNS, which has a “backup MX” service. If my mail server ever went offline, they would hold emails for up to 9 days and flush them into the real one once it came online. Since I would be away for longer, mails would start bouncing back to the original hosts. I contacted their support to see what they could do. The owner of the company even jumped in and they were able to redirect all of the past and future emails on their MX cache to my work email until I could resolve the problem. Brilliant. I remain a customer for life.
Anyway, when I got back I found that the problem was not with the router but the cable company. As it turns out whoever was in the apartment before I moved in didn’t pay one or more bills. A disconnect got scheduled despite the fact that a business account had moved there. The departments don’t talk to each other it seems. I got a partial refund but I immediately realised i could no longer host email at home.
I found a hosting company offering Xen paravirt VPSes here in Canada. They did not offer the distro I wanted so I contacted them and mentioned I can provide the image. They were happy to let me do it. In fact, they had other requests from other potential customers and asked if I could handle them. Long story short I now own half the company. The VPSes, no longer Xen, are all highly available thanks to Ceph and Pacemaker, and my mail server continues to run without any real interruptions.
All of that said, I do self host certain things. Anything used at home including home assistant, static websites, etc. are all running off my 5-node home cluster running the same stack. My current connection is generally quite reliable, since it’s fiber from the local telco, and I have bypassed their awful CPE. I also have a variety of VPSes around for multiple reasons, such as backup, DNS, routing IPv6 for my personal AS, etc.
The moral of this story, of course, is that you should assess how important whatever you are hosting. Do you want it to run when you are not able to get to your house? How much do you trust your internet provider? Also, how much do you trust your VPS provider?
Depends on what you want to do and how technical you are.
Main advantage of hosting on your own hardware from home are cost and ease of access. Main drawback is that you need to give acces to your home network when you want to provide services. When you know what you do and your connection is fast enough, that isn’t a problem.
The main advantage of a VPS, which you rent instead of buy, is the flexibility and keeping security threats out of your home network. You can activate one for the service you like to provide, keep it alive until you don’t need it and have it detstroyed. Security issues may exist, but they are out of your home network. In the long run they are more expensive.
You can also combine both, host some services locally (RPi or a nuc) and some remote on a vps.
Here I run several personal websites local, but the DNS of my domains, incoming email and business websites are hosted on a set of VPS’es (set as you need 2 for dns). All websites are static, no management software what so ever, as most are (huge) security risks. For email I use the main VPS as 1st line of defence. Spam and virus scanning is done there.
I could use my RPis to do all locally, but I prefer to have DNS and email externally. Also, my only surviving client would be leaving when I run everything from home. (He’s basically paying for the servers, I just keep them running, pay for them and send the bill ;) )
When just ‘messing around’ a VPS is advisable, as you can trow it away and try again when you mess up. ;)
That’s really helpful thanks. My main reason for considering switching is for availability when outside of my home. I know I could port-foward but I am concerned about the security risks of that. I might buy one for just a month or two to see how it might help