[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-relays] OPNsense under Tor relay load: 51% lower CPU cost by switching to Wireguard from IPsec



Hi all,

With the recent heavy traffic loads on Tor relays, there have been some chances to optimize.

Using OPNsense, even a small IPsec management VPN tunnel can increase CPU cost for relay traffic outside the tunnel. On OPNsense Business 26.10.0p1 / FreeBSD 15.1-RELEASE-p6, migrating ours to WireGuard and removing its ordinary IPsec policies reduced busy CPU from 79% to 39% at roughly 1.3 million ingress packets/s.

Across 28 traffic workload-matched before/after comparisons on the same boot, system-plus-interrupt CPU cost per packet fell 51%. Removing the ordinary IPsec policies enabled IPv4 fast forwarding while retaining PF checks and management encryption. Lower per-packet cost persisted through a 12-day follow-up.

Blog with details: https://1aeo.com/blog/opnsense-small-vpn-forwarding-cost.html

Before/after and 12-day chart attached.

Attachment: publickey - ceo@1aeo.com - 0x457BA251.asc
Description: application/pgp-keys

Attachment: image.png
Description: PNG image

Attachment: image.png
Description: PNG image

Attachment: signature.asc
Description: OpenPGP digital signature

_______________________________________________
tor-relays mailing list -- tor-relays@xxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to tor-relays-leave@xxxxxxxxxxxxxxxxxxxx