openvpn
openvpn copied to clipboard
IV_HWADDR Setting Issue in Linux OpenVPN Client
In a Linux environment, openvpn 2.6.12
the OpenVPN client obtains the best gateway and interface name. However, when setting IV_HWADDR, it might not be set to the MAC of that interface. Is there a reason why, even after determining the best gateway and interface, it just selects any interface within the same network as the best gateway?
In the case of Windows, it appears that the MAC address of the interface with the lowest metric is used.
route.c
#elif defined(TARGET_LINUX)
void get_default_gateway(struct route_gateway_info *rgi, openvpn_net_ctx_t *ctx)