Speed Issues

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
atton
OpenVpn Newbie
Posts: 1
Joined: Sat Feb 15, 2020 4:19 am

Speed Issues

Post by atton » Sat Feb 15, 2020 4:50 am

I've been running openvpn for a while now with quite some degree of success. But I seem to have ran into a bit of a problem with the lan networking aspect of the vpn itself. For example the server itself has a local ip of 10.8.0.1 and whenever a client attempts to pull files from it. I have noticed a maximum speed of around 300kbps. Which is far lower than it would be using a direct connection, as such I have attempted to play around with the mtu and buffer settings. But I seem to fall short of seeing real improvement and I am quickly running out of ideas as to the cause of this problem.

I am using port 443 to bypass firewalls and the server in question is hosted by ovh. Is there a way to fix the speed problems or is this a non starter?

Client file

Code: Select all

client
dev tun
proto udp
remote x.x.x.x 443
resolv-retry infinite
nobind
persist-key
persist-tun
remote-cert-tls server
auth SHA512
cipher AES-256-CBC
ignore-unknown-option block-outside-dns
block-outside-dns
verb 3

sndbuf 393216
rcvbuf 393216
push "sndbuf 393216"
push "rcvbuf 393216"

Server File

Code: Select all

local x.x.x.x
#port 1194
port 443
proto udp
dev tun
ca ca.crt
cert server.crt
key server.key
dh dh.pem
auth SHA512
tls-crypt tc.key
topology subnet
server 10.8.0.0 255.255.255.0
ifconfig-pool-persist ipp.txt
push "redirect-gateway def1 bypass-dhcp"
push "dhcp-option DNS 213.186.33.99"
keepalive 10 120
cipher AES-256-CBC
user nobody
group nogroup
persist-key
persist-tun
status openvpn-status.log
verb 3
crl-verify crl.pem
explicit-exit-notify



sndbuf 0
rcvbuf 0
push "sndbuf 393216"
push "rcvbuf 393216"

Post Reply