linuxmint / warpinator

Share files across the LAN
GNU General Public License v3.0
1.21k stars 81 forks source link

Cannot connect while Mullvad VPN is connected #109

Closed yochananmarqos closed 2 years ago

yochananmarqos commented 2 years ago

As of 90efc18, Warpinator can no longer connect while Mullvad VPN is connected via WireGuard. Mullvad has the option to enable local network sharing.

I'm using my warpinator-git AUR package on Manjaro GNOME.

When using 6ff301b on both machines. The other machine is not connected via VPN (working):

❯ warpinator --debug
2021-10-21 12:21:59,430::warpinator: Initializing Warpinator
2021-10-21 12:21:59,430::warpinator::DEBUG: UI: Creating window and status icon -- warpinator.py (line 1031)
2021-10-21 12:21:59,430::warpinator::DEBUG: Starting network monitor -- networkmonitor.py (line 34)
2021-10-21 12:21:59,510::warpinator::DEBUG: Automatic interface selection: eth0 -- networkmonitor.py (line 204)
2021-10-21 12:21:59,703::warpinator::DEBUG: Network client initialized -- warpinator.py (line 1067)
2021-10-21 12:21:59,704::warpinator::DEBUG: New server requested for 'eth0' (192.168.58.109) -- warpinator.py (line 1100)
2021-10-21 12:21:59,704::warpinator::DEBUG: Auth: Creating server credentials -- auth.py (line 216)
2021-10-21 12:21:59,799::warpinator::DEBUG: Server: starting server on 192.168.58.109 (eth0) -- server.py (line 277)
2021-10-21 12:21:59,799::warpinator: Using api version 2
2021-10-21 12:21:59,799::warpinator: Our uuid: MANJARO-D3451070B529C79870B8
2021-10-21 12:21:59,799::warpinator::DEBUG: Starting v1 registration server (192.168.58.109) with port 42000 -- remote_registration.py (line 62)
2021-10-21 12:21:59,799::warpinator::DEBUG: Starting v2 registration server (192.168.58.109) with auth port 42001 -- remote_registration.py (line 64)
2021-10-21 12:21:59,804::warpinator: Using system zeroconf v0.36.8
2021-10-21 12:21:59,805::warpinator::DEBUG: Using selector: EpollSelector -- selector_events.py (line 59)
2021-10-21 12:22:07,420::warpinator: Server: ACTIVE
2021-10-21 12:22:07,423::warpinator::DEBUG: UI: start discovery timer (no remotes) -- warpinator.py (line 784)
2021-10-21 12:22:08,083::warpinator::DEBUG: >>> Discovery: new remote: inspirognome (192.168.58.110:42000) -- server.py (line 245)
2021-10-21 12:22:08,083::warpinator: Registering with inspirognome (192.168.58.110:42001) - api version 2
2021-10-21 12:22:08,083::warpinator::DEBUG: remote-registration-thread-inspirognome-192.168.58.110:42001-INSPIROGNOME-40D943D6680A8F4A584E -- remote_registration.py (line 240)
2021-10-21 12:22:08,083::warpinator::DEBUG: Remote: Attempting to register inspirognome (192.168.58.110) -- remote_registration.py (line 258)
2021-10-21 12:22:08,289::warpinator::DEBUG: Remote: Attempting to connect to inspirognome (192.168.58.110) - api version 2 -- remote.py (line 197)
2021-10-21 12:22:08,295::warpinator::DEBUG: Remote: waiting for duplex from 'inspirognome' -- remote.py (line 349)
2021-10-21 12:22:08,295::warpinator::DEBUG: Remote: inspirognome is now RemoteStatus.AWAITING_DUPLEX **** -- remote.py (line 312)
2021-10-21 12:22:08,546::warpinator::DEBUG: Registration Server RPC: RequestCertificate from inspirognome '192.168.58.110' -- remote_registration.py (line 305)
2021-10-21 12:22:08,754::warpinator::DEBUG: Server RPC: WaitingForDuplex from 'inspirognome' (api v2) -- server.py (line 403)
2021-10-21 12:22:08,756::warpinator::DEBUG: Server RPC: GetRemoteMachineInfo from 'inspirognome' -- server.py (line 431)
2021-10-21 12:22:08,757::warpinator::DEBUG: Server RPC: GetRemoteMachineAvatar from 'inspirognome' -- server.py (line 437)
2021-10-21 12:22:08,798::warpinator::DEBUG: Remote: inspirognome is now RemoteStatus.ONLINE **** -- remote.py (line 312)
2021-10-21 12:22:08,798::warpinator::DEBUG: Remote RPC: calling GetRemoteMachineInfo on 'inspirognome' -- remote.py (line 358)
2021-10-21 12:22:08,799::warpinator::DEBUG: Remote RPC: calling GetRemoteMachineAvatar on 'inspirognome' -- remote.py (line 377)
2021-10-21 12:22:08,802::warpinator::DEBUG: Remote RPC: could not fetch remote avatar, using a generic one. (StatusCode.NOT_FOUND, .face file not found!) -- remote.py (line 387)

When using any commit including or after 90efc18, currently 01e2e1d (not working):

❯ warpinator --debug
2021-10-21 12:26:41,500::warpinator: Initializing Warpinator
2021-10-21 12:26:41,501::warpinator::DEBUG: UI: Creating window and status icon -- warpinator.py (line 1030)
2021-10-21 12:26:41,769::warpinator::DEBUG: Starting network monitor -- networkmonitor.py (line 52)
2021-10-21 12:26:41,770::warpinator::DEBUG: Network state changed: online = True -- networkmonitor.py (line 143)
2021-10-21 12:26:41,770::warpinator::DEBUG: New server requested for 'wg-mullvad' (10.108.202.29) -- warpinator.py (line 1082)
2021-10-21 12:26:41,771::warpinator::DEBUG: Auth: Creating server credentials -- auth.py (line 214)
2021-10-21 12:26:41,851::warpinator::DEBUG: Server: starting server on 10.108.202.29 (wg-mullvad) -- server.py (line 278)
2021-10-21 12:26:41,852::warpinator: Using api version 2
2021-10-21 12:26:41,852::warpinator: Our uuid: MANJARO-D3451070B529C79870B8
2021-10-21 12:26:41,852::warpinator::DEBUG: Starting v1 registration server (10.108.202.29) with port 42000 -- remote_registration.py (line 59)❯ warpinator --debug
2021-10-21 12:26:41,500::warpinator: Initializing Warpinator
2021-10-21 12:26:41,501::warpinator::DEBUG: UI: Creating window and status icon -- warpinator.py (line 1030)
2021-10-21 12:26:41,769::warpinator::DEBUG: Starting network monitor -- networkmonitor.py (line 52)
2021-10-21 12:26:41,770::warpinator::DEBUG: Network state changed: online = True -- networkmonitor.py (line 143)
2021-10-21 12:26:41,770::warpinator::DEBUG: New server requested for 'wg-mullvad' (10.108.202.29) -- warpinator.py (line 1082)
2021-10-21 12:26:41,771::warpinator::DEBUG: Auth: Creating server credentials -- auth.py (line 214)
2021-10-21 12:26:41,851::warpinator::DEBUG: Server: starting server on 10.108.202.29 (wg-mullvad) -- server.py (line 278)
2021-10-21 12:26:41,852::warpinator: Using api version 2
2021-10-21 12:26:41,852::warpinator: Our uuid: MANJARO-D3451070B529C79870B8
2021-10-21 12:26:41,852::warpinator::DEBUG: Starting v1 registration server (10.108.202.29) with port 42000 -- remote_registration.py (line 59)
2021-10-21 12:26:41,852::warpinator::DEBUG: Starting v2 registration server (10.108.202.29) with auth port 42001 -- remote_registration.py (line 61)
2021-10-21 12:26:41,857::warpinator: Using system zeroconf v0.36.8
2021-10-21 12:26:41,858::warpinator::DEBUG: Using selector: EpollSelector -- selector_events.py (line 59)
2021-10-21 12:26:49,473::warpinator: Server: ACTIVE
2021-10-21 12:26:49,476::warpinator::DEBUG: UI: start discovery timer (no remotes) -- warpinator.py (line 784)
2021-10-21 12:26:49,794::warpinator::WARNING: Discovery: netmask is 255.255.255.255 - are you on a vpn? -- networkmonitor.py (line 158)
2021-10-21 12:26:49,794::warpinator::DEBUG: >>> Discovery: service is not on this subnet, ignoring: inspirognome (192.168.58.110) -- server.py (line 196)
2021-10-21 12:26:52,475::warpinator::DEBUG: UI: Discovery timed out (no remotes) -- warpinator.py (line 800)
2021-10-21 12:26:41,852::warpinator::DEBUG: Starting v2 registration server (10.108.202.29) with auth port 42001 -- remote_registration.py (line 61)
2021-10-21 12:26:41,857::warpinator: Using system zeroconf v0.36.8
2021-10-21 12:26:41,858::warpinator::DEBUG: Using selector: EpollSelector -- selector_events.py (line 59)
2021-10-21 12:26:49,473::warpinator: Server: ACTIVE
2021-10-21 12:26:49,476::warpinator::DEBUG: UI: start discovery timer (no remotes) -- warpinator.py (line 784)
2021-10-21 12:26:49,794::warpinator::WARNING: Discovery: netmask is 255.255.255.255 - are you on a vpn? -- networkmonitor.py (line 158)
2021-10-21 12:26:49,794::warpinator::DEBUG: >>> Discovery: service is not on this subnet, ignoring: inspirognome (192.168.58.110) -- server.py (line 196)
2021-10-21 12:26:52,475::warpinator::DEBUG: UI: Discovery timed out (no remotes) -- warpinator.py (line 800)
yochananmarqos commented 2 years ago

This is now resolved by being able to manually choose the network interface.