Skip to content

Instantly share code, notes, and snippets.

@jsarenik
Created September 15, 2026 05:26
Show Gist options
  • Select an option

  • Save jsarenik/49e96ccd5766e71d42c351e2a7b12934 to your computer and use it in GitHub Desktop.

Select an option

Save jsarenik/49e96ccd5766e71d42c351e2a7b12934 to your computer and use it in GitHub Desktop.
MTU shell script
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
@jsarenik

Copy link
Copy Markdown
Author

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