Sitemap
Khalid Khan

Khalid Khan

Network Engineer https://www.linkedin.com/in/khalidnkhan/

📘 POST 4

4 min readJan 19, 2026

Secure Remote Access to EVE-NG: Overlay VPNs, Security Design, and Why I Avoided Port Forwarding

Introduction

At this point in the journey, my EVE-NG lab was finally stable:

  • Images were loading correctly
  • Nodes were booting reliably
  • Resource planning made sense

But there was one big limitation:

The lab only worked from my home network.

For a serious lab, that wasn’t enough.

I wanted:

  • Secure access from anywhere
  • No dependency on ISP-provided public IPs
  • No risky exposure of management interfaces
  • Something that survives reboots and network changes

This is where remote access design became just as important as lab design.

1. The Traditional Approach (And Why It Didn’t Work)

The most common advice online is:

“Just port-forward EVE-NG and access it remotely.”

On paper, that sounds simple.

In reality, it failed on multiple fronts.

Practical problems I faced

  • No public IPv4 (CGNAT)
  • IPv6-only connectivity from ISP
  • Dynamic IP changes
  • Security concerns exposing a web UI

Even if port forwarding had worked, I wasn’t comfortable exposing:

  • A lab GUI
  • SSH access
  • Node consoles

directly to the internet.

That approach felt fragile and unsafe.

2. Security Reality Check: Why Exposing EVE-NG Is a Bad Idea

EVE-NG is powerful — but it’s not designed to be internet-facing.

Exposing it directly means:

  • Attack surface on the management GUI
  • Brute-force attempts on login
  • Risky console access
  • Constant need for firewall rules and monitoring

This is not how production infrastructure is accessed today.

3. Rethinking the Problem: Access, Not Exposure

Instead of asking:

“How do I expose EVE-NG to the internet?”

I reframed the question:

“How do I securely access EVE-NG without exposing it?”

That shift led me to overlay VPNs.

4. What Is an Overlay VPN? (Conceptual Overview)

An overlay VPN creates a private, encrypted network over the internet, without relying on:

  • Public IP addresses
  • Port forwarding
  • Complex firewall rules

Devices join a virtual private network, regardless of where they are.

Conceptual View

Press enter or click to view image in full size

From the network’s point of view:

  • All devices behave as if they are on the same LAN
  • Traffic is encrypted end-to-end
  • No inbound ports are opened on your router

5. Overlay VPN vs Traditional VPN (Clear Comparison)

Press enter or click to view image in full size

Key takeaway:
Overlay VPNs are designed for modern networks, not 2005-era home routers.

6. Security Architecture Diagram

Traditional (Port Forwarding — Risky)

Press enter or click to view image in full size

Attack Surface Exposed

Problems:

  • Open inbound ports
  • Public scanning
  • Brute-force attempts

Overlay VPN Model (What I Used)

Press enter or click to view image in full size

Security advantages:

  • No inbound access at all
  • Identity-based access
  • Encrypted by default
  • Works behind CGNAT / IPv6

7. Practical Overlay VPN Setup (Tailscale Example)

Once I decided on an overlay VPN, the setup itself was refreshingly simple.

Get Khalid Khan’s stories in your inbox

Join Medium for free to get updates from this writer.

Installation

apt update

apt install -y tailscale

Bring the VPN up

tailscale up

This generates a login URL.

After authenticating:

  • The server joins the private network
  • A private VPN IP is assigned
  • No router changes are needed

Verify

tailscale status

tailscale ip -4

Access the EVE-NG GUI remotely:

http://<tailscale-ip>

8. Persistence and Reliability (Important Detail)

One concern I had was:

“What happens if the server reboots?”

The answer: nothing breaks.

With the service enabled:

systemctl enable tailscaled

After reboot:

  • VPN reconnects automatically
  • Same VPN IP is retained
  • Remote access works again

This is critical for a lab you want to trust.

9. Real-World Benefits I Noticed Immediately

Once remote access was in place:

  • I could access labs from work, travel, or mobile hotspot
  • No fear of exposing services
  • No need to remember dynamic IPs
  • Console access worked smoothly

At this point, the lab stopped feeling like a “home experiment” and started feeling like real infrastructure.

10. Security Best Practices I Followed

Even with a VPN, discipline matters.

My approach:

  • No public exposure of GUI or SSH
  • VPN-only access
  • Treat the lab as production
  • Keep defaults minimal and intentional

A lab is still a network — just one you control.

Closing Thoughts (Post 4)

This step changed how usable the lab was.

Before:

  • Local-only
  • Limited flexibility

After:

  • Secure
  • Accessible from anywhere
  • No compromise on safety

Most importantly, I didn’t fight the ISP or the internet —
I worked with modern networking models instead.

🧠 SERIES CONCLUSION

What This Journey Really Taught Me

This four-part journey wasn’t just about installing tools.

It taught me how real systems behave.

What I learned across the series:

  • Infrastructure problems often masquerade as application issues
  • RAM and time synchronization matter more than protocols
  • Silent failures are the hardest to debug
  • Security should be designed in, not bolted on
  • Modern access models beat legacy approaches

The biggest takeaway

A lab is only as good as the thinking behind it.

Once the foundation was solid:

  • EVE-NG became predictable
  • Troubleshooting became logical
  • Learning accelerated

What’s Next?

With this foundation, the lab can now be used for:

  • Enterprise WAN design
  • ISP / MPLS / BGP scenarios
  • Failure and recovery testing
  • Performance tuning
  • Automation experiments

That’s where the real networking work begins.

Final Note

Most guides show the happy path.

This series documents the real path — with mistakes, fixes, and lessons that stick.

If you’re building a serious lab, I hope this saves you time, frustration, and guesswork.

--

--