UPNP not working correctly when using Adguard
Describe your environment
Please specify the following:
- Ring version: 20210226-01
- Device model: Oneplus 5T
- Android version: 10
- What build you are using: [Play Store]
Steps to reproduce
- Can you reproduce the bug: [at will]
- Steps:
-
Download and install Adguard
-
Use local VPN mode for Adguard.
-
Start Jami, enable UPNP
- Actual result: No UPNP port mapping created at all.
- Expected result: Jami creates UPNP port mapping.
- If Adguard is disabled, UPNP works as expected.
Additional information
Openwrt debug log
Tue Mar 30 20:42:18 2021 daemon.info miniupnpd[10360]: HTTP REQUEST from [::ffff:192.168.1.137]:37384 : POST /ctl/IPConn (HTTP/1.1)
Tue Mar 30 20:42:18 2021 daemon.debug miniupnpd[10360]: Host: 192.168.1.1:5000
Tue Mar 30 20:42:18 2021 daemon.info miniupnpd[10360]: SOAPAction: urn:schemas-upnp-org:service:WANIPConnection:1#AddPortMapping
Tue Mar 30 20:42:18 2021 daemon.info miniupnpd[10360]: Client 192.168.1.137 tried to redirect port to 172.18.11.218
Tue Mar 30 20:42:18 2021 daemon.info miniupnpd[10360]: Returning UPnPError 718: ConflictInMappingEntry
So it seems that Jami is not able to recognize the correct local IP address, when the device is actually at 192.168.1.137, because of the presence of Adguard, Jami thinks 172.18.11.218 is local IP address.
I tried a debug app: network utilities It is able to correctly recognize the real IP address of the phone.