{"id":374,"date":"2016-01-20T10:12:02","date_gmt":"2016-01-20T10:12:02","guid":{"rendered":"http:\/\/www.haxed.me.uk\/?p=374"},"modified":"2016-01-20T10:12:02","modified_gmt":"2016-01-20T10:12:02","slug":"disable-tcp-offloading-on-linux-nic","status":"publish","type":"post","link":"https:\/\/haxed.me.uk\/index.php\/2016\/01\/20\/disable-tcp-offloading-on-linux-nic\/","title":{"rendered":"Disable TCP Offloading on Linux NIC"},"content":{"rendered":"<pre>\r\n# read -p \"Interface: \" iface; ethtool -k $iface | awk -F: '\/offload: on$\/{print$1}' | sed 's\/^\\(.\\).*-\\(.\\).*-\\(.\\).*\/\\1\\2\\3\/' | xargs --no-run-if-empty -n1 -I{} ethtool -K $iface {} off\r\n\r\n\r\nDisable offloading for all interfaces:\r\n\r\n# for iface in $(cd \/sys\/class\/net; echo *); do ethtool -k $iface | awk -F: '\/offload: on$\/{print$1}' | sed 's\/^\\(.\\).*-\\(.\\).*-\\(.\\).*\/\\1\\2\\3\/' | xargs --no-run-if-empty -n1 -I{} ethtool -K $iface {} off; done\r\n\r\n<\/pre>\n<p>A big thank you to Daniel C. for this!<\/p>\n","protected":false},"excerpt":{"rendered":"<p># read -p &#8220;Interface: &#8221; iface; ethtool -k $iface | awk -F: &#8216;\/offload: on$\/{print$1}&#8217; | sed &#8216;s\/^\\(.\\).*-\\(.\\).*-\\(.\\).*\/\\1\\2\\3\/&#8217; | xargs &#8211;no-run-if-empty -n1 -I{} ethtool -K $iface {} off Disable offloading for all interfaces: # for iface in $(cd \/sys\/class\/net; echo *); &hellip; <a href=\"https:\/\/haxed.me.uk\/index.php\/2016\/01\/20\/disable-tcp-offloading-on-linux-nic\/\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[19,9,7,4],"tags":[],"class_list":["post-374","post","type-post","status-publish","format-standard","hentry","category-bash","category-linux","category-management-tools","category-networking"],"_links":{"self":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/374","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/comments?post=374"}],"version-history":[{"count":1,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/374\/revisions"}],"predecessor-version":[{"id":375,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/posts\/374\/revisions\/375"}],"wp:attachment":[{"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/media?parent=374"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/categories?post=374"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/haxed.me.uk\/index.php\/wp-json\/wp\/v2\/tags?post=374"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}