Page 1 of 1

Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Wed Oct 21, 2020 6:28 am
by infra
Hey all,

I have a Raspberry Pi running Pihole + OVPN.

When I fully tunnel my traffic to my phone, the maximum download I get is 30-40mbit consistently; it literally looks like I'm getting throttled. At home, I have 1gbit fiber (down/up).

I checked the CPU for both my Pi and Router and they are barely being touched when I run fully tunneled traffic. I've also experimented with no vs. full compression but the change was negligible.

Any ideas if this is actually a thing or what I could do to improve the speed so that I'm able to take advantage of my home's upload bandwidth?


Cheers.

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Wed Oct 21, 2020 12:03 pm
by 300000
that is correct number nothing new about slow speed on openvpn you can try this one to see if speed can faster or not . adding all this on server config and restart again

hash-size 137552 155372
bcast-buffers 15310720
tcp-queue-limit 1
tun-mtu 60000
mssfix 0
fragment 0
sndbuf 39321006
rcvbuf 39321006
push "sndbuf 39321006"
push "rcvbuf 39321006"
push "route-method exe"



wireguard run on raspberry faster than openvpn you can try if you like .

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Fri Oct 23, 2020 6:30 am
by infra
300000 wrote:
Wed Oct 21, 2020 12:03 pm
that is correct number nothing new about slow speed on openvpn you can try this one to see if speed can faster or not . adding all this on server config and restart again

hash-size 137552 155372
bcast-buffers 15310720
tcp-queue-limit 1
tun-mtu 60000
mssfix 0
fragment 0
sndbuf 39321006
rcvbuf 39321006
push "sndbuf 39321006"
push "rcvbuf 39321006"
push "route-method exe"



wireguard run on raspberry faster than openvpn you can try if you like .

Thanks for the reply, mate. Is there anything else you can tell me about the reason why openvpn is capped to 30-40mbit upstream from the server? Is it an ISP related cap? Or perhaps point me in the right direction as to where I could read more about this?

Thanks for the tips.


I tried the suggested changes above on the server and was met with even slower performance (went from 30-40mbit down to 15-20mbit -- tested on several servers near my area).

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Fri Oct 23, 2020 1:07 pm
by 300000
natural openvpn is very slow speed . people talk about it all the time , that config on my raspberry 3+ and i can get 70 mb on my boandanb 200 up/down. if you like faster try wireguard it runs faster and can use multi cores than openvpn one olny one core.

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Fri Oct 23, 2020 1:33 pm
by TinCanTech
300000 wrote:
Fri Oct 23, 2020 1:07 pm
natural openvpn is very slow speed . people talk about it all the time
What a total load of rubbish

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Fri Oct 23, 2020 8:00 pm
by infra
TinCanTech wrote:
Fri Oct 23, 2020 1:33 pm
300000 wrote:
Fri Oct 23, 2020 1:07 pm
natural openvpn is very slow speed . people talk about it all the time
What a total load of rubbish
I'm curious to get your thoughts as well, TinCanTech. Would appreciate any documentation or discussion that talks about this limitation more in depth.

Thanks for the recommendation for WireGuard, I'll look that up.

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Fri Oct 23, 2020 8:28 pm
by 300000
you can search on google why does openvpn slow and you will find out , there are a lot people complaint about it , openvpn run only one core so if your cpu have multi core it cant use all of them and it run on user space so data will be transfer back and down take more time than other vpn tech.

if you pm me i can help you setup wireguard on raspberry and you will expect speed double on openvpn . i am running it now at the same time openvpn and wireguard on raspberry 3 and if run it on 1 gb up /down you can expect more than 100 mb for sure.

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Mon Nov 02, 2020 5:15 am
by infra
300000 wrote:
Fri Oct 23, 2020 8:28 pm
you can search on google why does openvpn slow and you will find out , there are a lot people complaint about it , openvpn run only one core so if your cpu have multi core it cant use all of them and it run on user space so data will be transfer back and down take more time than other vpn tech.

if you pm me i can help you setup wireguard on raspberry and you will expect speed double on openvpn . i am running it now at the same time openvpn and wireguard on raspberry 3 and if run it on 1 gb up /down you can expect more than 100 mb for sure.

I don't seem to have the ability to message you privately. I ended up reinstalling PiVPN w/ Wireguard. While it is a touch faster (50-60mbit), it's still slow in comparison to my total upload bandwidth (1gbit). I am running it on a Pi 4 and only connect mobile clients to it. I want to be able to get up to 150mbit.

Do you have any suggestions on how I might tweak the Wireguard server/client config to get faster performance in full tunneling mode?

Cheers.

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Mon Nov 02, 2020 9:53 am
by 300000
I am running wireguard on raspberry 4 too and got about 80 mb that max speed . I dont know which one faster . I try run on pi 4. l2tp.openvpn and wireguard but speed about 80 mb is max .

We are connecting over vpn so it is not as fast as on cable at home and over 60 mb still very fast too

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Mon Nov 02, 2020 5:14 pm
by Pippin
If this becomes a Wireguard topic I will close it...

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Mon Nov 02, 2020 10:16 pm
by TinCanTech
I don't think you need to close a wireguard topic ?

Openvpn already ships with wintun ..

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Mon Nov 02, 2020 10:27 pm
by Pippin
Topic did not start as that.
TS got "talked into it" and this is not the place, for WG support.
If at all then in Off topic.

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Mon Nov 02, 2020 11:53 pm
by TinCanTech
Pippin wrote:
Mon Nov 02, 2020 5:14 pm
If this becomes a Wireguard topic I will close it...
TinCanTech wrote:
Mon Nov 02, 2020 10:16 pm
I don't think you need to close a wireguard topic ?
Pippin wrote:
Mon Nov 02, 2020 10:27 pm
Topic did not start as that
infra wrote:
Wed Oct 21, 2020 6:28 am
Hey all,

I have a Raspberry Pi running Pihole + OVPN.

When I fully tunnel my traffic to my phone, the maximum download I get is 30-40mbit consistently; it literally looks like I'm getting throttled. At home, I have 1gbit fiber (down/up).

I checked the CPU for both my Pi and Router and they are barely being touched when I run fully tunneled traffic. I've also experimented with no vs. full compression but the change was negligible.

Any ideas if this is actually a thing or what I could do to improve the speed so that I'm able to take advantage of my home's upload bandwidth?


Cheers.
infra wrote:
Fri Oct 23, 2020 6:30 am
I tried the suggested changes above on the server and was met with even slower performance (went from 30-40mbit down to 15-20mbit -- tested on several servers near my area).
Started as somebody trying to improve the use of an online service provider ..

Re: Am I being throttled? Getting 30-40mbit down stream on a gig WAN

Posted: Tue Nov 03, 2020 5:00 am
by TinCanTech
TinCanTech wrote:
Fri Oct 23, 2020 1:33 pm
300000 wrote:
Fri Oct 23, 2020 1:07 pm
natural openvpn is very slow speed . people talk about it all the time
What a total load of rubbish
If OpenVPN does not work well then you probably configured it incorrectly.

Or your Service provider is a liar .. more often than not.

As for "speed" .. openvpn-dco kernel module.

And remember .. computers do what we tell them to do .. allegedly!