Network Security 101

Network Security 101: From Firewalls to Zero Trust

If you’re running servers, hosting applications, or just trying to understand how the internet keeps itself (mostly) safe, network security isn’t optional — it’s survival.

At DEDI.AL, we deal with servers every day, and trust me, even small mistakes can become big problems fast. In this post, we’ll break down network security from firewalls to Zero Trust architecture, step by step, in a way that actually makes sense.


1. Firewalls — Your First Line of Defense

Think of a firewall like a security guard for your VPS. It decides who gets in, who stays out, and what traffic is allowed.

  • UFW (Uncomplicated Firewall) — great for Linux beginners.

sudo ufw default deny incoming
sudo ufw default allow outgoing
sudo ufw allow 22/tcp # SSH
sudo ufw enable
  • iptables / nftables — more advanced, flexible rules for serious admins.

Firewalls stop the obvious attacks, like random port scans or brute-force attempts, before they hit your services.


2. Network Segmentation

Once you’ve got a firewall, the next step is segmentation. Not all traffic should flow freely inside your network.

  • VLANs or subnets separate servers by role (web servers vs database servers).

  • Limits the damage if a server gets compromised.

  • Bonus: Combining this with firewall rules gives layered protection.


3. Intrusion Detection & Monitoring

Stopping attacks is one thing — detecting them early is another.

  • IDS (Intrusion Detection System) monitors traffic and logs anomalies.

    • Examples: Snort, Suricata, Wazuh.

  • Detects unusual patterns, like repeated failed logins, suspicious DNS queries, or unusual outbound traffic.

  • Sends alerts so you can respond before it’s too late.

At DEDI.AL, we monitor our nodes 24/7 with layered IDS and real-time analytics.


4. VPNs and Secure Access

Even the best firewalls won’t help if credentials get stolen. Secure remote access is key:

  • WireGuard — modern, fast, secure VPN.

  • OpenVPN — battle-tested with lots of configuration options.

  • Use VPNs to limit access to critical services (like database servers).

  • Bonus: Two-factor authentication (2FA) for SSH logins.


5. Zero Trust Architecture

Here’s the modern approach: Zero Trust.

  • Never trust anything by default — even internal traffic.

  • Every connection is verified, every user is authenticated, every device is monitored.

  • Ideal for cloud servers, multi-tenant VPS setups, or distributed teams.

Practical Zero Trust tips:

  • Use identity-based access control.

  • Apply least privilege principles.

  • Segment applications so a breach in one service doesn’t expose everything.


6. Best Practices for Everyday Protection

Even without complex architecture, these are must-dos:

  • Keep software updated (security patches matter).

  • Disable unused ports and services.

  • Use strong passwords and SSH keys.

  • Monitor logs daily or automate alerts with Wazuh / Fail2Ban.

  • Backup regularly — your last defense if all else fails.


Final Thoughts

Network security might feel complicated, but it doesn’t have to be scary. Think of it as layers: firewalls, segmentation, monitoring, VPNs, and Zero Trust. Each layer makes it harder for attackers to touch your servers.

At DEDI.AL, we build our VPS nodes with these principles in mind. Because security isn’t a feature — it’s the foundation.

Want to take it further? Check our upcoming posts: “Advanced DDoS Defense” and “Mini SOCs with Wazuh” — perfect next steps for tech maniacs who like control.

Leave a Reply

Your email address will not be published. Required fields are marked *

About Me

Dardan Daci

Author

Dardan is the CEO of DEDI.AL, a forward-thinking hosting and cloud solutions company. With a strong vision for innovation and technology, he leads the team in delivering reliable, secure, and scalable digital infrastructure services to businesses and developers across Albania and beyond.