Zend certified PHP/Magento developer

OpenVPN intercepts local Samba traffic between Laptop and PC over WiFi (Windows)

I have a weird problem with OpenVPN – it seems it somehow intercepts ‘local’ traffic.

I have PC + Notebook, both are in parallel connected to each other via:

  • WiFi – network 192.168.0.x
  • OpenVPN over same WiFi – network 192.168.7.x
  • (optionally) via LAN, direct ethernet cable – network 192.168.254.x

When I try to copy files from one to another on Windows – from \192.168.0.xshare to \192.168.0.yshare I get speed of around 5MB/s. This is extremely low and after lengthy experiments trying to find the reason, I’ve noticed that when I shut down OpenVPN, speed restores to normal (~25MB/s over WiFi and ~100MB/s over direct LAN).

Any ideas what is happening there? How to fix the speed?

Using hints on another site, I’ve captured the trafic using Wireshark. Out of it I see that SMB2 session initially connects on expected interfaces (192.168.0.160 -> 192.168.0.197), but then at some point of time without noticable reason reconnects on IPs from OpenVPN subnet (192.168.7.160 -> 192.168.7.60). The strange thing is that SMB reconnect happened aproximatelly 5 minutes after I’ve restarted OpenVPN connection, not immediattely.

Wireshark capture