Skip to content

wireguard: unable to start when using Disable Routes options #2931

Description

@dummys

I'm using latest version of Opnsense on APUC2 hardware.

I want to use selective routing on different VPN provider therefore I need to check "Disable Routes Options". When looking inside the configuration of wg0.conf I get the following:

PostUp = route add 192.168.20.1 -iface %i
PostDown = route del 192.168.20.1 -iface %i

when wireguard-go is restarted, it said: add host 192.168.20.1: gateway wg0 fib 0: route already in table
If I delete the two entry, then wireguard start successfully.
when I restart the OPNsense, those entry are added again. Is it a bug or something is wrong in my configuration ?

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