Wireguard server at TrueNAS and Slow transfer speeds (SMB, SCP, FTP)

Smarley

Explorer
Joined
Apr 11, 2016
Messages
64
Hi, after I face this problem, I upgrade to TrueNAS-13.0-U3.1 and it's still remaining the same.

I try the Wireguard server on a Jail and at a Ubuntu VM, same behavior on both.
I leave the pool with Jail/VM/Data to be transfer without Sync, same thing.

The Wireguard internet speed is fine, full bandwidth, around 400Mb to the client.

But when I try to transfer some files, it start slow and increase upt to 17Mbps and then go to 0 again, and start increasing again.
I tested with Samba, SCP, FTP.

I confirm that is related with the Wireguard because I tested the transfer with FTP without using the Wireguard and I got the full bandwidth.

Anyone facing the same problem?
Any sugestion about it?

Thank you.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
First of all, what test are you doing? Are you uploading or downloading? This subtle difference matters because ISP's often offer a lot of downstream, but no upstream bandwidth. As an example, my downstream is a speedy 350 Mbps, but only a paltry 11 Mbps.
 

Smarley

Explorer
Joined
Apr 11, 2016
Messages
64
First of all, what test are you doing? Are you uploading or downloading? This subtle difference matters because ISP's often offer a lot of downstream, but no upstream bandwidth. As an example, my downstream is a speedy 350 Mbps, but only a paltry 11 Mbps.
I tested first the internet speed, and I got 400/40 from the client side.
This is the client bandwidth limit.
So, I tried to copy a file through smb, and I should get 400Mb or something, and I got 5-17Mb.
When I access directly with FTP I can get around 320Mb download files.
But I don't want to leave FTP exposed, and also I need a simple way to copy the files to the PC without a FTP client.
 

Smarley

Explorer
Joined
Apr 11, 2016
Messages
64
But the same happens if I use FTP over Wireguard. And when I access with FTP directly at the open port it does not happen.
I will take a look, tks.
 

Smarley

Explorer
Joined
Apr 11, 2016
Messages
64
The reason might still be the same. I could be wrong though…
I saw the video, preatty nice.
In fact, I'm with 250ms of latency.

I will try tomorrow to open directly the port of Plex and see if I will work directly.
Otherwise, I will need to download the files with FPT without the Wireguard.
 

Whattteva

Wizard
Joined
Mar 5, 2013
Messages
1,824
I saw the video, preatty nice.
In fact, I'm with 250ms of latency.

I will try tomorrow to open directly the port of Plex and see if I will work directly.
Otherwise, I will need to download the files with FPT without the Wireguard.
How about if you use SFTP without Wireguard instead of FTP? Just trying to see if it is just Wireguard doing this or just encryption in general. Also, unlike FTP, SFTP is pretty secure, especially if you disable password-auth and strictly only use key-based auth.
 

Smarley

Explorer
Joined
Apr 11, 2016
Messages
64
Yes, I will try that.

The perfect world would be my Plex server here looking for the data with SMB, but let's see what is possible.
I did not want to download twice the files, and I'm doing that because the server is in a "free zone" overseas.

This is the transfer with FTP:
1675621811970.png


And this is with FTP (using local ip of server) via Wireguard:
1675622031145.png


Same package of files.

Obs: this files I can get around 300Mb with cable.
But is not possible to connect right now, I need to move the PC for it.
 

Smarley

Explorer
Joined
Apr 11, 2016
Messages
64
Any idea how can I grind this files a little bit quickly with 250ms of latency?
 
Top