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

Need help configuring your VPN? Just post here and you'll get that help.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
infra
OpenVpn Newbie
Posts: 4
Joined: Wed Oct 21, 2020 5:51 am

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

Post by infra » 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.

300000
OpenVPN Super User
Posts: 388
Joined: Tue May 01, 2012 9:30 pm

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

Post by 300000 » 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 .

infra
OpenVpn Newbie
Posts: 4
Joined: Wed Oct 21, 2020 5:51 am

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

Post by infra » Fri Oct 23, 2020 6:30 am

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).

300000
OpenVPN Super User
Posts: 388
Joined: Tue May 01, 2012 9:30 pm

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

Post by 300000 » Fri Oct 23, 2020 1:07 pm

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.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8141
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » 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

infra
OpenVpn Newbie
Posts: 4
Joined: Wed Oct 21, 2020 5:51 am

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

Post by infra » Fri Oct 23, 2020 8:00 pm

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.

300000
OpenVPN Super User
Posts: 388
Joined: Tue May 01, 2012 9:30 pm

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

Post by 300000 » 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.

infra
OpenVpn Newbie
Posts: 4
Joined: Wed Oct 21, 2020 5:51 am

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

Post by infra » Mon Nov 02, 2020 5:15 am

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.

300000
OpenVPN Super User
Posts: 388
Joined: Tue May 01, 2012 9:30 pm

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

Post by 300000 » Mon Nov 02, 2020 9:53 am

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

User avatar
Pippin
Forum Team
Posts: 929
Joined: Wed Jul 01, 2015 8:03 am

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

Post by Pippin » Mon Nov 02, 2020 5:14 pm

If this becomes a Wireguard topic I will close it...

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8141
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Mon Nov 02, 2020 10:16 pm

I don't think you need to close a wireguard topic ?

Openvpn already ships with wintun ..

User avatar
Pippin
Forum Team
Posts: 929
Joined: Wed Jul 01, 2015 8:03 am

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

Post by Pippin » Mon Nov 02, 2020 10:27 pm

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.

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8141
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Mon Nov 02, 2020 11:53 pm

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 ..

User avatar
TinCanTech
OpenVPN Protagonist
Posts: 8141
Joined: Fri Jun 03, 2016 1:17 pm

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

Post by TinCanTech » Tue Nov 03, 2020 5:00 am

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!

Post Reply