schwabe / ics-openvpn

OpenVPN for Android
3.31k stars 1.2k forks source link

IV_HWADDR not received by server #1584

Closed flucas1 closed 1 year ago

flucas1 commented 1 year ago

Hello,

The mobile app does not transmit/set IV_HWADDR even if "setenv IV_HWADDR" line is assigned.

The desktop version of openvpn properly pushes IV_HWADDR to the server.

schwabe commented 1 year ago

That is not a bug. The app generates the HWADDR itself.

flucas1 commented 1 year ago

Yes, the app generates the HWADDR value in the config file... but the server does not receive it. Also, as per specification, setenv IF_ should be transferred, but it is not happening.

schwabe commented 1 year ago

you need push-peer-info for that.

flucas1 commented 1 year ago

that flag is used, and this is why I raise this as a bug

schwabe commented 1 year ago

This address is only used if the app can get a hardware ID from the OS. What Android version and device are you using?

flucas1 commented 1 year ago

I edited teh HWADDR

Config for OpenVPN 2.x

Enables connection to GUI

management /data/user/0/de.blinkt.openvpn/cache/mgmtsocket unix management-client management-query-passwords management-hold

setenv IV_GUI_VER "de.blinkt.openvpn 0.7.43" setenv IV_SSO openurl,webauth,crtext setenv IV_PLAT_VER "33 13 arm64-v8a Xiaomi lisa 2109119DG" setenv IV_HWADDR XX:XX:XX:XX:XX:XX:XX tls-cert-profile preferred machine-readable-output

schwabe commented 1 year ago

The feature currently only works if you select OpenVPN 3 core under general settings. The setenv IW_HWADDR is ignored by OpenVPN 2.x