Tag: SECURITY

GPG Signing in 5 Rules
SECURITY

GPG Signing in 5 Rules

I signed my commits with GPG for years before I actually understood what I was doing. Turns out, most of the guides out there make this way harder than it needs to be. Here are the five rules that actually matter. 1. Generate a GPG key ( not a weak one

davide
5 Security Headers I Actually Set on Every Server
SECURITY

5 Security Headers I Actually Set on Every Server

I deploy a lot of servers. Like, a lot. And every single time, before I open port 443 to the world, I add the same five HTTP security headers. Not because some blog told me to, not because a scanner flagged them, but because I got tired of cleaning up

davide
5 Server Hardening Rules I Actually Follow
SECURITY

5 Server Hardening Rules I Actually Follow

I manage a handful of VPS boxes. Every time I spin up a new one I forget something. Disable root login? Nope. Set up fail2ban? Maybe next week. Unattended upgrades? Lol. After one too many "wait, how did that get in" moments, I wrote myself a checklist. Here

davide
Commercial VPNs Are Overrated ( And What I Run Instead )
SECURITY

Commercial VPNs Are Overrated ( And What I Run Instead )

I paid for NordVPN for two years. Then Mullvad for one. Then I realized I was paying a monthly subscription to route my traffic through someone else's server, with zero control over what they log, and a client app that insisted on updating itself at the worst possible

davide
fail2ban: Set It and Forget It
SECURITY

fail2ban: Set It and Forget It

Every server I deploy gets brute-force attempted within hours. SSH, HTTP auth, FTP, doesn't matter. The internet is full of bots scanning entire IP ranges 24/7 and they will find you. fail2ban is the lazy dev's answer to this. It reads your logs, spots repeated

davide
iptables Firewall in 5 Rules
SECURITY

iptables Firewall in 5 Rules

I keep seeing people overcomplicate their firewall setup with fancy wrappers and GUI tools. iptables is not that hard, and understanding it directly saves you when those wrappers break ( because they always do at the worst time ). Here's how I set up iptables on every new server. The

davide
Update ssh to version 7.5p1
DEVOPS

Update ssh to version 7.5p1

Follow the instructions to update ssh on the latest version. The process requires patching the current source, which is unfortunately not written anywhere in the open-ssh website. Package Information -Download (HTTP): http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-7.5p1.tar.gz Download MD5 sum: 652fdc7d8392f112bef11cacf7e69e23 Download size: 1.

davide
ESC
// awaiting input_