{"id":3030,"date":"2019-06-13T12:21:44","date_gmt":"2019-06-13T04:21:44","guid":{"rendered":"https:\/\/www.linuxcool.com\/?p=3030"},"modified":"2019-06-13T12:21:46","modified_gmt":"2019-06-13T04:21:46","slug":"iptraf","status":"publish","type":"post","link":"https:\/\/www.linuxcool.com\/iptraf","title":{"rendered":"iptraf\u547d\u4ee4 – \u5b9e\u65f6\u76d1\u89c6\u7f51\u5361\u6d41\u91cf"},"content":{"rendered":"\n
iptraf\u547d\u4ee4\u7684\u5168\u62fc\u662f\u201cIP traffic monitor\u201d\uff0ciptraf\u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u5730\u76d1\u89c6\u7f51\u5361\u6d41\u91cf\uff0c\u53ef\u4ee5\u751f\u6210\u7f51\u7edc\u534f\u8bae\u6570\u636e\u5305\u4fe1\u606f\u3001\u4ee5\u592a\u7f51\u4fe1\u606f\u3001\u7f51\u7edc\u8282\u70b9\u72b6\u6001\u548cip\u6821\u9a8c\u548c\u9519\u8bef\u7b49\u4fe1\u606f\u3002 <\/p>\n\n\n\n
iptraf\u547d\u4ee4\u652f\u6301\u547d\u4ee4\u884c\u548c\u83dc\u5355\u64cd\u4f5c\u4e24\u79cd\u65b9\u5f0f\uff0c\u5f53\u4e0d\u5e26\u4efb\u4f55\u53c2\u6570\u662fiptraf\u547d\u4ee4\u5c06\u8fdb\u5165\u83dc\u5355\u64cd\u4f5c\u65b9\u5f0f\uff0c\u901a\u8fc7\u5c4f\u5e55\u83dc\u5355\u6765\u6267\u884c\u76f8\u5e94\u64cd\u4f5c\u3002<\/p>\n\n\n\n
\u8bed\u6cd5\u683c\u5f0f\uff1a<\/strong>iptraf [\u53c2\u6570] [\u7f51\u5361]<\/p>\n\n\n\n \u5e38\u7528\u53c2\u6570\uff1a<\/strong><\/p>\n\n\n\n \u53c2\u8003\u5b9e\u4f8b<\/strong><\/p>\n\n\n\n \u76d1\u89c6\u7f51\u5361eth0\u7684\u8be6\u7ec6\u6d41\u91cf\uff1a<\/p>\n\n\n\n \u76d1\u89c6\u7f51\u5361eth0\u7684\u8be6\u7ec6ip\u6d41\u91cf\uff1a <\/p>\n\n\n\n \u76d1\u89c6\u7f51\u5361eth0\u7684\u8be6\u7ec6tcp\/udp\u6d41\u91cf\uff1a <\/p>\n\n\n\n iptraf\u547d\u4ee4\u7684\u5168\u62fc\u662f\u201cIP traffic monitor\u201d\uff0ciptraf\u547d\u4ee4\u53ef\u4ee5\u5b9e\u65f6\u5730\u76d1\u89c6\u7f51\u5361\u6d41\u91cf\uff0c\u53ef\u4ee5 […]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":[],"categories":[6],"tags":[],"_links":{"self":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3030"}],"collection":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/comments?post=3030"}],"version-history":[{"count":3,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3030\/revisions"}],"predecessor-version":[{"id":3175,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/posts\/3030\/revisions\/3175"}],"wp:attachment":[{"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/media?parent=3030"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/categories?post=3030"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.linuxcool.com\/wp-json\/wp\/v2\/tags?post=3030"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}-i<\/td> \u7acb\u5373\u5728\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u4e0a\u5f00\u542fIP\u6d41\u91cf\u76d1\u89c6<\/td><\/tr> -g<\/td> \u7acb\u5373\u5f00\u59cb\u751f\u6210\u7f51\u7edc\u63a5\u53e3\u7684\u6982\u8981\u72b6\u6001\u4fe1\u606f<\/td><\/tr> -d<\/td> \u5728\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u4e0a\u7acb\u5373\u5f00\u59cb\u76d1\u89c6\u660e\u7ec6\u7684\u7f51\u7edc\u6d41\u91cf\u4fe1\u606f<\/td><\/tr> -s<\/td> \u5728\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u4e0a\u7acb\u5373\u5f00\u59cb\u76d1\u89c6TCP\u548cUDP\u7f51\u7edc\u6d41\u91cf\u4fe1\u606f<\/td><\/tr> -z<\/td> \u5728\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u4e0a\u663e\u793a\u5305\u8ba1\u6570<\/td><\/tr> -l<\/td> \u5728\u6307\u5b9a\u7f51\u7edc\u63a5\u53e3\u4e0a\u7acb\u5373\u5f00\u59cb\u76d1\u89c6\u5c40\u57df\u7f51\u5de5\u4f5c\u7ad9\u4fe1\u606f<\/td><\/tr> -t<\/td> \u6307\u5b9a\u547d\u4ee4\u76d1\u89c6\u7684\u65f6\u95f4<\/td><\/tr> -B<\/td> \u5c06\u6807\u6ce8\u8f93\u51fa\u91cd\u65b0\u5b9a\u5411\u5230\u201c\/dev\/null\u201d\uff0c\u5173\u95ed\u6807\u6ce8\u8f93\u5165\uff0c\u5c06\u7a0b\u5e8f\u4f5c\u4e3a\u540e\u53f0\u8fdb\u7a0b\u8fd0\u884c<\/td><\/tr> -f<\/td> \u6e05\u7a7a\u6240\u6709\u8ba1\u6570\u5668<\/td><\/tr> -h<\/td> \u663e\u793a\u5e2e\u52a9\u4fe1\u606f<\/td><\/tr><\/tbody><\/table>\n\n\n\n [root@linuxcool ~]# iptraf -d eth0<\/pre>\n\n\n\n
[root@linuxcool ~]# iptraf -i eth0<\/pre>\n\n\n\n
[root@linuxcool ~]# iptraf -s eth0 <\/pre>\n","protected":false},"excerpt":{"rendered":"