Server config:
port 1194
proto tcp
dev tun0
management localhost 8329
ca /usr/local/etc/openvpn/keys/ca.crt
cert /usr/local/etc/openvpn/keys/server.crt
key /usr/local/etc/openvpn/keys/server.key
dh /usr/local/etc/openvpn/keys/dh2048.pem
server 10.61.100.0 255.255.255.0
push "dhcp-option DNS 10.60.61.5"
push "dhcp-option DNS 10.60.61.6"
push "dhcp-option WINS 10.60.61.5"
push "route 10.60.61.0 255.255.255.0"
client-config-dir ccd
route 10.61.100.0 255.255.255.0
route 10.60.60.0 255.255.255.0
client-to-client
duplicate-cn
tls-timeout 120
auth none
cipher BF-CBC
keepalive 10 120
max-clients 10
user nobody
group nobody
persist-key
persist-tun
status /var/log/openvpn/openvpn-status.log
log /var/log/openvpn/openvpn.log
verb 6
I've tested connection speed using iperf twice: 1)directly over internet (without vpn) and 2) over vpn.
1: Rx=58Mbps, Tx=72Mbps
2: Rx=2Mbps, Tx=3Mbps
I've set mtu to 1450 and the speed over vpn is better now: Rx=10Mbps, Tx=16Mbps; but I think it should be close to direct connetction speed. How can I find out the correct mtu value?