DEV Community

Kevin zhang
Kevin zhang

Posted on • Edited on

How I Improved My Remote Work Performance with WireGuard + NFS + Mosh

Working remotely with high performance access to on-premise servers has always been a challenge.

Previously, I used the macOS built-in VPN to connect to my company's TP-Link router's VPN server, mount the company server to my MacBook via NFS, and SSH into the server for development.

This worked, but performance and stability were limited.

Recently, I upgraded my setup to WireGuard + NFS + Mosh.

The improvements have been significant, and I want to share this practical experience with anyone who also needs a fast, stable, and low-latency remote development environment.


Previous Setup

  • VPN: macOS built-in VPN (IPSec or L2TP) to company's TP-Link router.
  • File Access: NFS mount of server directories to local workstation.
  • Remote Shell: SSH session into the server.

Issues:

  • VPN connection would sometimes lag or drop.
  • Large file transfers (2-3 GB) were slow.
  • SSH sessions were sensitive to unstable network, causing delays or disconnects.

New Setup: WireGuard + NFS + Mosh

  1. VPN: WireGuard

    • Replaced the macOS VPN with WireGuard.
    • Simpler configuration, better performance, and faster reconnections.
  2. File Access: NFS

    • Continued using NFS to mount large codebases from company server to my MacBook.
    • File transfer speed significantly improved under WireGuard.
  3. Remote Shell: Mosh

    • Replaced SSH with Mosh (mobile shell) for remote access.
    • Handles network interruptions gracefully and provides lower latency on high-latency networks.

Performance Comparison

Scenario Old Setup (VPN + SSH) New Setup (WireGuard + Mosh)
VPN Stability Average Very Stable
File Transfer (2-3GB) ~5-8 MB/s ~10-14 MB/s
SSH/Mosh Session Noticeable delays Near real-time typing
Reconnection After Sleep Manual reconnect Auto-reconnect
Overall Experience Acceptable Feels like local work

Summary

After switching to WireGuard + NFS + Mosh, my remote development workflow has improved dramatically.

Remote work now feels almost indistinguishable from working directly on-site.

If you're struggling with sluggish VPN connections or unreliable SSH sessions, I highly recommend trying this combination.


What About You?

Are you also facing remote work connectivity issues?

Have you tried WireGuard or Mosh?

I’d love to hear your experiences and suggestions in the comments below!

Warp.dev image

The best coding agent. Backed by benchmarks.

Warp outperforms every other coding agent on the market, and gives you full control over which model you use. Get started now for free, or upgrade and unlock 2.5x AI credits on Warp's paid plans.

Download Warp

Top comments (0)

Dev Diairies image

User Feedback & The Pivot That Saved The Project

🔥 Check out Episode 3 of Dev Diairies, following a successful Hackathon project turned startup.

Watch full video 🎥

👋 Kindness is contagious

Explore this compelling article, highly praised by the collaborative DEV Community. All developers, whether just starting out or already experienced, are invited to share insights and grow our collective expertise.

A quick “thank you” can lift someone’s spirits—drop your kudos in the comments!

On DEV, sharing experiences sparks innovation and strengthens our connections. If this post resonated with you, a brief note of appreciation goes a long way.

Get Started