Re: [Openvpn-devel] [PATCH 1/2] Add --bind-dev option.

2020-06-29 Thread Maximilian Wilhelm
Anno domini 2020 Gert Doering scripsit: Hi, > reading this more closely at merging/testing time, I do have a change > request... > > On Fri, Jun 26, 2020 at 08:49:44PM +0200, Maximilian Wilhelm wrote: > > +#ifdef TARGET_LINUX > > +else if (streq (p[0], "bind-dev") && p[1]) > > +{ > > +

Re: [Openvpn-devel] [PATCH 1/2] Add --bind-dev option.

2020-06-29 Thread Gert Doering
Hi, reading this more closely at merging/testing time, I do have a change request... On Fri, Jun 26, 2020 at 08:49:44PM +0200, Maximilian Wilhelm wrote: > +#ifdef TARGET_LINUX > +else if (streq (p[0], "bind-dev") && p[1]) > +{ > +VERIFY_PERMISSION (OPT_P_SOCKFLAGS); > +opt

[Openvpn-devel] [PATCH 1/2] Add --bind-dev option.

2020-06-26 Thread Maximilian Wilhelm
This options allows the user to specify a network device the OpenVPN process should use when making a connection or binding to an address. This translates in setting the SO_BINDTODEVICE option to the corresponding socket (on Linux). When for example using VRFs on Linux [0] this allows maki