mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Bind wiregard interface to VRF
@ 2024-11-17 20:52 Ben Greear
  0 siblings, 0 replies; only message in thread
From: Ben Greear @ 2024-11-17 20:52 UTC (permalink / raw)
  To: Linux Kernel Mailing List; +Cc: Jason A. Donenfeld

Hello,

I am interested in binding wireguard interface to a VRF.

I was thinking the parentdev option in 'ip link add' logic could be used to
set the bind_ifindex in the 'struct udp_port_cfg' object.  I didn't fully follow
this through to see if it could work, but it seems likely.

Something like:

ip link add wg1 type wireguard parentdev vrf1


I think as long as the UDP socket is created/bound with something similar to how
user-space applications often support --interface eth1 argument, then it would do
what I want.

I'm curious if there has been any effort in this direction or if anyone has suggestions
for most acceptable path forward.

Thanks,
Ben

-- 
Ben Greear <greearb@candelatech.com>
Candela Technologies Inc  http://www.candelatech.com


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-17 20:52 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-17 20:52 Bind wiregard interface to VRF Ben Greear

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®