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

[docker] Allow setting MTU at container startup ($SET_MTU) #3

Open
msune opened this issue Sep 27, 2024 · 0 comments
Open

[docker] Allow setting MTU at container startup ($SET_MTU) #3

msune opened this issue Sep 27, 2024 · 0 comments
Labels
docker Docker container feature

Comments

@msune
Copy link
Member

msune commented Sep 27, 2024

Add an environment variable $SET_MTU=<val> that would set/adjust $IFACES MTU according to val:

  • "auto": based on the funneling (only) rules, reduce the MTU of $IFACES by either 20 bytes (TCP) or 8 bytes (UDP).
  • numeric_value: fix the MTU to a particular numeric value. Value should be in the range of 64-9216.
  • "": do nothing

A reasonable default should be picked, probably auto (?). In either of the cases the entrypoint.sh should log as INFO the detected MTU (important for debugging).

This issue includes CI coverage.

@msune msune added feature docker Docker container labels Sep 27, 2024
@msune msune changed the title [docker] $SET_MTU to $IFACES at container startup [docker] $SET_MTU at container startup Sep 27, 2024
@msune msune changed the title [docker] $SET_MTU at container startup [docker] Allow setting MTU at container startup ($SET_MTU) Oct 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docker Docker container feature
Projects
None yet
Development

No branches or pull requests

1 participant