{"id":192127,"date":"2020-06-05T08:34:08","date_gmt":"2020-06-05T00:34:08","guid":{"rendered":"https:\/\/lrxjmw.cn\/?p=192127"},"modified":"2020-05-23T11:35:16","modified_gmt":"2020-05-23T03:35:16","slug":"network-iptraf-ng","status":"publish","type":"post","link":"https:\/\/lrxjmw.cn\/network-iptraf-ng.html","title":{"rendered":"\u6559\u4f60\u5982\u4f55\u4f7f\u7528\u7f51\u7edc\u6d41\u91cf\u67e5\u770b\u5de5\u5177-iptraf-ng"},"content":{"rendered":"\n\n\n
\u5bfc\u8bfb<\/td>\n\u672c\u6587\u6559\u4f60\u5982\u4f55\u4f7f\u7528\u7f51\u7edc\u6d41\u91cf\u67e5\u770b\u5de5\u5177-iptraf-ng \u3002<\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n

iptraf-ng \u53ef\u4ee5\u65b9\u4fbf\u67e5\u770b\u5f53\u524d\u670d\u52a1\u5668\u7f51\u7edc\u72b6\u51b5\uff1aCentOS 7.0\uff0c\u91c7\u7528\u4e86\u884d\u751f\u7248\u672ciptraf-ng \u3002<\/p>\n

iptraf-ng -h\r\nusage: iptraf-ng [options]\r\n   or: iptraf-ng [options] -B [-i <iface> | -d <iface> | -s <iface> | -z <iface> | -l <iface> | -g]\r\n\r\n    -h, --help            show this help message\r\n\r\n    -i <iface>            start the IP traffic monitor (use '-i all' for all interfaces)\r\n    -d <iface>            start the detailed statistics facility on an interface\r\n    -s <iface>            start the TCP and UDP monitor on an interface\r\n    -z <iface>            shows the packet size counts on an interface\r\n    -l <iface>            start the LAN station monitor (use '-l all' for all LAN interfaces)\r\n    -g                    start the general interface statistics\r\n\r\n    -B                    run in background (use only with one of the above parameters\r\n    -f                    clear all locks and counters\r\n    -t <n>                run only for the specified <n> number of minutes\r\n    -L <logfile>          specifies an alternate log file<\/pre>\n

 <\/p>\n

\u7b80\u8981\u6b65\u9aa4\uff1a<\/strong><\/div>\n

\u201ciptraf -g\u201d \u663e\u793a\u6bcf\u4e00\u4e2a\u7f51\u5361\u4e0a\u7684\u6d41\u91cf\uff1a<\/p>\n

\"\"<\/p>\n

\u201ciptraf -d eth0\u201d \u663e\u793a\u6307\u5b9a\u7f51\u5361\u4e0a\u7684\u6d41\u91cf\u7edf\u8ba1\uff0c\u603b\u4f53\u6d41\u91cf\u3001\u6d41\u5165\u91cf\u3001\u6d41\u51fa\u91cf\u3001\u4ee5\u53ca\u6309\u534f\u8bae\u5206\u7c7b\u7684\u6d41\u91cf\u7edf\u8ba1\uff1a<\/p>\n

\"\"<\/p>\n

\u201ciptraf -s eth0\u201d \u7edf\u8ba1\u5404port\u7684\u6d41\u91cf\uff1a<\/p>\n

\"\"<\/p>\n

\u201ciptraf -i eth0\u201d \u67e5\u770b\u8fdc\u7a0b\u4e3b\u673a\u7aef\u53e3\uff1a<\/p>\n

\"\"<\/p>\n

\u201ciptraf -i eth0\u201d \u7684\u8f93\u51fa\u5206\u4e3a\u4e24\u4e2a\u7a97\u53e3\uff0c\u4e0a\u9762\u662fTCP socket pairs\uff0c\u4e0b\u9762\u662fUDP\u3002\u6211\u4eec\u6839\u636e\u7aef\u53e3\u53f7 \u4f7f\u7528 lsof \u53ef\u4ee5\u627e\u5230\u5bf9\u5e94\u7684\u8fdb\u7a0b\u53f7\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"

iptraf-ng \u53ef\u4ee5\u65b9\u4fbf\u67e5\u770b\u5f53\u524d\u670d\u52a1\u5668\u7f51\u7edc\u72b6\u51b5\uff1aCentOS 7.0\uff0c\u91c7\u7528\u4e86\u884d\u751f\u7248\u672ciptraf-ng \u3002 […]<\/p>\n","protected":false},"author":63,"featured_media":192162,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[55],"tags":[],"class_list":["post-192127","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-thread"],"acf":[],"_links":{"self":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192127","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/users\/63"}],"replies":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/comments?post=192127"}],"version-history":[{"count":2,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192127\/revisions"}],"predecessor-version":[{"id":192135,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/posts\/192127\/revisions\/192135"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media\/192162"}],"wp:attachment":[{"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/media?parent=192127"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/categories?post=192127"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/lrxjmw.cn\/wp-json\/wp\/v2\/tags?post=192127"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}