openvpn icon indicating copy to clipboard operation
openvpn copied to clipboard

IV_HWADDR Setting Issue in Linux OpenVPN Client

Open pdj1010 opened this issue 1 year ago • 1 comments

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.

pdj1010 avatar Dec 13 '24 01:12 pdj1010

route.c

#elif defined(TARGET_LINUX)

void get_default_gateway(struct route_gateway_info *rgi, openvpn_net_ctx_t *ctx)

pdj1010 avatar Dec 13 '24 01:12 pdj1010