Skip to content

wg0 Error VPN Cli #4

@okmanbd

Description

@okmanbd

Environment

  • Ubuntu 22.04 LTS (kernel 5.15)
  • Ubuntu 24.04 LTS (kernel 6.8)
  • Datagram app: 1.2.1
  • VPN module: 1.0.11
  • Installed via official CLI release

What happens
On most service starts or reboots, the VPN fails within a few seconds.

Logs
Right after the control signal connects, the VPN errors out:

Dec 16 12:14:46 systemd[1]: Started Datagram CLI Service.
Dec 16 12:14:46 datagram[889]: VPN version: 1.0.11
Dec 16 12:14:48 datagram[889]: [info] Signal connected
Dec 16 12:14:49 datagram[889]: Warning: failed to add IPv4 network route: failed to add route for 10.249.225.0/24: command 'ip route add 10.249.225.0/24 dev wg0' failed: exit status 2, output: RTNETLINK answers: File exist

Interface state at that moment
wg0 exists and has IPs assigned, but wg show shows no peer and no endpoint only the interface itself.

Why is it happening ?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions