Larktun Common Issues
This guide is organized around symptoms you actually observe when connecting to devices in your Larktun network, along with the fastest verification commands and fixes for each layer.
Recommended Troubleshooting Order
Always isolate problems from the control plane down to the data path so you do not waste time debugging the wrong layer:
- Check
Nodes: confirm both source and target devices are Online in the same tenant. - Check
ACLs: verify your user/group, target device/CIDR, and exact port are permitted. - Check
Routers(subnet scenarios only): confirm the CIDR route is advertised, approved, and accepted on the client. - Check
Derper& path quality: inspect whether traffic is direct P2P or relayed and verify latency.
Quick CLI Diagnostic Commands
On Linux, macOS, Windows, or OpenWrt endpoints, these three commands surface most root causes in seconds:
# 1. Verify login state, assigned private IP, and peer online status
larktun status
# 2. Check whether traffic to a target peer is direct P2P or relayed via DERP
larktun ping <target-ip-or-hostname>
# 3. Inspect NAT type, UDP reachability, and nearest DERP relay latency
larktun netcheck
1. Access Denied by ACL
Symptoms
- Connection refused or permission denied even though both devices show Online in Nodes.
- One user or device can connect, while another user in the same tenant is blocked.
- Ping works, or one port works, while SSH (
22) or RDP (3389) fails.
How to Fix
- Open ACLs and verify that
srcmatches your exact account (with trailing@where required), user group, or device tag. - Verify
dstpoints to the active node (not an older duplicate device with a similar hostname) and includes the right port suffix (:22,:443,:3389,:5001, or:*). - Confirm you clicked Save / Publish after editing, wait 5–10 seconds for policy propagation, and retry.
- Check the target host's own OS firewall (
ufw,firewalld, Windows Defender Firewall) to make sure the service listens on the private interface rather than127.0.0.1only.
2. Device Shows Offline or Fails to Connect
Symptoms
- The target machine appears Offline in Nodes.
- The device briefly comes online after login, then drops or times out repeatedly.
How to Fix
- On the target machine, run
larktun status(or open the desktop/mobile app) to confirm the daemon (larktund) is running and signed in. - Confirm the Auth Key used for headless login has not expired or been revoked, and verify
--login-server=https://hs.larktun.comwas spelled accurately. - Check the system clock on routers, NAS devices, and embedded Linux hosts—large clock skew causes TLS handshake failures against the control plane.
- Test from another network path (for example switching between Wi-Fi and cellular) to rule out a restrictive local firewall blocking outbound HTTPS/UDP.
- Restart the client service (
sudo systemctl restart larktundon systemd Linux) and refresh Nodes.
3. Subnet Resources Unreachable (Subnet Router Scenarios)
Symptoms
- You can
pingor SSH into the subnet router node itself, but cannot reach devices behind it (such as192.168.6.10).
How to Fix
- In Routers, confirm the subnet CIDR (for example
192.168.6.0/24) is both visible and switched On (approved). - In ACLs, verify there is an explicit
acceptrule allowing yoursrcto reach192.168.6.0/24:<port>or192.168.6.0/24:*. - On the client trying to reach the subnet, confirm route acceptance is enabled (
sudo larktun set --accept-routes). - On a Linux or OpenWrt subnet router, confirm kernel IPv4 forwarding is enabled (
sysctl net.ipv4.ip_forwardshould return1) and the router's firewall permits forwarding between the Larktun interface and LAN zone. - Verify your local Wi-Fi network does not use the exact same CIDR as the remote subnet (overlapping
192.168.1.0/24routes cause traffic to stay on the local LAN).
4. High Latency, Laggy Remote Desktop, or Intermittent Disconnects
Symptoms
- Sluggish RDP/WebRTC frame updates or SSH typing lag.
- Occasional session drops, especially during evening peak hours or across different ISPs.
How to Fix
- Run
larktun ping <target>to see whether packets travel direct or via a DERP relay. - If traffic is stuck on a distant relay due to symmetric NAT, check whether UDP outbound traffic is permitted or switch to a geographically closer relay region in Derper.
- For heavy daily remote desktop workloads, upgrade from the default shared relay to a dedicated relay or attach a user-managed relay closer to your servers (see Deployment Modes and Configuration).
- If using iOS RDP in bitmap fallback mode, enable RemoteFX on Windows (see Optimize iOS Remote Desktop: Enable RemoteFX).
5. Higher-Than-Expected Client Usage or Background Interruptions
Symptoms
- Higher CPU/memory usage than normal on a desktop endpoint.
- Repeated reconnect notifications.
How to Fix
- Avoid scripts or manual loops that repeatedly execute
larktun upwhen the tunnel is already connected. - Close stale foreground remote desktop/file transfer windows when finished.
- Enable quiet background mode (minimize to system tray) in client settings.
6. User-Managed Relay Unreachable
Symptoms
- Connections degrade or drop immediately after adding a custom DERP relay.
How to Fix
- In Derper, double-check
hostName,ipv4,derpport(TCP), andstunport(UDP). - Temporarily keep
omitDefaultRegions: falseso traffic can fail back to default platform relays while you debug TLS certificates and firewall rules on your custom DERP host. - Verify externally with
curl -I https://<hostName>:<derpport>and confirm UDP3478is open in your cloud security group.
7. DNS Resolution or Alibaba Cloud Private DNS Conflicts
If you run Larktun alongside Alibaba Cloud ECS / internal DNS and see unexpected lookup failures, follow our dedicated guide: Resolving Larktun and Alibaba Cloud DNS Issues.
When to Contact Support
If the issue persists after completing the checklist above, include these details so support can diagnose it immediately:
- Exact timestamp (with timezone) when the failure occurred
- Your account email and tenant name
- Source and target device names (and OS / client version)
- Target protocol and port (e.g., SSH 22, RDP 3389, HTTPS 443)
- Output of
larktun statusandlarktun ping <target>(redact any Auth Keys)