What's new

Openvpn Server very slow speed

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

unknownUser

Occasional Visitor
I've a RT-AC87U with 380.69 Asuswrt-Merlin.
I've Openvpn running as a Server, but the speeds are terrible when I connect to it.
I've tried it with several OS (Linux/Raspi, MacOS) and Broadband connections (University, Downstream 50-100Mbit and my upstream is 30MBit) and the result is always the same - the client can get only a few kb/s transfer speed. Any ideas?! Can someone confirm working for it with decent speeds?
 
When I remotely connect to my OpenVPN server and run a Speedtest I get 17 Mbps up 2.2 down

When I disconnect from the vpn server and run the test again I get 21 Mbps down 3.5 up

You say you have OpenVPN Client and Server running at the same time on the router.

What results do you get if you turn off OpenVPN Client and run the same tests again with just OpenVPN Server running.

(I have my second Server running on a TCP port rather than UDP, in which case I get 5Mbps down and 2.6 up.)
 
Last edited:
Haven't tried that, as I have configured a routing using always the VPN client, else the traffic is blocked.
Right now I get 0-3kb/s :(

I have the following in my FIREWALL-START:

iptables -I FORWARD -i br0 -o eth0 -j DROP

maybe I need a routing? My VPN server has the subnet 192.168.2.0/24, so something like this:?

iptables -I FORWARD -s 192.168.2.0/24 -i br0 -o eth0 -j ACCEPT


The system works like this INTRANET -> ASUS -> VPN -> MODEM for the VPN Client.
For the VPN Server it's like CLIENT -> VPN ISP WITH REDIRECTION -> MODEM -> ASUS where it connect. I think here is some issue. Can't really understand what connection I have in the end, and VPN connectin of the server running out of the vpn client connection!?!
 
Last edited:
Anyone? Still struggling. A VPN Client and Server is running on the Asus.
I am running simultaneous Openvpn Server with 2 users, the Openvpn client with 4 devices and Tor client with 1 device. My tests all show I am getting near the maximum throughputs I could expect after accounting for overhead.

All this is on 384.3 but I started with some of the above at 380.69 and it worked fine once I discovered the correct settings for each service. My speed results are very similar to what Martinr reports.. except for Tor which is just a slow speed network in general.
 
All this is on 384.3 but I started with some of the above at 380.69 and it worked fine once I discovered the correct settings for each service. My speed results are very similar to what Martinr reports.. except for Tor which is just a slow speed network in general.

Maybe you can help me then out? My aim is that none of the devices in the network connects to the internet without using the VPN Client of the Router. If the connection of the VPN Client ist down - there is no internet for the devices in my network.

Now I simply want to connect to the VPN Server.
I'm using my VPN Client's exit ip as the entry ip for my VPN Server with a port forwarding to 1192 - this is from my VPN provider.

And yes. I can connect, it seems to work but the speed is nearly 0 kb/s. Really puzzled

Tnx!
 
Last edited:
On the 87 the most you are going to see with OpenVPN is around 40~45 megabit. This is because of CPU limitations.

If you want faster you need to get a 86. This has hardware crypto. Can do 200~300 megabit with this router.

Dumped my 87 for an 86 a few weeks ago for this reason.
 
On the 87 the most you are going to see with OpenVPN is around 40~45 megabit. This is because of CPU limitations.

If you want faster you need to get a 86. This has hardware crypto. Can do 200~300 megabit with this router.

Dumped my 87 for an 86 a few weeks ago for this reason.

I'm perfectly fine with it, just need to get it running!
 
I'm perfectly fine with it, just need to get it running!

You are describing what sounds like standard features on 384.3. Its been a while since I ran 380.69 and am fuzzy on what features it had . When you go to the VPN section is there a tab called VPN Client? If not I would suggest upgrading to 384.3 and do a factory "initialize" followed by manually keying in your settings.

Let's assume you find a VPN Client there for OpenVPN. After you import your .ovpn file and adjust your settings... go to advanced settings section. Scroll down to 'redirect internet traffic' and select 'policy rules strict'. Then scroll down one line to 'block routed clients if tunnel goes down' choose yes. below that enter the individual devices you want redirected to the vpn client and blocked if tunnel is down.
 
Last edited:
go to advanced settings section. Scroll down to 'redirect internet traffic' and select 'policy rules strict'. Then scroll down one line to 'block routed clients if tunnel goes down' choose yes. below that enter the individual devices you want redirected to the vpn client and blocked if tunnel is down.

Wow, hot stupid I was! I tried all this manually in my firewall-start. Now I did it this way! Routing is working perfect, I will try tomorrow to connect to the VPN Server and check if it fixes my speed issue! Tnx!!!
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top