Files
rc.router/docs/add_wireguard_route.md

809 B

add_wireguard_route Command

Name

add_wireguard_route

Synopsis

add_wireguard_route ${ipv6_prefix} ${wireguard_number}

Description

Creates a wireguard interface with the specified wireguard interface number (${wireguard_number}), associates that interface and the specified IPv6 prefix (${ipv6_prefix}) with a fib of the same number (${wireguard_number}).

Internally, this calls add_wireguard_interface and add_route_policy, modifying and forwarding its parameters.

Examples

Add a wireguard interface (number 3) for routing traffic from 2001:db8:3::/48

add_wireguard_route 2001:db8:3::/48 3

See Also