OPNsense Forum

English Forums => General Discussion => Topic started by: skydiablo on March 16, 2021, 02:37:14 PM

Title: MTU/MSS config for wireguard/VXLAN/bridge/vlan
Post by: skydiablo on March 16, 2021, 02:37:14 PM
hi, this is my current site-site layer 2 setup:


                             xxxxxxxxxxxx
                ┌──────┐     x          x       WAN via PPPoE
                │Router├─────x INTERNET x─────────────┐
                └──┬───┘     x          x             │
                   │         xxxxxxxxxxxx             │
                WAN│                                  │
┌──────────────────┴─┐                ┌───────────────┴──────┐
│OpnSense I          │                │OpnSense II           │
│                    │ WireGuard VPN  │                      │
│ ┌────────┐         │================│         ┌────────┐   │
│ │ BRIDGE ├─────────┼────────────────┼─────────┤ BRIDGE │   │
│ └┬───────┘  VXLAN  │================│  VXLAN  └────┬───┘   │
│  │                 │                │              │       │
│  │                 │                │          │   │VLAN100│
│  │                 │                │          ├───┘       │
└──┼─────────────────┘                │          │           │
   │                                  └──────────┼───────────┘
   │LAN                                       LAN│
                                                 ├───┐
                                                 │   │VLAN100


current speedtests (iperf) between bridge-to-bridge or vxlan-to-vxlan interfaces are round about 40MBit/s (up-/download), but my WAN-uplink supports 100/100MBit/s.
so, i think this problems relies on MTU/MSS miss configuration. all external links are default 1500 MTU values and can or should not change. i'm a bit confused about the "tunell in tunnel" (wireguard/vxlan) config and on the right hand side the PPPoE tunnel too :S
maybe someone can help me to define the right MTU/MSS values to bring mit layer2 site-to-site config in full speed!

thx, volker.
Title: Re: MTU/MSS config for wireguard/VXLAN/bridge/vlan
Post by: chemlud on March 16, 2021, 03:37:17 PM
1500 on PPPoE?

https://keremerkan.net/posts/wireguard-mtu-fixes/
Title: Re: MTU/MSS config for wireguard/VXLAN/bridge/vlan
Post by: mimugmail on March 17, 2021, 05:17:52 PM
Set MSS to 1300 on your internal for testing
Title: Re: MTU/MSS config for wireguard/VXLAN/bridge/vlan
Post by: skydiablo on April 28, 2021, 04:05:53 PM
which internal interface should i select to set the MSS to 1300?
Title: Re: MTU/MSS config for wireguard/VXLAN/bridge/vlan
Post by: mimugmail on April 28, 2021, 04:56:42 PM
LAN