Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - deajan

#46
Hello,

I have a couple of OPNSense VMs that I usually run in Linux KVM hosts.
I usually pass the PCIE Intel I211AT cards directly to the VM via pci passthrough, thus avoiding virt driver issues.

When downloading "big" files via curl or wget, I noticed that I get 20-50Mbps which quickly fall down to 1-2Mbps.
Downloading in front of an OPNSense will give me about 80Mbps.

I've fooled a bit around, trying to disable suricata, zenarmor, etc...
I've also played with hardware offloading on ethernet cards. No better results.

Finally, I've changed the timer settings in libvirtd to something like

<clock offset='utc'>
    <timer name='hpet' present='yes'/>
    <timer name='hypervclock' present='yes'/>
    <timer name='rtc' tickpolicy='catchup'/>
    <timer name='pit' tickpolicy='delay'/>
    <timer name='kvmclock' present='yes'/>
  </clock>


I've also replaced the pc440fx-rhel7.6.0 emulation type with pc-q35-rhel9.0.0.
Having done these, I now get "correct speeds", about 20-40Mbps.

Anyone has experienced same issues ?

PS: setup is a VM with 4 vCPU, 8Gb RAM, 30Gb disk on a i5-8365U 4core computer which doesn't use 10% of it's CPU.

Best regards.
#47
23.1 Legacy Series / Re: WireGuard speed
March 21, 2023, 04:21:16 PM
Quote from: tiermutter on March 20, 2023, 08:29:45 AM
For Win10 I found MTU = 1372 best working. With default I also got very very low speeds.

Try

[Interface]
MTU = 1372

in client config.

Interesting, since the default MTU value is 1420 bytes which is biger than the value you're advicing.
There shouldn't be any fragmentation when using a bigger MTU.
Could you care to explain perhaps ?

Does wireguard merge two SMB packets only to see that it will need to be fragmented or so ?

Thanks ;)
#48
Has anyone used OPNsense with VXLAN/GENEVE/GRETAP over Wireguard successfully ?
#49
AFAIK you can't have jumbo frames on WAN links ;)

But the --tun-mtu option is for the internal tunnel only, see https://community.openvpn.net/openvpn/wiki/Gigabit_Networks_Linux (tweaked setup part).

To be honest, of the 4 tuning options I talked asked about, I never experienced this particular one myself, I just added it to my wishlist.
#50
Thank you for that answer.

OpenVPN isn't really the performance choice if I remember my past experiences with it (didn't get better than 30% of my raw bandwidth most of the times).

I used to try to speedup openvpn by using UDP encapsulation, aes-ni cpu support, tcp offloading and tunnel jumbo MTU sizes.
Are these options possible with OPNsense ?

Best regards.
#51
Hello,

I am currently seeking a way to create cheap layer 2 tunnels accros WAN links.
My primarty goal is to interconnect two sites (A and B) just like using a (very long) ethernet cable.

The scenario is the following:
- Site A and site B are in different countries, both have quite okay WAN links (RTT between sites is 14ms)
- Site A has some industrial machines which are operated by some specific industrial computers
- Site B has perfect clones of the industrial computers of site A

Whenever one/more computers of site A fails, I'd like the clones from site B to interact directly with the industrial machines from site A (as disaster plan).

Most of the traffic is layer 3 (TCP/UDP/ICMP), but some traffic is layer 2 (ARP, VLAN, DHCP).
The layer 2 traffic is mandatory for that setup to work, so I am heading for a layer 2 tunnel.

So far I've looked at the following routes:

- L2TP over IPsec: looks like a big overhead to me, ie 128 bytes of headers
- OpenVPN tap: well OpenVPN is very slow compared to IPSec / Wireguard, and I would like to achieve as much bandwidth and low latency as I may get. So OpenVPN is the fallback if I don't get anything to work
- VxLAN (or GENEVE, or GRETAP) over Wireguard: looks promising ?
- Tinc ?
- Zerotier ?

So here are my questions:
What's the best solution (the most performance oriented one, without sacrificing security) ?
Has anyone achieved a good performing layer 2 tunnel setup with OPNsense yet ?

Any feedback is appreciated.

Thanks.

PS: This is my first post on the OPNsense forum (former pfSense user), so I probably don't know OPNsense good enough yet ;)