Incoming messages not received after connecting to a VPN unless refreshing

Original report from @daramousk.

Does anyone in the community have thoughts on this question? Have this been reproduced by others?


Messages not getting received when I connect to a VPN

Steps to reproduce

Connect to a VPN on Ubuntu 16.04, if messages are sent on Mattermost you will not be able to receive them. If you click refresh though you will be able to receive them normally and the functionality gets restored.

This issue occurs when using the browser and the native application

If the order of events is:

  • connect to mattermost instance
  • establish vpn connection
  • new route to mattermost server goes thru VPN

then most probable cause is that websocket connection gets broken (because “new” VPN client IP is used so TCP connection is terminated)