<div dir="ltr">On Sat, 25 Jan 2020 at 14:24, Daniele Orlandi <<a href="mailto:daniele@orlandi.com">daniele@orlandi.com</a>> wrote:<br>> A proper binding to the correct VRF would be a better approach, however.<br><br>On user-level it can be done by SO_BINDTODEVICE socket option:<br><br>«Applications that are to work within a VRF need to bind their socket to the VRF device:<br>    setsockopt(sd, SOL_SOCKET, SO_BINDTODEVICE, dev, strlen(dev)+1);<br>»<br><br>But I am not sure how things work on kernel level.<br><br>It would be great to add an option like 'listen-interfaces':<br><br>wg set <interface> [listen-port <port>] [listen-interfaces <interface1>[,<interface2>]... ]<br><br>[Interface]<br>ListenPort=54002<br>ListenInterfaces=vrf-red,vrf-green<br><br>This option can be useful in a non-VRF environment too.</div>