I have an Android build environment set up locally in Ubuntu 16.04 that contains source code and all the tools to compile it. I have Samba set up so that the files can be shared with Windows machines to edit source code. This works great with a local Windows 7 machine.
From a remote location, if I use OpenVPN to connect to the local network (Ubuntu OpenVPN server and Windows OpenVPN GUI), I have access to everything network related as I would expect. SMB shares to my Synology work great I can also see the Ubuntu Samba share and access files from Windows 10.
However after a period of time if I try to save a file I've been editing, I very often get an error saying that the file may already be in use or can no longer be found. If I close the editor and try to reload it, I get an error that the file doesn't exist, or sometimes the folder doesn't exist. I have to go through several iterations of refresh and sometimes starting again from the root IP to gain access again. The symptom is as if the VPN connection has reset but I know it's not a connection issue since I did a continuous ping from a DOS window. My putty SSH sessions are rock solid as well as VMWare console sessions. It seems only to be an issue with Windows directly accessing and editing files on the Samba share.
I've added a line to my smb.conf:
hosts allowed = <vpn ip range> <local ip range> 127.0.0.1
and this didn't seem to help. I also made sure in my Local Security Policy that
Microsoft network client: Digitally sign communications (always) was disabled, and I also disabled
Microsoft network client: Digital sign communications (if server agrees) and it made no difference.
Any suggestions?
Thanks.