News for hackers. Stuff that matters.
Re:Self hosting in 2023 and why you should do that by threeseed on Sunday February 19, 2023 @04:13PM (#34861923)
One thing to be mindful of is security.

The last you want is for your setup to be compromised, be used to send spam/botnets and then getting perma-banned from your ISP.

I would argue it's a lot less risky just to put your static site on S3/Github etc.

Re:Self hosting in 2023 and why you should do that by michalwarda on Sunday February 19, 2023 @04:48PM (#34862198)
As mentioned in the post. I would probably not use this setup with my more "exposing" projects like full web apps.
Re:Self hosting in 2023 and why you should do that by layer8 on Sunday February 19, 2023 @04:58PM (#34862280)
Yeah, I would decouple it from any residential ISP, but use a $4 VPS to still self-host. That also removes the need for a DDNS setup. Given some basic Linux skills, all you need is SSH plus nginx+certbot on Debian with unattended-upgrades or similar, that you can point your domain to.
Re:Self hosting in 2023 and why you should do that by threeseed on Sunday February 19, 2023 @05:17PM (#34862420)
Would recommend Tailscale over SSH.

Really easy to setup/use and means you don't have to open up ports like 22 which are constantly being port scanned.

Re:Self hosting in 2023 and why you should do that by imgabe on Sunday February 19, 2023 @06:43PM (#34863098)
You can move ssh to a different port.
Re:Self hosting in 2023 and why you should do that by indigodaddy on Sunday February 19, 2023 @07:57PM (#34863678)
Anyone who thinks they need to move ssh to a different port likely doesn’t have their ssh security configuration setup optimally.
Re:Self hosting in 2023 and why you should do that by gnramires on Sunday February 19, 2023 @08:11PM (#34863776)
Making it explicit: try to always use keys for ssh, avoid passwords. If you have to use passwords, make it very long (20+ chars) and random. Don't use dictionary words or reuse passwords from anywhere else.
Re:Self hosting in 2023 and why you should do that by indigodaddy on Sunday February 19, 2023 @08:30PM (#34863912)
Yep, and I always additionally just disable pw authentication altogether, and set PermitRootLogin to either No or without-password.

You can also do things like firewalld off (or with hosts.allow) 22 to just an ssh bastion/jumphost src (or your house IP), but I find that’s usually not necessary (although an excellent further step if you are a bit paranoid) as long you do what was mentioned in first paragraph.

Re:Self hosting in 2023 and why you should do that by komali2 on Sunday February 19, 2023 @11:23PM (#34864872)
I don't get it, wouldn't you use ssh keys and also just move it to a different port anyway to save the annoyance of random scriptkiddy pokes all the time?
Re:Self hosting in 2023 and why you should do that by piaste on Monday February 20, 2023 @06:21AM (#34867115)
Moving the port away from 22 changed my fail2ban logs from hundreds of lines a day to one every few weeks at most.

While you shouldn't skip on other security measures, there's no real downside to changing your SSH port and getting off the target list for a lot of botnets.

(As opposed to e.g. port knocking, which is stronger but makes it easy to lock yourself out and may create issues with some SSH clients.)

Re:Self hosting in 2023 and why you should do that by cube00 on Monday February 20, 2023 @07:15AM (#34867396)
There's other reasons to use a different port. I move it to cut down on the failed login attempts (yes they'll never succeed given I only allow keys) but they clutter the log so I can't tell if I'm actually being targeted or not. On an obscure port if I do see attempts I know something serious is going on.
Re:Self hosting in 2023 and why you should do that by saghm on Sunday February 19, 2023 @07:47PM (#34863594)
I'm not familiar with Tailscale, but you can easily use a different port than 22 for ssh if you want to; put a different port number in `/etc/ssh/sshd_config` on the server, and then set your `~/.ssh/config` to use that port on your clients. If you're going to be opening it up externally, you also can map a different port to the local one (which is necessary if you want to be able to ssh into two different servers with the same ssh port from the outside anyhow).
Re:Self hosting in 2023 and why you should do that by doublepg23 on Sunday February 19, 2023 @05:40PM (#34862615)
Indeed. My friend had a crypto miner put on his self-hosted server.

This was merely weeks after telling him to switch to Tailscale, but it was a great learning experience.

Re:Self hosting in 2023 and why you should do that by sdan on Sunday February 19, 2023 @07:04PM (#34863293)
I was running a couple million page views/mo on a cluster of raspberry pis in my parents home a few years back. After some disruptions on my family's network I decided to setup a Wireguard VPN with Docker Swarm and a GCP instance to essentially route from GCP IP address -> Raspberry pi cluster such that my IP wouldn't get leaked and didn't have to worry about dynamic IP addresses

Very hard to do and finicky to setup but at the time was suitable for my needs

Re:Self hosting in 2023 and why you should do that by ed25519FUUU on Sunday February 19, 2023 @09:23PM (#34864266)
Why not sure cloudflare?
Re:Self hosting in 2023 and why you should do that by superkuh on Sunday February 19, 2023 @07:50PM (#34863616)
Using a web browser with JS execution enabled is a lot more dangerous than running nginx showing .html files in directories.
Re:Self hosting in 2023 and why you should do that by ronsor on Sunday February 19, 2023 @09:05PM (#34864158)
If you're using a modern web server like nginx, then you have to really do something wrong to get hacked serving static files.
Re:Self hosting in 2023 and why you should do that by cube00 on Sunday February 19, 2023 @09:45PM (#34864387)
That's not really fair, zero days will always exist.
Re:Self hosting in 2023 and why you should do that by conductr on Sunday February 19, 2023 @11:14PM (#34864832)
What setup is immune to zero days?
Re:Self hosting in 2023 and why you should do that by threeseed on Sunday February 19, 2023 @11:26PM (#34864888)
S3, Github, Netlify etc are going to be infinitely more secure than your home setup.

And are basically free.

Re:Self hosting in 2023 and why you should do that by aembleton on Monday February 20, 2023 @04:37AM (#34866586)
But no more immune to zero days
Re:Self hosting in 2023 and why you should do that by red-iron-pine on Monday February 20, 2023 @02:25PM (#34871769)
theyre not immune to 0-days tho.

they just have more staff on hand to respond, run updates, and do the due diligence of checking and implementing patches.

Re:Self hosting in 2023 and why you should do that by shxdow on Monday February 20, 2023 @05:53AM (#34867009)
In order to be fair, threat models should be taken into account. People seem to be conflating nation state operations using advanced capabilities worth at least hundreds of thousands of dollars to compromise high value targets/infrastructure with "my pet project may get 0 day'd" which is the exact opposite of being fair. Moreover, if the argument is "zero days will always exist" you may as well stop using technology entirely.
Re:Self hosting in 2023 and why you should do that by drpixie on Sunday February 19, 2023 @09:51PM (#34864419)
Agree - an up-to-date system running only nginx and fail2ban is likely to be more secure than some vendor's who-knows-what's-on-it image which exposes various "services".
Re:Self hosting in 2023 and why you should do that by kortilla on Sunday February 19, 2023 @10:01PM (#34864486)
You don’t get perma-banned from your ISP for getting malware. That’s pure FUD.

Far more people (at least 2 orders of magnitude) end up infected with malware and become members of botnets from just clicking dumb shit. They don’t get banned from the ISP either.

Re:Self hosting in 2023 and why you should do that by icedchai on Sunday February 19, 2023 @11:01PM (#34864788)
I had my cable ISP call me a couple times about a business account a few times. I run my own mail server. A POP3/SMTP account got hacked and started sending out spam. They're very polite, professional, ask you to fix the problem and move on.
Re:Self hosting in 2023 and why you should do that by nubinetwork on Monday February 20, 2023 @04:54AM (#34866685)
I'm surprised you got a phone call, when I worked at a tier 2, we would just disconnect you and wait for you to call us instead.
Re:Self hosting in 2023 and why you should do that by red-iron-pine on Monday February 20, 2023 @02:31PM (#34871860)
running your own mail server is an exercise in pain. not sure if you're brave or dumb, but props to giving it a go.
Re:Self hosting in 2023 and why you should do that by icedchai on Monday February 20, 2023 @03:35PM (#34872583)
Heh. I've been running my own since the mid 90's. Originally I worked for some early ISPs, and continued it as a hobby of sorts. (My main personal email is on gmail.)
Re:Self hosting in 2023 and why you should do that by threeseed on Sunday February 19, 2023 @11:24PM (#34864882)
If you're running an email server that is running at full throughput to send spam (due to your clear negligence) from a residential ISP account then depending on what plan you've purchased it may violate your terms of service.

I know of friends who have been banned for doing exactly this.

Re:Self hosting in 2023 and why you should do that by fijiaarone on Monday February 20, 2023 @12:14AM (#34865151)
But you will get banned from your isp if they find out you are self-hosting a blog and photo album shared with family and friends.
Re:Self hosting in 2023 and why you should do that by JohnFen on Monday February 20, 2023 @12:34AM (#34865259)
Depends on your ISP. I use one of the biggest ones in the US, and they won't do any such thing. They don't care if you're running servers at all, unless you start getting a lot of incoming traffic -- then they'll ask you to upgrade to a commercial account or stop it.

I've been running servers used by family and friends from my home for about 20 years now. It's never been an issue at all.