Slow Wifi speed with OpenVPN

Report wireless and/or network connectivity problems in this forum.

Moderator: Moderators

Post Reply
User avatar
registry
Posts: 4
Joined: Mon Oct 23, 2017 6:04 am

Slow Wifi speed with OpenVPN

Post by registry »

Hi,
I've 1043nd v2 with the latest 1.10.0 gargoyle version with a nominal 120 Mbps internet connection.
I would like to get the maximum from my wifi network. I've modified my wireless config according to the recommendations to my country:

Code: Select all

uci set wireless.radio0.country=HU
uci set wireless.radio0.channel=13
uci set wireless.radio0.htmode=HT40-
uci set wireless.radio0.noscan=1
uci set wireless.radio0.ar=1
uci set wireless.radio0.bursting=1
uci set wireless.radio0.ff=1
uci commit wireless && wifi
reboot
With these options, I can reach 110-105 Mbps with max 30-33% Memory usage, max 0.2 CPU usage.
However the 'iw reg get' command says the following:
global

Code: Select all

country HU: DFS-ETSI
        (2402 - 2482 @ 40), (N/A, 20), (N/A)
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)

phy#0
country US: DFS-FCC
        (2402 - 2472 @ 40), (N/A, 30), (N/A)
        (5170 - 5250 @ 80), (N/A, 23), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 23), (0 ms), DFS, AUTO-BW
        (5490 - 5730 @ 160), (N/A, 23), (0 ms), DFS
        (5735 - 5835 @ 80), (N/A, 30), (N/A)
        (57240 - 63720 @ 2160), (N/A, 40), (N/A)

global
country HU: DFS-ETSI
        (2402 - 2482 @ 40), (N/A, 20), (N/A)
        (5170 - 5250 @ 80), (N/A, 20), (N/A), AUTO-BW
        (5250 - 5330 @ 80), (N/A, 20), (0 ms), DFS, AUTO-BW
        (5490 - 5710 @ 160), (N/A, 27), (0 ms), DFS
        (57000 - 66000 @ 2160), (N/A, 40), (N/A)
Why: phy#0 country US: DFS-FCC
Is it normal?

Anyway, If I turn on the OpenVPN server (without active client) it consumes 30-32% Memory (same) and 0.45-0.60 of CPU resources.
But! the WIFI speed drastically drops down: 55-65 Mbps.

Do You have any suggestion how can I revert back the wifi speed to max with OpenVPN?
TL-WR1043nd V2; TL-WR740n V4; TL-WR741nd V4

Lantis
Moderator
Posts: 6753
Joined: Mon Jan 05, 2015 5:33 am
Location: Australia

Re: Slow Wifi speed with OpenVPN

Post by Lantis »

This usually means that your router won’t accept the country code and it is being overridden.

I do not recommend using “noscan = 1”. It is against regulatory requirements.

Your OpenVPN is taxing the CPU and dropping maximum available wifi speed. You can’t fix this without a faster router.
http://lantisproject.com/downloads/gargoyle_ispyisail.php for the latest releases
Please be respectful when posting. I do this in my free time on a volunteer basis.

Post Reply