testing with iperf on a 75mbit simmetric WAN connection between server and client I get
70-75 mbit/s throughput with TCP, off from openvpn
60-65 mbit/s throughput with UDP, off from openvpn
but inside openvpn UDP or TCP tunnel i got
50-55 mbit/s opening TCP connections
10-15 mbit/s opening UDP streams
Why am I loosing all of this bandwidth?
here my server config:
Code: Select all
##protocol port
port 22222
proto udp
dev tun0
##ip server client
topology subnet
server 10.0.1.0 255.255.255.128
##key
ca /etc/openvpn/VPN/ca.crt
cert /etc/openvpn/VPN/server.crt
key /etc/openvpn/VPN/server.key
dh /etc/openvpn/VPN/dh2048.pem
##option
persist-key
persist-tun
keepalive 10 60
reneg-sec 432000
##option auth.
comp-lzo
user openvpn
username-as-common-name
auth-user-pass-verify /etc/openvpn/scripts/login.sh via-env
client-config-dir /etc/openvpn/VPN/ccd/
##push to client
max-clients 50
push "persist-key"
push "persist-tun"
##DNS-Server
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
##script connect-disconnect
client-connect "/etc/openvpn/scripts/connect.sh '/etc/openvpn/VPN/ccd/'"
client-disconnect "/etc/openvpn/scripts/disconnect.sh '/etc/openvpn/VPN/ccd/'"
##log-status
status /etc/openvpn/VPN/log/status.log
log-append /etc/openvpn/VPN/log/openvpn.log
verb 4
#cipher
cipher AES-256-CBC
#fragmentation / MTU tuning
tun-mtu 1440
mtu-disc yes
fragment 0
mssfix 0
sndbuf 0
rcvbuf 0
fast-io
here my client config
Code: Select all
client
remote hostname 22222
ca '/VPN/ca.crt'
cert '/VPN/client.crt'
key '/VPN/client.key'
reneg-sec 432000
cipher AES-256-CBC
comp-lzo adaptive
float
dev tun10
proto udp
remote-cert-tls server
nobind
auth-nocache
script-security 2
persist-key
persist-tun
user nm-openvpn
group nm-openvpn
txqueuelen 1000
sndbuf 0
rcvbuf 0
fragment 0
mssfix 0
tun-mtu 1440
fast-io