

Tl;Dr: do not use port 22 for anything, unless you are running crowdsec. Passwordless login with SSH keys is a good idea but use a different port than 22 for the love of Glob. VLANS, and multiple APs. HA blocking IoT things from the WAN. Pihole, unbound, and DoT. Always look for more security.
When I first started to try home labbing I had pihole and CUPS. Like an idiot I wanted to be able to ssh into my things away from home, in hopes of being able to use things when away from home, so I opened port 22 on my ISPs joke of a firewall. Before I really had an oppertunity to try ssh with DuckDNS my network became very slow, I did not think much about it but after a failed attempt with ssh and DuckDNS I decided to call my ISP and see what was up. That is when I found out if you want your ISP to update the software on the modem all you need to do is open port 22 and call and ask why your internet is slow. After realizing what I had done I went through all of my computers and things seeing what needed to be reformated and what not.
This put me off of home labbing for several years and something happened in 2020, can’t remember what it could have possibly been? /s
This time it was going to be different I was still using pihole and CUPS but I wanted to do so much more so I stayed behind my ISPs firewall opening other ports that are not 22, I did not get knowingly attacked so I was fine. The more and more services I added the more and more ports got opened, because I am an idiot who followed guides without thinking about my lab as a whole, internet got slow again so ISP flashed the firewall and I spent some time learning about internet security. I was sure it was not SSH because I had not opened port 22 so I wrote down everything I was using and flashed the pi SD cards (at this point all I had were SBC’s my iPad and iPhone) and started again. First things I did was change the SSH port, turn passwordless login on, and create keys. Than I went back into homelabbing when I got back into adding more of services back other than CUPS and pihole I thought about which ports where being used and started tip toeing into docker. Come to this year and half of my place flooded so having nothing better to do I jumped into the deep end of home labbing but I was going to be more secure so I got a Flint 2 firewall so I could flash it with a vanilla install of OpenWRT, set up rules and vLANs, made sure all of my IoT thingies where on their own vLAN and talked to HA rather than the WAN, created multiple APs, being very scared I kept port 22 open on my firewall but forwarded it to a pi running crowdsec, and swore I would continue looking for more security things. I came across someone talking about DoH probably in a community on Lemmy so I went searching if pihole and unbound could do DoH, saddly it cannot however it can do DoT so I jumped on that forcing all the DNS through 853 so if whatever gets on my system cannot do 853 for DNS it cannot get out.



My retired Mac Mini was from 2014 so it is x86, the hand me down Mac Mini I will be getting soon is from 2018 so it to is x86. I do not have the money to get custom made RISC-V chips or boards, well let me take that back I have a Rock something rather SBC that I am not using that has a RISC-V chip on it, I have to take the time to actually get to learn it and make sure I understand it before I use it but everytime I think I have learnt about it something comes up and it gets put on the back burner. I have thought about sticking an old G4 imac into my kitchen running a linux distro just for the hell of it replacing the stripped down iPad I have a HA kiosk on because it could do so much more.
I do a lot of other things for security though to spare you with the details I will keep my long story short; I do not use port 22 for SSH for anything other than my firewall and a pi zero 2 running crowdsec. I have passwordless login turned on but require a key for ssh. I use a vanilla OpenWRT which has vLANs for for all kinds of things, and multiple APs. All my IoT things go to HA which and have no access to the WAN. I have unattended upgrades on all of my devices installed and turned on but even with that I have a crontab making sure everything else is kept up to date. I have 2 piholes with unbound and using DoT, preventing anything that cannot use port 853 for DNS to not have access to the WAN. I am sure there are other things I do on my homelab that I cannot think about right now.
For privacy keeping the long story short again: Like I said I have the pihole setup, I have the firewall with vLANs and APs but I have VPNs letting me use my LANs security. I have Vaultwarden so that I have seperate passwords for everything, along with passwords I have a separate email address for almost everything. I have almost no subscriptions, I use searXNG, I have gone to the extreme and I self host pretty much everything (even a public transit monitor). I do a soft credit check every month, to make sure my ID has not been stolen again. Again I am sure there are other things I am doing but cannot think of them right now.