I'm trying to estblish udp connection inside openvpn network. There's openvpn server running on ubuntu. Also Navio 2 that connects to that server over 4G and qgroundcontrol computer that does the same. The connection is tap type, meaning all clients get local ip address.
However, when connecting ardupilot to qgroundcontrol, udp packets sent from ardupilot have wrong source ip (belonging to 4G adapter, not vpn IP). The result, qgroundcontrol sends data back to wrong address.
How to force ardupilot using vpn ip address?