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

Need a way to override hardcoded max UDP message size of 9012 #357

Open
frs3 opened this issue May 14, 2022 · 4 comments
Open

Need a way to override hardcoded max UDP message size of 9012 #357

frs3 opened this issue May 14, 2022 · 4 comments

Comments

@frs3
Copy link

frs3 commented May 14, 2022

The max UDP message size is currently hardcoded to 9012. We would like to increase it, since our max workload message size is greater.

Quick fix:

export CHISEL_UDP_MAX_SIZE=12000

share\tunnel\tunnel_out_ssh_udp.go:80
share\tunnel\tunnel_in_proxy_udp.go:83

const maxMTU = settings.EnvInt("UDP_MAX_SIZE", 9012)

or command line param e.g. --udp-max-size 12000

@Masterxilo
Copy link
Contributor

why don't you create a pull request?

It should probably read const maxMTU = settings.EnvInt("CHISEL_UDP_MAX_SIZE", 9012).
Or as you said, use a command line param. Does chisel/go have a library (integrated) that allows both? Might be useful to be able to provide all commandline options via env. variables (or a config file), whatever is most convenient.

@jpillora
Copy link
Owner

Yep happy to put max MTU behind a env setting

@jpillora
Copy link
Owner

Plz raise PR

@frs3
Copy link
Author

frs3 commented Jun 17, 2022 via email

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

No branches or pull requests

3 participants