Navigation

    Netgate Discussion Forum
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search

    Ipsec not using AES-NI?

    IPsec
    1
    2
    942
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • D
      don.key last edited by

      Hi,

      I am configuring a new pair of firewalls to provide Site to Site gigabit VPN link. Both machines have i7-4500U AES-NI enabled CPUs and run 2.4.2-RELEASE-p1 (amd64)

      Crypto is set to AES-NI and is working
      openssl speed -evp aes-256-cbc

      type             16 bytes     64 bytes    256 bytes   1024 bytes   8192 bytes
      aes-256-cbc      79567.75k   281417.23k  1357269.13k  3620354.84k 74564763.65k
      

      I see following iperf3 results between two devices (not firewalls themselves) on both ends:

      No VPN 	930 Mbits/sec
      OpenVPN 783 Mbits/sec
      IPSec 	439 Mbits/sec
      
      

      IPSec ESP is set to 'AES_CBC_128/HMAC_SHA1_96/NO_EXT_SEQ'

      Performance of IPSec seems not to change no matter what I do: disable crypto, set to AES-NI or BSD Cryptodev or both (of course with reboot after each change). openssl speed does see the changes but IPSec does not. Any idea why this can be?

      Thanks

      1 Reply Last reply Reply Quote 0
      • D
        don.key last edited by

        Fixed that…

        Changed encryption to: AES-128-GCM / SHA256 / DH 14 and IPSec performance jumped to 877 Mbit/sec.

        1 Reply Last reply Reply Quote 0
        • First post
          Last post