wireguard-install
wireguard-install copied to clipboard
WireGuard hosted on Google Cloud (Google Compute Engine) cannot access Google.com, YouTube.com, and many other sites
Steps to Reproduce:
- Add client using wireguard-install.sh on a Google Compute Engine Server running Ubuntu 20.04 LTS
- Scan QR Code on iOS or Android device, or use .conf file to set up tunnel on official Wireguard application on macOS or Windows
- Connect to the server using Wireguard profile
- Open browser and visit google.com
- Time out
Solution
Set the appropriate MTU by looking at the MTU value set in /sys/class/net/wg0/mtu
, and explicitly setting it for Clients, instead of relying on it to be automatically determined.
This has been tested / proven here: https://github.com/rajannpatel/Pi-Hole-on-Google-Compute-Engine-Free-Tier-with-Full-Tunnel-and-Split-Tunnel-Wireguard-VPN-Configs/issues/12