Made time to test OpenVPN too.
These tests where done from client to PFS to client.
OVPN-Server:
Remote Access (SSL/TLS+User Auth)
udp
tun
tls static key 2048
Diffie Hellman 2048
Certs 2048
Encryption AES-256-CBC
Auth digest SHA512
prng RSA-SHA512 32
fast-io
tls-version-min 1.2 or-highest
No hardware crypto selected
No compression
OVPN-Client export:
dev tun
persist-tun
persist-key
cipher AES-256-CBC
auth SHA512
tls-client
client
resolv-retry infinite
remote 192.168.11.200 1194 udp
lport 0
verify-x509-name "OVPN-SERVER-CERT" name
auth-user-pass
ns-cert-type server
comp-lzo no
prng RSA-SHA512 32
tls-version-min 1.2 or-highest
Clients connect with:
Control channel: TLSv1.2 DHE-RSA-AES256-GCM-SHA384 2048 bit RSA
PFS:
System/ Advanced/ Miscellaneous - Cryptographic Hardware -> None
VPN/ OpenVPN/ Servers/ Edit - Inter-client communication -> Allowed
Command
:iperf3 -c 10.0.10.3 -t 30
With above config:
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.01 sec 534 MBytes 149 Mbits/sec sender
[ 4] 0.00-30.01 sec 534 MBytes 149 Mbits/sec receiver
Above + System/ Advanced/ Miscellaneous - Cryptographic Hardware -> AES-NI:
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.01 sec 530 MBytes 148 Mbits/sec sender
[ 4] 0.00-30.01 sec 530 MBytes 148 Mbits/sec receiver
Above + OVPN-Server BSD cryptodev engine:
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.01 sec 523 MBytes 146 Mbits/sec sender
[ 4] 0.00-30.01 sec 523 MBytes 146 Mbits/sec receiver
Above + add to client and server:
sndbuf 524288
rcvbuf 524288
Which gave:
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.01 sec 538 MBytes 150 Mbits/sec sender
[ 4] 0.00-30.01 sec 538 MBytes 150 Mbits/sec receiver
Above + no encryption
cipher none
auth none
[ ID] Interval Transfer Bandwidth
[ 4] 0.00-30.01 sec 967 MBytes 270 Mbits/sec sender
[ 4] 0.00-30.01 sec 967 MBytes 270 Mbits/sec receiver
I think the results for encryption and no encryption speak for themself.
I don`t need big speeds for my home use but if someone has a idea for why enabling/disabling engine makes no difference, i would like to read it.
What is this setting doing? For what does it apply?
System/ Advanced/ Miscellaneous - Cryptographic Hardware -> AES-NI
I did not test with that setting off and enabling only BSD crypto in OpenVPN Server, will do that next time.