OPNsense
  • Home
  • Help
  • Search
  • Login
  • Register

  • OPNsense Forum »
  • English Forums »
  • 21.1 Production Series »
  • MSS and IPSEC
« previous next »
  • Print
Pages: [1]

Author Topic: MSS and IPSEC  (Read 263 times)

olest

  • Newbie
  • *
  • Posts: 38
  • Karma: 0
    • View Profile
MSS and IPSEC
« on: March 30, 2021, 09:47:50 am »
Hi,

I have had a few new sites where I need to set MSS=1400 om LAN interface to get traffic through IPSEC tunnels.
Is that a "normal" problem?
Logged

goodomens42

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 3
    • View Profile
Re: MSS and IPSEC
« Reply #1 on: April 08, 2021, 07:03:17 am »
I think it is, if one of your IPSEC Endpoints is using a MTU less than default 1500 and PMTU-Discovery is broken between endpoints. In all tunnels with one endpoint on our Hetzner servers I have to use use MSS=1300 as they are running with MTU 1400 due to Hetzner Virtual Switch VLAN's.
Logged

Ricardo

  • Full Member
  • ***
  • Posts: 205
  • Karma: 9
    • View Profile
Re: MSS and IPSEC
« Reply #2 on: April 08, 2021, 07:55:06 pm »
On opnsense router what metrics/counters indicate that my vpn tunnel speed problem happens because of MTU / fragmentation?
Logged

goodomens42

  • Jr. Member
  • **
  • Posts: 51
  • Karma: 3
    • View Profile
Re: MSS and IPSEC
« Reply #3 on: April 08, 2021, 10:06:24 pm »
In my experience MTU problems mostly manifest not as speed problems, but connections with larger paket sizes stalling. For example ping goes through, ssh hangs once you type 'ls' in a directory with many files :)
Logged

Ricardo

  • Full Member
  • ***
  • Posts: 205
  • Karma: 9
    • View Profile
Re: MSS and IPSEC
« Reply #4 on: April 09, 2021, 01:44:57 pm »
How about high amount of fragmentation due to tunnel MTU smaller than endpoint MTU, and the constant fragmentation/re-assembly that can kill throughput?
Logged

Aergan

  • Newbie
  • *
  • Posts: 44
  • Karma: 8
    • View Profile
    • aergan.com
Re: MSS and IPSEC
« Reply #5 on: April 10, 2021, 11:07:15 am »
I set a Firewall normalisation rule for my IPSEC interface and set all traffic to Max MSS 1350 for that interface. That resolved it for my IPSEC tunnel to Azure (gleamed from their documentation).
Logged

Ricardo

  • Full Member
  • ***
  • Posts: 205
  • Karma: 9
    • View Profile
Re: MSS and IPSEC
« Reply #6 on: April 12, 2021, 06:05:54 am »
@Aergan: that "firewall normalisation" sounds plain chinese to me. What did you do exactly, any stepbystep guide to follow?
Logged

  • Print
Pages: [1]
« previous next »
  • OPNsense Forum »
  • English Forums »
  • 21.1 Production Series »
  • MSS and IPSEC
 

OPNsense is an OSS project © Deciso B.V. 2015 - 2021 All rights reserved
  • SMF 2.0.18 | SMF © 2021, Simple Machines
    Privacy Policy
    | XHTML | RSS | WAP2