My cheapo VPS that I've been using as an OpenVPN server has been ticking along nicely until today.
I noticed an odd issue where I tried to access a page on my home server which loads fairly large images whilst I was connected to the VPN and it would load about 5% of the image then fail, and the connection to that server/IP would also fail (ssh connection open in the background died).
I've since logged in to the VPS over ssh as I figured out it was that rather than my home server that was the issue.
If I try and download anything (wget or apt-get upgrade) the connection drops out around 250-300 KB into the download, then I can't retry whatever URL for around 5 mins.
OpenVPN can choke weaker machines/connections with the encryption. It adds a fair overhead to everything. Assuming you're using the VPN to bypass bullshit laws rather than for privacy, you could turn encryption off (cipher none) and ideally use PPTP rather than UDP or other.
Looks like it was some sort of DDoS protection kicking in. But that's a good tip anyway. I've seen very slow SCP transfers in the past on weak CPUs, where changing the cipher sped things up massively.
Yeah, I use SSHFS for letting things see the storage of other things and disabled the encryption as much as possible cos why not on an internal network.
(Tried NFS but found it surprisingly flaky and *way* more complex to set up).
Only played with NFS for one share after SMB was being odd. Always read about using NFS rather than SMB in all scenarios since it's supposed to be much quicker.
Should definitely be better than Samba, yeah. And I liked it apart from it just flaking out every couple of days. Probably my fault but I couldn't be arsed spending much time sorting it out since I don't need 99% of its features - I just want super-easy access to files across the network and sshfs is kinda perfect for that.
How are you mounting stuff? Via fstab?
I remember years ago having various issues with network shares dropping out mounted using fstab and having to do "mount -a" far too often. Then I moved to autofs and it fixed all issues. If you're already using it then no idea, if you're not it might be worth playing with.