Stopping Most Basic Hack Attempts (SSH,WHM,Wordpress)
Posted: 02 Jul 2017, 17:22
So there's basically three hack attempt strategies on my server I'd like to just stop.
SSH login - I know IPs get blacklisted after 5 failed attempts within x minutes, but I only SSH in from a handful of IPs. There's a chance some of these IPs will lose their DHCP reservation and change, but I have at least one static IP. So I assume best solution is to remove port 22 from the allowed ports and whitelist my IPs I used to login via SSH. Sometimes I'm roaming around with my laptop though and so I guess the only solution there is to use VPN to get on a whitelisted IP (or LogMeIn to access local whitelisted machine but this isn't as clean of a solution as VPN), One interesting thing I tried was to restrict access only from US IP Addresses as this is a extranet application server, don't need to serve web pages to the general world public. But BOY, did that make CSF run SLOW!
I'm considering public key authentication but frankly this isn't a server that is hosting any critical info like payment info, social security numbers. So the hassle of setting that up may not be worth it. I suppose I could also do port knocking.
WHM login (port 2087) - Getting in here is almost as bad as if you got into via SSH on root. I assume same solution as above.
Wordpress hacks - CSF/LFD help mitigate some of those. I tested plugins and most were pretty heavy handed and overlapped with CSF/LFD. I did find iThemes Security plugin you could turn off most everything you didn't want to eliminate overlap with CSF/LFD. Anyone recommend a different Wordpress security plugin to use in conjunction with CSF/LFD?
SSH login - I know IPs get blacklisted after 5 failed attempts within x minutes, but I only SSH in from a handful of IPs. There's a chance some of these IPs will lose their DHCP reservation and change, but I have at least one static IP. So I assume best solution is to remove port 22 from the allowed ports and whitelist my IPs I used to login via SSH. Sometimes I'm roaming around with my laptop though and so I guess the only solution there is to use VPN to get on a whitelisted IP (or LogMeIn to access local whitelisted machine but this isn't as clean of a solution as VPN), One interesting thing I tried was to restrict access only from US IP Addresses as this is a extranet application server, don't need to serve web pages to the general world public. But BOY, did that make CSF run SLOW!
I'm considering public key authentication but frankly this isn't a server that is hosting any critical info like payment info, social security numbers. So the hassle of setting that up may not be worth it. I suppose I could also do port knocking.
WHM login (port 2087) - Getting in here is almost as bad as if you got into via SSH on root. I assume same solution as above.
Wordpress hacks - CSF/LFD help mitigate some of those. I tested plugins and most were pretty heavy handed and overlapped with CSF/LFD. I did find iThemes Security plugin you could turn off most everything you didn't want to eliminate overlap with CSF/LFD. Anyone recommend a different Wordpress security plugin to use in conjunction with CSF/LFD?