Skip to content

fix(ns-api): set default tun_mtu and mssfix values for OpenVPN configuration#1665

Merged
gsanchietti merged 2 commits into
mainfrom
fix_mtu_mssfix_default
May 13, 2026
Merged

fix(ns-api): set default tun_mtu and mssfix values for OpenVPN configuration#1665
gsanchietti merged 2 commits into
mainfrom
fix_mtu_mssfix_default

Conversation

@m-dilorenzi
Copy link
Copy Markdown
Collaborator

This pull request makes improvements to the handling of MTU and MSSFix configuration values in the OpenVPN API code. The changes ensure that default values are consistently applied and correct a bug in the assignment of these values in the tunnel listing logic.

Configuration defaults and bug fix:

  • Ensured that the tun_mtu and mssfix configuration options in set_configuration default to '1500' and '1450' respectively if not provided, improving robustness of the configuration process.
  • Fixed a bug in list_tunnels where tun_mtu and mssfix were incorrectly assigned to the client dictionary instead of the server dictionary, ensuring correct representation of server tunnel settings.

Closes: #1427

@m-dilorenzi m-dilorenzi requested a review from Tbaile May 13, 2026 12:39
@m-dilorenzi m-dilorenzi self-assigned this May 13, 2026
@m-dilorenzi m-dilorenzi marked this pull request as ready for review May 13, 2026 12:39
@m-dilorenzi m-dilorenzi force-pushed the fix_mtu_mssfix_default branch from 41cf205 to dc8c8dc Compare May 13, 2026 13:38
@gsanchietti gsanchietti merged commit c114b4e into main May 13, 2026
1 check passed
@gsanchietti gsanchietti deleted the fix_mtu_mssfix_default branch May 13, 2026 13:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

OpenVPN: Revert tun_mtu and mssfix values to OpenVPN 2.5 defaults to avoid MTU-related traffic issues

2 participants