{"id":4879,"date":"2016-01-12T12:04:13","date_gmt":"2016-01-12T04:04:13","guid":{"rendered":"https:\/\/tomchun.tw\/tomchun\/?p=4879"},"modified":"2016-01-12T13:22:36","modified_gmt":"2016-01-12T05:22:36","slug":"1-747","status":"publish","type":"post","link":"https:\/\/tomchun.tw\/tomchun\/2016\/01\/12\/1-747\/","title":{"rendered":"[\u6559\u5b78] CentOS 6.7 LINUX( ipaudit \u5b89\u88dd)\u6307\u4ee4\u7b46\u8a18"},"content":{"rendered":"<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">[\u6559\u5b78] CentOS 6.7 LINUX( ipaudit \u5b89\u88dd)\u6307\u4ee4\u7b46\u8a18<!--more--><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u67e5\u8a62linux\u7248\u672c\u8cc7\u8a0a \u00a0uname &#8211;help\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u66f4\u6539\u7cfb\u7d71\u8a9e\u7cfb vi\/etc\/sysconfig\/i18n<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">LANG=&#8221;zh_TW.UTF-8&#8243;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">SUPPORTED=&#8221;zh_TW.UTF-8:zh_TW:zh&#8221;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">SYSFONT=&#8221;latarcyrheb-sun16&#8243;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u66f4\u6539\u8a9e\u7cfb\u9700\u8981\u91cd\u958b\u6a5freboot<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b89\u88dd\u5e38\u7528\u5957\u4ef6 <\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> yum install ntsysv nmap ftp wget xinetd system-config-network-tui ntp gcc gcc-c++<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u7db2\u8def\u6821\u6642 <\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> vi \/etc\/crontab\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">10 5 * * * root \/usr\/sbin\/ntpdate time.stdtime.gov.tw ; \/sbin\/hwclock -w\u00a0<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u8a3b\u89e3\uff1a\u6bcf\u5929 5:10 Linux \u7cfb\u7d71\u5c31\u6703\u81ea\u52d5\u7684\u9032\u884c\u7db2\u8def\u6821\u6642\uff0c\u4e26\u56de\u5beb BIOS<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u6e2c\u8a66\u2193<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">ntpdate time.stdtime.gov.tw<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5beb\u5165\u2193<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> \/sbin\/hwclock -w<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">Apache\u5b89\u88dd<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> yum -y install httpd mod_ssl<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> \u555f\u52d5\u670d\u52d9\uff1a<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> \/etc\/rc.d\/init.d\/httpd start<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> chkconfig httpd on<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">service iptables stop \u9632\u706b\u7246\u95dc\u9589<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u4fee\u6539vi \/etc\/sysconfig\/iptables \u6587\u4ef6<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">-A INPUT -m state &#8211;state NEW -m tcp -p tcp &#8211;dport 80 -j ACCEPT<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5141\u8a3180PORT\u901a\u904e\u9632\u706b\u7246<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> \u6539\u621021\u5c31\u662fFTP\u80fd\u901a\u904e<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">service iptables start \u9632\u706b\u7246\u958b\u555f<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b89\u88ddgcc<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> yum install gcc<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b89\u88ddPerl<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> yum install perl<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b89\u88ddlibpcap<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> yum install libpcap<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b89\u88ddlibpcap-devel<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> yum install libpcap-devel<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">yum install gnuplot<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">yum install freetype<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">yum install libjpeg<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">yum install libpng<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">yum install gd<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">\u5b89\u88ddTime-modules<br \/>\nyum install perl-TimeDate<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">\u00a0<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5efa\u7acb\u4f7f\u7528\u8005<\/span><\/strong><\/p><div class=\"8174c08f3e8258bc782beea63dd170ee\" data-index=\"1\" style=\"float: none; margin:0px 0 0px 0; text-align:center;\">\n<br>\r\n<hr size=\"8px\" align=\"center\" width=\"100%\">\r\n<br>\r\n<!-- \u5167\u6587\u4e0a\u65b91 -->\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1525485034639690\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1525485034639690\"\r\n     data-ad-slot=\"5744735635\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n<br>\r\n<hr size=\"8px\" align=\"center\" width=\"100%\">\r\n<br>\r\n<!-- \u5167\u6587\u4e2d1 -->\r\n<script async src=\"https:\/\/pagead2.googlesyndication.com\/pagead\/js\/adsbygoogle.js?client=ca-pub-1525485034639690\"\r\n     crossorigin=\"anonymous\"><\/script>\r\n<ins class=\"adsbygoogle\"\r\n     style=\"display:block\"\r\n     data-ad-client=\"ca-pub-1525485034639690\"\r\n     data-ad-slot=\"6362030347\"\r\n     data-ad-format=\"auto\"\r\n     data-full-width-responsive=\"true\"><\/ins>\r\n<script>\r\n     (adsbygoogle = window.adsbygoogle || []).push({});\r\n<\/script>\r\n<br>\r\n<hr size=\"8px\" align=\"center\" width=\"100%\">\r\n<br>\n<\/div>\n\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">useradd ipaudit<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">\u4e0b\u8f09ipaudit<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">wget http:\/\/nchc.dl.sourceforge.net\/sourceforge\/ipaudit\/ipaudit-web-1.0BETA9.tar.gz<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">tar -zxvf ipaudit-web-1.0BETA9.tar.gz<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">\u9032\u5165ipaudit\u76ee\u9304<br \/>\ncd ipaudit-web-1.0BETA9<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u9032\u5165\u7de8\u8b6f\u76ee\u9304<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> cd compile<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u57f7\u884c\u8a2d\u5b9a<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> .\/configure<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u57f7\u884c\u7de8\u8b6f<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> make<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u57f7\u884c\u5b89\u88dd<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> make install\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\"><span lang=\"EN-US\">yum -y install vsftpd<\/span><\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u8a2d\u5b9aipaudit\u8a2d\u5b9a\u6a94<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">vi \/home\/ipaudit\/ipaudit-web.conf<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">LOCALRANGE=192.192.205.0\/24:168.95.1.0\/24<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">INTERFACE=eth0:eth1:eth2<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u4ee5\u4e0b\u8acb\u4f9d\u7167\u60a8\u74b0\u5883\u9700\u6c42\u53ca\u786c\u789f\u5bb9\u91cf\u9650\u5236\u53bb\u8a2d\u5b9a\u8a18\u9304\u6a94\u5b58\u6d3b\u6642\u9593\u3002<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">RAW_DAY=180<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">DATA_DAY=180<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">HTML_DAY=180<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u6aa2\u67e5ipaudit\u662f\u5426\u6b63\u78ba\u914d\u7f6e\u5230\u6392\u7a0b\u88e1\u9762<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">su ipaudit<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">crontab -l<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0\u66f4\u6539apache\u5c0dipaudit\u76ee\u9304\u7684CGI\u652f\u63f4<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">vi \/etc\/httpd\/conf\/httpd.conf<\/span><\/strong><\/p>\n<table class=\" aligncenter\">\n<tbody>\n<tr>\n<td width=\"808\"><strong><span style=\"color: #0000ff;\">ServerAdmin root@localhostUserDir disable \u4fee\u6539\u6210&#8211;&gt; UserDir disableUserDir public_html \u4fee\u6539\u6210&#8211;&gt; UserDir public_html<\/span><\/strong><\/p>\n<p><strong><span style=\"color: #0000ff;\"> DirectoryIndex index.html index.html.var \u4fee\u6539\u6210&#8211;&gt; <\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> DirectoryIndex index.html index.htm\u00a0\u66f4\u6539\u8a9e\u7cfb\u7684\u512a\u5148\u9806\u5e8fLanguagePriority zh-TW en ca cs da de el eo es et fr he hr it ja ko ltz nl nn no pl pt pt-BR ru sv zh-CN \u00a0\u53d6\u6d88\u9810\u8a2dUTF8\u7de8\u78bcAddDefaultCharset UTF-8 \u4fee\u6539\u6210&#8211;&gt; AddDefaultCharset UTF-8<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0\u00a0<\/span><\/strong><\/p>\n<table class=\" aligncenter\">\n<tbody>\n<tr>\n<td width=\"808\"><strong><span style=\"color: #0000ff;\"> \u628a\u539f\u4f86\u4e0b\u9762\u7684\u6771\u897f#\u8d77\u4f86&lt;Directory &#8220;\/var\/www\/cgi-bin&#8221;&gt;\u00a0\u00a0 AllowOverride None\u00a0\u00a0 Options None\u00a0\u00a0 Order allow,deny\u00a0\u00a0 Allow from all&lt;\/Directory&gt;<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">\u7136\u5f8c\u5728\u4e0b\u9762\u52a0\u5165<br \/>\n<\/span><\/strong><strong><span style=\"color: #0000ff;\">&lt;Directory &#8220;\/home\/*\/public_html\/cgi-bin\/&#8221;&gt;Options ExecCGISetHandler cgi-script&lt;\/Directory&gt;\u00a0<\/span><\/strong><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p style=\"text-align: center;\">\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u5b58\u6a94\u5f8c\u91cd\u65b0\u57f7\u884capache\u4e26\u52a0\u5165\u958b\u6a5f\u555f\u52d5<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\/etc\/init.d\/httpd restartchkconfig httpd on<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u00a0<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u81ea\u52d5\u8f49\u5740\u5230\u3010<a style=\"color: #0000ff;\" href=\"http:\/\/ip\/~ipaudit\/\">http:\/\/ip\/~ipaudit\/<\/a>\u3011<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">vi \/var\/www\/html\/index.htm<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">&lt;html&gt;<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> &lt;body onload=<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> &#8220;window.open(&#8216;<a style=\"color: #0000ff;\" href=\"http:\/\/ip\/~ipaudit\/\">http:\/\/ip\/~ipaudit\/<\/a> &#8216;,&#8217;_top&#8217;)&#8221;&gt;<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> &lt;\/body&gt;<\/span><\/strong><br \/>\n<strong><span style=\"color: #0000ff;\"> &lt;\/html&gt;<\/span><\/strong><\/p>\n<p style=\"text-align: center;\"><strong><span style=\"color: #0000ff;\">\u672a\u5b8c\u5f85\u7e8c<\/span><\/strong><\/p>\n\n<div style=\"font-size: 0px; height: 0px; line-height: 0px; margin: 0; padding: 0; clear: both;\"><\/div>","protected":false},"excerpt":{"rendered":"<p>[\u6559\u5b78] CentOS 6.7 LINUX( ipaudit &#8230;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[14],"tags":[],"class_list":["post-4879","post","type-post","status-publish","format-standard","hentry","category-14"],"modified_by":"tomchun","_links":{"self":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/posts\/4879","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/comments?post=4879"}],"version-history":[{"count":0,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/posts\/4879\/revisions"}],"wp:attachment":[{"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/media?parent=4879"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/categories?post=4879"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tomchun.tw\/tomchun\/wp-json\/wp\/v2\/tags?post=4879"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}