Skip to content

Instantly share code, notes, and snippets.

@gkoyuncu
Created September 16, 2015 06:56
Show Gist options
  • Save gkoyuncu/4d943f274324635e4f15 to your computer and use it in GitHub Desktop.
Save gkoyuncu/4d943f274324635e4f15 to your computer and use it in GitHub Desktop.
Snort TSO fix
###
# Disable TCP segmentation offloading (TSO). Snort discards packets longer than the MTU.
# See: https://s3.amazonaws.com/snort-org-site/production/document_files/files/000/000/067/original/packet-offloading-issues.pdf
disable_tso()
{
ifs=$(ifconfig -l | tr '[:blank:]' '\n' | grep -E 'em|igb')
for if in $ifs; do
ifconfig $if -tso4 -tso6
done
}
echo "applying tso fixes.."
disable_tso
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment