{"id":7338,"date":"2015-05-16T01:43:52","date_gmt":"2015-05-15T17:43:52","guid":{"rendered":"http:\/\/jpuyy.com\/?p=7338"},"modified":"2015-05-16T01:43:52","modified_gmt":"2015-05-15T17:43:52","slug":"nf_conntrack-table-full-dropping-packet-%e9%97%ae%e9%a2%98%e8%a7%a3%e5%86%b3","status":"publish","type":"post","link":"https:\/\/jpuyy.com\/?p=7338","title":{"rendered":"nf_conntrack: table full, dropping packet.\u95ee\u9898\u89e3\u51b3"},"content":{"rendered":"<p>centos6\u4e0b\u5728\u5e76\u53d1\u91cf\u5927\u7684\u65f6\u5019\u51fa\u73b0\u8fd9\u6837\u7684\u62a5\u9519<\/p>\n<p>nf_conntrack: table full, dropping packet.<br \/>\nnf_conntrack: table full, dropping packet.<br \/>\nnf_conntrack: table full, dropping packet.<\/p>\n<p>\u770b\u4e00\u4e0b nf_conntrack \u8868\u91cc\u7684\u8bb0\u5f55\u53ca\u6570\u91cf<\/p>\n<p>less \/proc\/net\/nf_conntrack<\/p>\n<p>wc -l \/proc\/net\/nf_conntrack<\/p>\n<p>\u5982\u679c\u8868\u6ee1\u4e86\u4f1a\u8fde ssh \u90fd\u8fde\u4e0d\u4e0a\u6765<\/p>\n<p>\u9ed8\u8ba4\u8868\u7684\u6700\u5927\u503c\u662f 65535<\/p>\n<p>cat \/proc\/sys\/net\/nf_conntrack_max<\/p>\n<p>\u9700\u8981\u4e34\u65f6\u52a0\u5927<\/p>\n<p>echo &#8216;100000&#8217; > \/proc\/sys\/net\/nf_conntrack_max<\/p>\n<p>\u9700\u8981\u6c38\u4e45\u751f\u6548<\/p>\n<p>\u5728 \/etc\/sysctl.conf \u91cc\u6dfb\u52a0<\/p>\n<p>net.nf_conntrack_max = 655360<br \/>\nnet.netfilter.nf_conntrack_max = 655350<br \/>\nnet.netfilter.nf_conntrack_tcp_timeout_established = 1200<\/p>\n<p>\u8fd9\u91cc\u6709\u4e2a\u5751\uff0c\u5982\u679c\u5728\u6ca1\u6709\u5f00\u542f iptables \u7684\u60c5\u51b5\u4e0b\u4f7f\u7528<\/p>\n<p>iptables -L -t nat<\/p>\n<p>\u4f1a\u5bfc\u81f4\u52a0\u8f7d nf_conntrack \u5e76\u4f7f\u7528\u9ed8\u8ba4\u503c\uff0c sysctl \u91cc\u7684\u503c\u5c31\u4e0d\u751f\u6548\u4e86<\/p>\n<p>\u8fd9\u65f6\u9700\u8981\u91cd\u542f\u4e00\u4e0b iptables \u624d\u80fd\u52a0\u8f7d sysctl \u4e2d\u7684\u503c<\/p>\n","protected":false},"excerpt":{"rendered":"<p>centos6\u4e0b\u5728\u5e76\u53d1\u91cf\u5927\u7684\u65f6\u5019\u51fa\u73b0\u8fd9\u6837\u7684\u62a5\u9519 nf_conntrack: table full, dropping packet. nf_conntrack: table full, dropping packet. nf_conntrack: table full, dropping packet. \u770b\u4e00\u4e0b nf_conntrack \u8868\u91cc\u7684\u8bb0\u5f55\u53ca\u6570\u91cf less \/proc\/net\/nf_conntrack wc -l \/proc\/net\/nf_conntrack \u5982\u679c\u8868\u6ee1\u4e86\u4f1a\u8fde ssh \u90fd\u8fde\u4e0d\u4e0a\u6765 \u9ed8\u8ba4\u8868\u7684\u6700\u5927\u503c\u662f 65535 cat \/proc\/sys\/net\/nf_conntrack_max \u9700\u8981\u4e34\u65f6\u52a0\u5927 echo &#8216;100000&#8217; > \/proc\/sys\/net\/nf_conntrack_max \u9700\u8981\u6c38\u4e45\u751f\u6548 \u5728 \/etc\/sysctl.conf \u91cc\u6dfb\u52a0 net.nf_conntrack_max = 655360 net.netfilter.nf_conntrack_max = 655350 net.netfilter.nf_conntrack_tcp_timeout_established = 1200 \u8fd9\u91cc\u6709\u4e2a\u5751\uff0c\u5982\u679c\u5728\u6ca1\u6709\u5f00\u542f iptables \u7684\u60c5\u51b5\u4e0b\u4f7f\u7528 iptables -L -t [&hellip;]<\/p>\n","protected":false},"author":3,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[92],"tags":[],"class_list":["post-7338","post","type-post","status-publish","format-standard","hentry","category-iptables"],"_links":{"self":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7338","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=7338"}],"version-history":[{"count":1,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7338\/revisions"}],"predecessor-version":[{"id":7339,"href":"https:\/\/jpuyy.com\/index.php?rest_route=\/wp\/v2\/posts\/7338\/revisions\/7339"}],"wp:attachment":[{"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=7338"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=7338"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/jpuyy.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=7338"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}