OpenVPN slow tx from linux client

This forum is for admins who are looking to build or expand their OpenVPN setup.
Forum rules
Please use the [oconf] BB tag for openvpn Configurations. See viewtopic.php?f=30&t=21589 for an example.
Post Reply
nikitovskij
OpenVpn Newbie
Posts: 4
Joined: Mon Aug 05, 2019 6:49 pm

OpenVPN slow tx from linux client

Post by nikitovskij » Mon Aug 05, 2019 6:57 pm

Dear all,

I have issue with tx from client to server from linux client that stucks at 2MB when doing it from Windows reach 6MB.
I heve tried different distro (mint, ubuntu, manjaro and so on), and all of them behave the same way.

I've tried to add the following on the config file of the linux client (from Windows works fine without any of this):

txqueuelen 1000
fragment 0
rcvbuf (tried few values)
sndbuf (tried few values)

I've done it on client and server (even if I dont' think it's a server problem as from Windows client all is fine without any of those settings).

So I do not want to change server configuration anymore.

I think it's something related to the linux client. Do you have any ideas?

here the clean config which works fine in windows:

client
dev tun
proto udp
remote xxxxxxx
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
comp-lzo
setenv opt block-outside-dns
key-direction 1
verb 3

Thank you

User avatar
Pippin
OpenVPN Expert
Posts: 461
Joined: Wed Jul 01, 2015 8:03 am

Re: OpenVPN slow tx from linux client

Post by Pippin » Mon Aug 05, 2019 7:21 pm

You can also try adding

Code: Select all

net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
to /etc/sysctl.conf
Then reboot or do

Code: Select all

sudo sysctl -p

nikitovskij
OpenVpn Newbie
Posts: 4
Joined: Mon Aug 05, 2019 6:49 pm

Re: OpenVPN slow tx from linux client

Post by nikitovskij » Wed Aug 07, 2019 11:28 am

Pippin wrote:
Mon Aug 05, 2019 7:21 pm
You can also try adding

Code: Select all

net.core.default_qdisc=fq
net.ipv4.tcp_congestion_control=bbr
to /etc/sysctl.conf
Then reboot or do

Code: Select all

sudo sysctl -p

Hi there, thank you for your help but it didn't work.
After that now I cannot reach remote lan anymore (surfing internet if fine insteed), how can I undo thos command?
I cancelled them from the sysctl.conf ran the command and rebooted... still cannot ping remote lan.

User avatar
Pippin
OpenVPN Expert
Posts: 461
Joined: Wed Jul 01, 2015 8:03 am

Re: OpenVPN slow tx from linux client

Post by Pippin » Wed Aug 07, 2019 12:05 pm

What does

Code: Select all

sudo sysctl -p
say?

nikitovskij
OpenVpn Newbie
Posts: 4
Joined: Mon Aug 05, 2019 6:49 pm

Re: OpenVPN slow tx from linux client

Post by nikitovskij » Wed Aug 07, 2019 12:33 pm

sorry my bad it's ok now regarding reaching remote lan, but still the issue with tx speed.

Thank you

nikitovskij
OpenVpn Newbie
Posts: 4
Joined: Mon Aug 05, 2019 6:49 pm

Re: OpenVPN slow tx from linux client

Post by nikitovskij » Sat Aug 10, 2019 1:29 pm

Anyone with any idea?

Post Reply