Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support IKEv2 fragmentation via UI #8459

Open
snowsnoot opened this issue Mar 19, 2025 · 8 comments
Open

Support IKEv2 fragmentation via UI #8459

snowsnoot opened this issue Mar 19, 2025 · 8 comments
Labels
support Community support

Comments

@snowsnoot
Copy link

Important notices

Before you add a new report, we ask you kindly to acknowledge the following:

Is your feature request related to a problem? Please describe.

A clear and concise description of what the problem is including your motivation for the request,
i.e. "For the purpose of [...] I am missing a solution that will [...]."

Opnsense currently uses Strongswan as it's IKEv2 VPN provider, which supports the IKEv2 fragmentation feature (RFC 7383) via the 'fragmentation = yes' configuration directive in swanctl.conf, however this is not implemented in the UI. IKEv2 fragmentation is an important feature to overcome MTU issues caused by additional ESP encapsulation overheads when using IPSec.

Describe the solution you like

A clear and concise description of what you want to happen.
(e.g. I would like an input field in the /ui/firewall/alias which would add .... to ....)

Implement the Strongswan IKEv2 fragmentation feature in the UI. Currently fragmentation is working if we add "fragmentation = yes" to the connection properties in /usr/local/etc/swanctl/swanctl.conf but it is overwritten on upgrade and if the connection properties are changed from the UI.

Describe alternatives you considered

A clear and concise description of any alternative solutions or features you considered.

Manual configuration, via cronjob etc to keep the configuration persistent.

Additional context

Add any other context or screenshots about the feature request here or links to relevant forum thread or similar

@AdSchellevis
Copy link
Member

you are aware the default is "yes"? (https://docs.strongswan.org/docs/latest/swanctl/swanctlConf.html)

@AdSchellevis AdSchellevis added the support Community support label Mar 19, 2025
@snowsnoot
Copy link
Author

Actually no, I was not aware, so thanks for pointing this out. However, a) it does not work for me unless explicitly enabled (perhaps an upstream issue?) and b) it may still be beneficial to be able to toggle the feature on/off depending on the use case?

@AdSchellevis
Copy link
Member

I'm not sure it's worth the effort as I have never heard anyone asking to disable it. when it's an upstream issue, best check the bug tracker at strongswan.

@snowsnoot
Copy link
Author

Is there any workaround possible from an Opnsense perspective to have this configuration made persistent?

@AdSchellevis
Copy link
Member

manually define a configuration (see our documentation for details)? I highly doubt the defaults are not being persisted, but as said, upstream bugs are best searched upstream.

@snowsnoot
Copy link
Author

Agreed that upstream issues are better handled.. upstream. This is a feature request issue, if you don't want to implement it, then feel free to close the issue.

@AdSchellevis
Copy link
Member

My point is, the feature already exists, it's enabled by default, which was the request, which makes it likely there is another issue (in which case implementation is rather pointless).

@snowsnoot
Copy link
Author

Perhaps my request wasn't clear. Now that I know this feature is enabled by default, as I mentioned above, the feature request would be to enable toggling of the fragmentation on or off. Even though it is enabled by default, it may be beneficial to turn it off depending on the use case.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
support Community support
Development

No branches or pull requests

2 participants