speedtest --server 28124
Retrieving speedtest.net configuration...
Testing from Magyar Telekom (84.2.69.xxx)...
Retrieving speedtest.net server list...
Retrieving information for the selected server...
Hosted by Vodafone Magyarország Zrt. (Budapest) [59.36 km]: 11.801 ms
Testing download speed................................................................................
Download: 363.60 Mbit/s
Testing upload speed......................................................................................................
Upload: 433.55 Mbit/s
Side 2
>speedtest.exe -s 28124
Speedtest by Ookla
Server: Vodafone Magyarország Zrt. - Budapest (id = 28124)
ISP: Invitech ICT Services Kft.
Latency: 3.43 ms (0.09 ms jitter)
Download: 250.13 Mbps (data used: 267.3 MB)
Upload: 611.03 Mbps (data used: 850.5 MB)
Packet Loss: Not available.
Result URL: https://www.speedtest.net/result/c/cb4f6b90-e606-46e3-8fda-78806256c45e
iperf -s -p 60145
------------------------------------------------------------
Server listening on TCP port 60145
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7139
[ 5] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7140
[ 6] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7141
[ 7] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7142
[ 8] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7143
[ 9] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7144
[ 10] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7145
[ 11] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7146
[ 12] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7147
[ 13] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 7148
[ ID] Interval Transfer Bandwidth
[ 6] 0.0-10.2 sec 21.0 MBytes 17.3 Mbits/sec
[ 8] 0.0-10.2 sec 22.0 MBytes 18.2 Mbits/sec
[ 9] 0.0-10.2 sec 21.4 MBytes 17.7 Mbits/sec
[ 10] 0.0-10.2 sec 21.4 MBytes 17.7 Mbits/sec
[ 12] 0.0-10.1 sec 21.9 MBytes 18.1 Mbits/sec
[ 13] 0.0-10.2 sec 20.9 MBytes 17.3 Mbits/sec
[ 4] 0.0-10.2 sec 21.1 MBytes 17.4 Mbits/sec
[ 5] 0.0-10.2 sec 21.4 MBytes 17.7 Mbits/sec
[ 7] 0.0-10.2 sec 21.0 MBytes 17.3 Mbits/sec
[ 11] 0.0-10.2 sec 21.9 MBytes 18.1 Mbits/sec
[SUM] 0.0-10.2 sec 214 MBytes 177 Mbits/sec
Nice, this result through WG tunnel?
upd:// @Vamp, can you try to change sysctl params and test again with and without WG tunnel?
set system sysctl custom net.ipv4.tcp_congestion_control value 'htcp'
set system sysctl custom net.ipv4.tcp_mtu_probing value '1'
set system sysctl custom net.ipv4.tcp_window_scaling value '1'
------------------------------------------------------------
Server listening on TCP port 60145
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8734
[ 5] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8735
[ 6] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8736
[ 7] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8737
[ 8] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8738
[ 9] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8739
[ 10] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8740
[ 11] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8741
[ 12] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8742
[ 13] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8743
[ ID] Interval Transfer Bandwidth
[ 5] 0.0-10.1 sec 15.3 MBytes 12.7 Mbits/sec
[ 6] 0.0-10.1 sec 15.3 MBytes 12.7 Mbits/sec
[ 7] 0.0-10.1 sec 15.4 MBytes 12.7 Mbits/sec
[ 8] 0.0-10.2 sec 15.3 MBytes 12.7 Mbits/sec
[ 9] 0.0-10.1 sec 15.4 MBytes 12.7 Mbits/sec
[ 11] 0.0-10.1 sec 15.4 MBytes 12.7 Mbits/sec
[ 12] 0.0-10.1 sec 15.4 MBytes 12.8 Mbits/sec
[ 4] 0.0-10.2 sec 15.3 MBytes 12.7 Mbits/sec
[ 10] 0.0-10.2 sec 15.3 MBytes 12.7 Mbits/sec
[ 13] 0.0-10.2 sec 15.3 MBytes 12.6 Mbits/sec
[SUM] 0.0-10.2 sec 154 MBytes 127 Mbits/sec
indent preformatted text by 4 spaces
------------------------------------------------------------
Server listening on TCP port 60145
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.31.105 port 60145 connected with 192.168.32.2 port 8779
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 57.4 MBytes 48.2 Mbits/sec
without vpn
------------------------------------------------------------
Server listening on TCP port 60145
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 56032
[ 5] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 61682
[ 6] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 61440
[ 7] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 59485
[ 8] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 47612
[ 9] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 23915
[ 10] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 27296
[ 11] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 6096
[ 12] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 9240
[ 13] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 45368
[ ID] Interval Transfer Bandwidth
[ 8] 0.0-10.2 sec 13.2 MBytes 10.9 Mbits/sec
[ 10] 0.0-10.2 sec 13.3 MBytes 11.0 Mbits/sec
[ 11] 0.0-10.2 sec 13.2 MBytes 10.9 Mbits/sec
[ 4] 0.0-10.2 sec 14.3 MBytes 11.7 Mbits/sec
[ 5] 0.0-10.2 sec 14.3 MBytes 11.8 Mbits/sec
[ 6] 0.0-10.2 sec 13.2 MBytes 10.9 Mbits/sec
[ 7] 0.0-10.2 sec 13.3 MBytes 10.9 Mbits/sec
[ 9] 0.0-10.2 sec 13.2 MBytes 10.8 Mbits/sec
[ 12] 0.0-10.2 sec 12.3 MBytes 10.0 Mbits/sec
[ 13] 0.0-10.2 sec 13.2 MBytes 10.9 Mbits/sec
[SUM] 0.0-10.2 sec 134 MBytes 110 Mbits/sec
------------------------------------------------------------
Server listening on TCP port 60145
TCP window size: 128 KByte (default)
------------------------------------------------------------
[ 4] local 192.168.31.105 port 60145 connected with 62.77.201.114 port 31893
[ ID] Interval Transfer Bandwidth
[ 4] 0.0-10.0 sec 23.2 MBytes 19.4 Mbits/sec
A other people test it with a different network (1/1 Gbit network speed) and different machines (not vyos, he use CentOS and FreeBSD) and experience the same. One session is max 40 mbit… So i think it is a WG, not vyos problem.