Site ModernSite Modern

We create professional websites that transform your business and grow your online presence.

Services

  • Presentation Website
  • Online Store
  • SEO Optimization
  • Maintenance

Information

  • About Us
  • Portfolio
  • Blog
  • Contact

Legal

  • Terms & Conditions
  • Privacy Policy
  • Cookie Policy
ANPC SALANPC SOL

© 2026 Bogdan Vasilescu - Site Modern. All rights reserved.

Made with passion in Romania

Databases don't belong on a public IP

Abstract illustration in shades of blue
A tunnel between servers.

Why WireGuard

WireGuard is small, fast and easy to configure. Each server gets a private address, for example in 10.200.0.0/24.

  • Encryption between nodes by default
  • Internal ports stay closed from the outside
    • Postgres on 5432–5434
    • Redis on 6379–6381
  • A single open UDP port
Abstract private network diagram
Servers only see each other through the tunnel.

The steps

  1. Generate keys on every node.
  2. Add the peers to wg0.conf.
  3. Allow only the private subnet in the firewall.
If a port doesn't need to be public, don't publish it.

The result: the app talks to its databases only through the tunnel.

Published:October 30, 2026