Created
September 16, 2015 06:56
-
-
Save gkoyuncu/4d943f274324635e4f15 to your computer and use it in GitHub Desktop.
Snort TSO fix
This file contains 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
### | |
# 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