I am having issues with OpenVPN while transferring a file through the SMB protocol. The issue is that the speed begins high for the file transfer, goes down and then it keeps going up and down at regular intervals. Probem Both the server and the client are windows.
What I have tried to fix:
1- I changed the MTU settings on both the server and client to mssfix 1420. I tried to change also the other related configs such as fragmentation but there was not really any improvement. This works with the ping test.
2- I changed the buffer size using, on the server side: sndbuf 524288 rcvbuf 524288 push "sndbuf 524288" push "rcvbuf 524288"
3- I have removed the lzo compression.
4- The server is listening on port 443 to avoid interference by the ISP.
5- The cypher is: cipher AES-128-CBC # AES
6- The used protocol for OpenVPN is UDP.
With the default configuration from OpenVPN, the situation was much worse. There was not the peak at the beginning. I managed to improve a bit by changing the MTU and the port.
Is there anything I can do to make this transfer constant?
I know I can because if I open a RDC to the server and copy a file through it the speed remains constant.
Thank you so much!