Created
September 15, 2026 05:26
-
-
Save jsarenik/49e96ccd5766e71d42c351e2a7b12934 to your computer and use it in GitHub Desktop.
MTU shell script
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| for size in $(seq 1450 1480) | |
| do | |
| ping -M do -s $size -c 1 -W 1 1.1.1.1 \ | |
| >/dev/null 2>&1 \ | |
| && echo "Payload $size works (MTU: $((size+28)))" \ | |
| || { | |
| echo "Payload $size FAILS" | |
| break | |
| } | |
| done |
Author
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
https://share.google/aimode/LrMzn4c8zfA4h2r9M