Simple proof of concept, to demonstrate a way to bypass Unifi Protect VPN restrictions.
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
See the GNU General Public License for more details. For full license text, see http://www.gnu.org/licenses.
The PoC does only work in combination with the Device App https://github.com/LFE89/UnifiProtectVpnDeviceApp The following sequence diagramm illustrates the work.
- Get discovery payload of your devices (e.g. by make use of client.js of https://github.com/bahamas10/unifi-proxy)
- Install app on Unifi CK Gen 2 appliance (activate SSH).
- Start UnifiProtectVpnDeviceApp with hex representation of discovery payload of step 1.
- Start UnifiProtectVpnLauncherApp (https://github.com/LFE89/UnifiProtectVpnLauncherApp)
There are just two settings needed:
- IP address of Unifi Cloud Key Gen 2 (local network)
- IP address of VPN connection (Android device)


