SShortSingh.
Back to feed

15-Minute Ubuntu 24.04 VPS Hardening Checklist for 2027

0
·4 views

A freshly provisioned public-IP server typically receives SSH login attempts within minutes, so a quick hardening pass is recommended before installing anything else. The guide walks through updating packages, creating a non-root sudo user, and switching to key-based SSH while disabling root and password logins. It also covers enabling a default-deny firewall with ufw, noting that Docker-published ports can bypass it, and installing fail2ban to block brute-force attempts. Further steps include automatic security updates, setting the timezone, auditing listening services with ss, and keeping an off-server backup. The article closes with a promotional note about choosing a VPS provider with DDoS filtering.

Read the full story at DEV Community

This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)

Log in to join the discussion and vote.

Log in

Related stories

0
ProgrammingDEV Community ·

Google Play closed test: what happens if testers drop below 12

Google requires at least 12 testers opted in continuously for the 14 days before a developer applies for production access, and counts each tester's run separately. A tester who opts out ends only their own run, and anyone who returns later must restart the 14-day count from zero. The guidance notes that uninstalling an app does not by itself remove a tester from the opt-in, though Google also cites low tester engagement as a concern. Developers are advised to identify who left, recruit replacements promptly, and release a build to keep testers engaged. A 14-day calculator is referenced to help work out the earliest eligible apply date.

0
ProgrammingDEV Community ·

Solo developer's Android clipboard manager shows how privacy rules reshaped its design

A solo developer building the clipboard manager ClipFox found that Android's privacy changes reshaped the app more than any other part of it. Since Android 10, background services can no longer read clipboard contents, so the app now reads the clipboard only when it gains input focus, such as when the user opens it or its floating bubble. Reading too early can return null, so the developer reads on focus instead of at startup. Since Android 12, the system displays a notice whenever an app reads another app's clipboard data, which pushed the design toward reading once per open rather than continuously. On Android 13 and later, apps can detect a sensitive flag set by password managers, and ClipFox ignores such text by default, though not every app sets that flag.

0
ProgrammingDEV Community ·

nginx -t can pass while nginx keeps serving the old config; how to deploy safely

A common deploy pattern runs nginx -t and then nginx -s reload, assuming a zero exit status means the new config is live. That assumption can be wrong. The -t check parses configuration without binding listening ports, so port conflicts only surface when the master process starts listening. The reload command is also asynchronous: it only signals the master and exits, and if the master fails to apply the new config, it silently keeps the old one. The article proposes versioned config directories, an atomic symlink swap, a confirmed reload, and a fallback for when nginx fails to start.

0
ProgrammingDEV Community ·

XXE Flaws Stem From Parser Settings; Disabling DTD Processing Is the Fix

The article explains that XML External Entity (XXE) injection can affect an application's XML import feature when the parser runs on default settings. It describes a safe lab-only probe that checks whether the parser resolves an external entity, without reading sensitive data. The author argues that string-based filtering of uploads is unreliable, and that the real remedy is configuring the parser itself, such as disabling DTD processing or using hardened libraries like defusedxml. The piece also notes that many file formats, including SVG, DOCX and XLSX, rely on XML internally and can reach parsers unexpectedly.