Troubleshooting
Common issues and their solutions.
"OpenVPN not found"
OpenVPN is not installed or not in your PATH:
# Check if OpenVPN is available
which openvpn
# Install if missing
# Ubuntu/Debian
sudo apt install openvpn
# Fedora/RHEL
sudo dnf install openvpn
# macOS
brew install openvpn
Or specify the path manually:
gatekey config set openvpn /path/to/openvpn
"Authentication required"
Your session has expired. Re-authenticate:
gatekey login
"Permission denied" / sudo issues
OpenVPN requires root privileges. The client will prompt for sudo password.
If you're having issues:
# Run with explicit sudo
sudo gatekey connect
Connection fails immediately
Check the OpenVPN log:
cat ~/.gatekey/openvpn-<gateway-name>.log
Common issues:
- Firewall blocking UDP 1194: Check firewall rules
- Certificate expired: Re-run
gatekey connectfor a fresh config - DNS resolution issues: Try using IP address instead of hostname
"Already connected to gateway"
You're already connected. Either:
# Disconnect and reconnect
gatekey disconnect <gateway> && gatekey connect <gateway>
# Or connect to a different gateway
gatekey connect <other-gateway>
Multi-gateway issues
When connected to multiple gateways:
# Check all connection statuses
gatekey status
# Check specific gateway log
cat ~/.gatekey/openvpn-<gateway>.log
# Disconnect from problematic gateway only
gatekey disconnect <gateway>
Headless/SSH systems
Use --no-browser and copy the URL:
gatekey login --no-browser
# Copy the printed URL to a browser on another machine
DNS resolution issues after connecting
If internal hostnames don't resolve after connecting:
-
Check if DNS is being pushed:
cat /etc/resolv.conf -
The VPN config may not be pushing DNS. Contact your administrator.
-
Manually add DNS servers:
sudo bash -c 'echo "nameserver 10.0.0.1" >> /etc/resolv.conf'
Slow connection
Possible causes:
- MTU issues: Try a smaller MTU in the config
- UDP blocked: Try TCP mode if available
- Distance to gateway: Connect to a closer gateway
Split tunnel not working
If traffic that should go through the VPN isn't:
-
Check your routes:
gatekey status -
Verify the destination is in one of your routes
-
Check your access rules with your administrator
Getting more debug info
Enable debug logging:
gatekey config set log_level debug
gatekey connect
Still having issues?
- Check the GitHub Issues
- Open a new issue with:
- GateKey version (
gatekey version) - Operating system
- Error messages
- Relevant log output
- GateKey version (