[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
- To: Tor Relays List <tor-relays@xxxxxxxxxxxxxxxxxxxx>
- Subject: [tor-relays] OPNsense under Tor relay load: 51% lower CPU cost by switching to Wireguard from IPsec
- From: Tor at 1AEO via tor-relays <tor-relays@xxxxxxxxxxxxxxxxxxxx>
- Date: Mon, 30 Nov 2026 01:45:26 +0000
- Cc: Tor at 1AEO <tor@xxxxxxxx>
- Feedback-id: 134967009:user:proton
- List-id: "support and questions about running Tor relays (exit, non-exit, bridge)" <tor-relays.lists.torproject.org>
- Reply-to: "support and questions about running Tor relays (exit, non-exit, bridge)" <tor-relays@xxxxxxxxxxxxxxxxxxxx>
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.
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