OPNsense Forum

English Forums => Hardware and Performance => Topic started by: Rkpaxam on June 26, 2024, 08:15:38 AM

Title: Wireguard Killing Speed
Post by: Rkpaxam on June 26, 2024, 08:15:38 AM
Hi All

I am hoping someone can help me with an issue I'm having; I have 900 Mbps Down and 100 up, Wan. After a recent issue running WG on Unraid, but I need to work on Unraid, I figured I would set it up on my Opnsense router.
I followed this guide https://docs.opnsense.org/manual/how-tos/wireguard-client.html, and everything worked well. However, after an hour or two I would notice, my speeds go to 90 Down and 90 up.

Ive done some testing on other services I have set up in the last week ( Suricate, Hardcoded DNS, Firehol & crowdsec) All have been disabled one at a time to figure out which is the issue and it appears to be Wireguard as I disabled all the rules last night and the connection is still fine this morning.

Versions   OPNsense 24.1.9_4-amd64
FreeBSD 13.2-RELEASE-p11
OpenSSL 3.0.14
CPU type N100 4 threads

PPPOE
MTU: 1492
MSS: 1452

MSS in WG Normalization rule: 1444
Title: Re: Wireguard Killing Speed
Post by: Rkpaxam on June 26, 2024, 09:01:06 AM
Ok well its not Wireguard so i need to figure out why this is still happening :(
Title: Re: Wireguard Killing Speed
Post by: Rkpaxam on June 26, 2024, 09:49:17 AM
im getting the following in the logs so I'm not sure if this has anything to do with it:2024-06-26T08:37:40   Notice   kernel   <6>igc0: link state changed to UP   
2024-06-26T08:37:32   Notice   kernel   <6>igc0: link state changed to DOWN   
2024-06-26T08:37:31   Notice   kernel   <6>igc0: link state changed to UP   
2024-06-26T08:37:28   Notice   kernel   <6>igc0: link state changed to DOWN   
2024-06-26T08:37:26   Notice   kernel   <6>igc0: link state changed to UP   
2024-06-26T08:37:23   Notice   kernel   <6>igc0: link state changed to DOWN   
2024-06-26T08:37:22   Notice   kernel   <6>igc0: link state changed to UP
Title: Re: Wireguard Killing Speed
Post by: pfop on June 26, 2024, 11:49:33 AM
Quote from: Rkpaxam on June 26, 2024, 09:49:17 AM
im getting the following in the logs so I'm not sure if this has anything to do with it:2024-06-26T08:37:40   Notice   kernel   <6>igc0: link state changed to UP   
2024-06-26T08:37:32   Notice   kernel   <6>igc0: link state changed to DOWN   
2024-06-26T08:37:31   Notice   kernel   <6>igc0: link state changed to UP   
2024-06-26T08:37:28   Notice   kernel   <6>igc0: link state changed to DOWN   
2024-06-26T08:37:26   Notice   kernel   <6>igc0: link state changed to UP   
2024-06-26T08:37:23   Notice   kernel   <6>igc0: link state changed to DOWN   
2024-06-26T08:37:22   Notice   kernel   <6>igc0: link state changed to UP

This should not impact performance but kill the whole connection, it means that your interface igc0 is flapping. For example hardware issue or cable issue.