By ariziragoran
I’ve setup fail2ban according to the tutorial but this indian ip kept trying to authenticate in today after it was banned several times to the point where i increased the ban time for anyone trying to connect after 1 failed attempt to max?
What’s the deal though, this is bad for me. If i make one mistake on my password i’m locked out. Is this guy trying to have me?
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
hi @ariziragoran ,
You can do many things to improve your security for example:
Hope any of these help you, contact me if you need help with any of them.
If you’re on a MacBook, I’d recommend Algo as it’ll handle setting up a VPN for you in a matter of just a few minutes – pretty much hassle free.
https://github.com/trailofbits/algo
If you’re not, or if you’d prefer to handle configuring the VPN on your own, there’s a guide here that details how to go about setting up StrongSwan (which is what Algo uses).
…
Algo will run on Linux and Windows, though my experience with it is limited to OS X / MacOS right now. They do provide instructions on how to set it up on the GitHub page though.
…
Once a VPN is setup, you’d simply firewall off Port 22 and only allow the static IP of your VPN to connect using:
ufw allow from VPN_IP to any port 22
Where VPN_IP is the IP address of your VPN. Just make sure you’re connected to the VPN when you try to connect :-).
For example, if our VPN IP was 11.222.33.44, we’d run:
ufw allow from 11.222.33.44 to any port 22
Keep in mind, if you disconnect from the VPN, you won’t be able to login. If you delete the Droplet that your VPN is on, you’ll lock yourself out.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.