Skip to content

Conversation

@cheina97
Copy link
Member

@cheina97 cheina97 commented Jan 5, 2026

Description

This PR implements the TCP MSS Clamping action inside the FirewallConfiguration controller and apply it inside the gateways. It is enabled by default and does not require manual configuration.

VPN tunnels introduce extra overhead that reduces the effective Maximum Transmission Unit (MTU), causing standard-sized internet packets to exceed the tunnel's capacity and be dropped. TCP MSS Clamping resolves this by intercepting the initial connection handshake and dynamically rewriting the Maximum Segment Size (MSS) value to match the smaller available space of the tunnel interface. This crucial adjustment forces the remote server to generate smaller data packets that fit perfectly inside the VPN tunnel, effectively preventing fragmentation issues and the common "black hole" phenomenon where connections establish but data transfer hangs indefinitely.

This concept, applied inside the gateway, allows us to:

  • Avoid UDP fragmentation in case the CNI MTU is equal to the one used on the link between the 2 clusters
  • Allows the use of MTUs lower than the one used by the CNI. This does not compromise the MTU used by local pods to communicate with each other.

@adamjensenbot
Copy link
Collaborator

Hi @cheina97. Thanks for your PR!

I am @adamjensenbot.
You can interact with me issuing a slash command in the first line of a comment.
Currently, I understand the following commands:

  • /rebase: Rebase this PR onto the master branch (You can add the option test=true to launch the tests
    when the rebase operation is completed)
  • /merge: Merge this PR into the master branch
  • /build Build Liqo components
  • /test Launch the E2E and Unit tests
  • /hold, /unhold Add/remove the hold label to prevent merging with /merge

Make sure this PR appears in the liqo changelog, adding one of the following labels:

  • feat: 🚀 New Feature
  • fix: 🐛 Bug Fix
  • refactor: 🧹 Code Refactoring
  • docs: 📝 Documentation
  • style: 💄 Code Style
  • perf: 🐎 Performance Improvement
  • test: ✅ Tests
  • chore: 🚚 Dependencies Management
  • build: 📦 Builds Management
  • ci: 👷 CI/CD
  • revert: ⏪ Reverts Previous Changes

@github-actions github-actions bot added the refactor Reorganizes or optimizes code without changing its behavior label Jan 5, 2026
@github-actions github-actions bot removed the refactor Reorganizes or optimizes code without changing its behavior label Jan 5, 2026
@cheina97
Copy link
Member Author

cheina97 commented Jan 5, 2026

/build

@cheina97
Copy link
Member Author

cheina97 commented Jan 5, 2026

/build

@cheina97 cheina97 force-pushed the frc/mssclamping branch 4 times, most recently from 295c30d to 39027a2 Compare January 6, 2026 10:44
@github-actions github-actions bot added the feat Adds a new feature to the codebase label Jan 6, 2026
@cheina97
Copy link
Member Author

cheina97 commented Jan 6, 2026

/rebase test=true

@cheina97 cheina97 force-pushed the frc/mssclamping branch 2 times, most recently from a5700d3 to a4d5c67 Compare January 7, 2026 11:58
@github-actions github-actions bot added the chore Miscellaneous tasks that don't modify application logic (e.g., updating dependencies or build tasks) label Jan 7, 2026
@github-actions github-actions bot removed the chore Miscellaneous tasks that don't modify application logic (e.g., updating dependencies or build tasks) label Jan 7, 2026
@cheina97 cheina97 force-pushed the frc/mssclamping branch 2 times, most recently from 648d8a1 to b4398bf Compare January 7, 2026 14:01
@cheina97
Copy link
Member Author

cheina97 commented Jan 7, 2026

/test

@cheina97
Copy link
Member Author

cheina97 commented Jan 7, 2026

/build

@cheina97
Copy link
Member Author

cheina97 commented Jan 7, 2026

/rebase test=true

@cheina97 cheina97 force-pushed the frc/mssclamping branch 2 times, most recently from 3946b52 to 296cbda Compare January 7, 2026 16:56
@cheina97
Copy link
Member Author

cheina97 commented Jan 7, 2026

/rebase test=true

@cheina97
Copy link
Member Author

cheina97 commented Jan 7, 2026

/test

@cheina97
Copy link
Member Author

cheina97 commented Jan 8, 2026

/test

@cheina97
Copy link
Member Author

cheina97 commented Jan 8, 2026

/build

@cheina97
Copy link
Member Author

cheina97 commented Jan 9, 2026

/test

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

Labels

feat Adds a new feature to the codebase size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants