Hi,
I've just tried setting up the VPN again from scratch this time using an install method from PiVPN (
http://www.pivpn.io/) which automates the install and setup process. Now it works the same way it did when I first added the tun-mtu etc. to my original sever config. Here's the config generated by the scripts:
dev tun
proto udp
port 700
ca /etc/openvpn/easy-rsa/pki/ca.crt
cert /etc/openvpn/easy-rsa/pki/issued/server.crt
key /etc/openvpn/easy-rsa/pki/private/server.key
dh /etc/openvpn/easy-rsa/pki/dh2048.pem
topology subnet
server 10.8.0.0 255.255.255.0
# server and remote endpoints
ifconfig 10.8.0.1 10.8.0.2
# Add route to Client routing table for the OpenVPN Server
push "route 10.8.0.1 255.255.255.255"
# Add route to Client routing table for the OPenVPN Subnet
push "route 10.8.0.0 255.255.255.0"
# your local subnet
push "route 0.0.0.0 "
# Set your primary domain name server address for clients
push "dhcp-option DNS 8.8.8.8"
push "dhcp-option DNS 8.8.4.4"
# Override the Client default gateway by using 0.0.0.0/1 and
# 128.0.0.0/1 rather than 0.0.0.0/0. This has the benefit of
# overriding but not wiping out the original default gateway.
push "redirect-gateway def1"
client-to-client
duplicate-cn
keepalive 10 120
tls-version-min 1.2
tls-auth /etc/openvpn/easy-rsa/pki/ta.key 0
cipher AES-256-CBC
auth SHA256
comp-lzo
user nobody
group nogroup
persist-key
persist-tun
#crl-verify /etc/openvpn/crl.pem
status /var/log/openvpn-status.log 20
status-version 3
log /var/log/openvpn.log
verb 1
# Generated for use by PiVPN.io
The only differences I can see here compared to my config is that TLS auth is on (and working, something that I could never get to work on my original setup) and the encryption is AES-256 instead of AES-128. Given that that's a higher encryption method I'd like to know why I'm getting the same speeds with this config as I was with my edited config originally???? Plus comp-lzo is also on which I had turned off as it was the first suggestion I came across when trying to increase the speed of OpenVPN. Any help in understanding why my config didn't work and how I could fix the issues there would be greatly appreciated.