Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php): failed to open stream: No such file or directory in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: include(): Failed opening '/home/blog66rr/public_html/wp-content/plugins/hyper-cache/cache.php' for inclusion (include_path='.:/opt/cpanel/ea-php70/root/usr/share/pear') in /home/blog66rr/public_html/wp-content/advanced-cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723

Warning: Cannot modify header information - headers already sent by (output started at /home/blog66rr/public_html/wp-content/advanced-cache.php:24) in /home/blog66rr/public_html/wp-includes/rest-api/class-wp-rest-server.php on line 1723
{"id":2958,"date":"2016-02-22T17:06:33","date_gmt":"2016-02-22T09:06:33","guid":{"rendered":"http:\/\/blog.unethost.com\/?p=2958"},"modified":"2016-02-22T17:10:06","modified_gmt":"2016-02-22T09:10:06","slug":"how_to_add_allow_ips_or_remove_deny_ips_by_whm","status":"publish","type":"post","link":"https:\/\/blog.unethost.com\/how_to_add_allow_ips_or_remove_deny_ips_by_whm\/","title":{"rendered":"\u5982\u4f55\u5c07ip\u52a0\u5230\u9632\u706b\u7246\u767d\u540d\u55ae\uff0c\u6216\u662f\u5f9e\u9ed1\u540d\u55ae\u79fb\u9664 (whm \u6559\u5b78)"},"content":{"rendered":"

\"whm_firewall_wp\"<\/p>\n

\u8209\u51e1:ftp,shell,mail,\u63a7\u5236\u53f0……\u7b49\u7b49\uff1b\u7531\u7cfb\u7d71\u63d0\u4f9b\u7684services\uff0c
\n\u53ea\u8981\u5728\u4e00\u5b9a\u7684\u6642\u9593\u5167\uff0c\u9023\u7e8c\u767b\u5165\u932f\u8aa4\u8d85\u904e\u4e94\u6b21\u4ee5\u4e0a\uff0c\u5176client\u7aef\u7684ip\uff0c
\n\u5c31\u6703\u88ab\u5217\u6210\u662f\u4e00\u7a2e\u5165\u4fb5\u884c\u70ba<\/a>\uff0c\u800c\u5c0e\u81f4ip\u88ab\u5c01\u9396\u3002<\/p>\n

\u5982\u679c\u662f\u865b\u64ec\u4e3b\u6a5f\u7528\u6236\uff0c\u8acb\u76f4\u63a5\u53c3\u8003\u9019\u4e00\u7bc7:\u00a0\u6211\u7684IP\u4f3c\u4e4e\u88ab\u9632\u706b\u7246\u64cb\u4f4f\u4e86\uff1f<\/a><\/p>\n

vps \u53ca\u7368\u7acb\u4e3b\u6a5f\u7528\u6236\uff0c\u56e0\u70ba\u5176\u6b0a\u9650\u8db3\u5920\uff0c\u6240\u4ee5\u8acb\u76f4\u63a5\u89c0\u770b\u6211\u5011\u4e0b\u5217\u6559\u5b78:<\/p>\n

<\/p>\n

\u5982\u4f55\u64cd\u4f5c\uff1f<\/span><\/h6>\n

1. \u8acb\u5148\u767b\u5165 whm \u63a7\u5236\u53f0 (\u767b\u5165port\u662f 2087)<\/p>\n

a: \u7ba1\u7406\u54e1\u5e33\u865f<\/p>\n

b: \u7ba1\u7406\u54e1\u5bc6\u78bc<\/p>\n

c: \u586b\u59a5\u5f8ca\u53cab\u5f8c\uff0c\u5728\u9ede\u4e0b\u767b\u5165\u3002<\/p>\n

\"whm_firewall_01\"<\/p>\n

2. \u5728\u5de6\u4e0a\u7684\u641c\u7d22\u6846\u88e1\uff0c\u641c\u7d22\uff1afirewall<\/span>\uff0c\u7cfb\u7d71\u5c31\u6703\u53bb\u641c\u7d22\u4e26\u986f\u793a\uff1a
\nConfigServer Security & Firewall<\/span>\uff0c\u5728\u9ede\u64ca\u4e4b\u3002<\/p>\n

\"whm_firewall_02\"<\/p>\n

3. Firewall allow<\/span> ips = \u767d<\/span>\u540d\u55ae (\u5c07ip\u52a0\u5165\u5f8c\uff0c\u5c31\u4e0d\u53d7\u9632\u706b\u7246\u7684\u898f\u5247\u9650\u5236)
\nFirewall deny<\/span> ips \u00a0= \u9ed1<\/span>\u540d\u55ae (\u5c07ip\u52a0\u5165\u5f8c\uff0c\u5c31\u7121\u6cd5\u4f7f\u7528\u4e3b\u6a5f\u5167\u7684\u670d\u52d9\uff0c\u5305\u542bweb ,ftp..\u7b49\u7b49)<\/p>\n

\"whm_firewall_03\"<\/p>\n

4.\u7d30\u90e8\u898f\u5247\u53ca\u4f7f\u7528\u65b9\u5f0f:<\/p>\n

a. \u7121\u8ad6\u767d\u540d\u55ae\u6216\u662f\u9ed1\u540d\u55ae\uff0c\u90fd\u53ea\u80fd\u4f7f\u7528ip\uff0c\u800c\u7121\u6cd5\u4f7f\u7528\u7db2\u57df\u6dfb\u52a0<\/p>\n

b. ip \u5f8c\u9762\u53ef\u4ee5\u589e\u52a0\u8a3b\u89e3\uff0c\u6bd4\u65b9\u8aaa #\uff0c\u9019\u6a23\u624d\u80fd\u77e5\u9053\uff0c\u70ba\u4f55\u5c01\u9396\u6216\u662f\u52a0\u70ba\u767d\u540d\u55ae(\u65e5\u671f)\u3002<\/p>\n

c. \u9023\u865f\u7684ip\uff0c\u53ef\u4ee5\u589e\u52a0netmask\u7684\u8868\u793a\u6cd5\u3002
\n\u6bd4\u65b9\u8aaa192.168.254.0\/24\uff0c\u5373\u8868\u793a\u70ba192.168.254.0 \u81f3 192.168.254.255
\n(\u95dc\u65bc\u9019\u90e8\u4efd\u7684\u8a08\u7b97\uff0c\u6e90\u81ea\u65bc16\u9032\u5236\uff0c\u6709\u6a5f\u6703\u6211\u5011\u6703\u5728\u5beb\u4e00\u7bc7\u8aaa\u660e)<\/p>\n

\"whm_firewall_04\"<\/p>\n

 <\/p>\n

\u6d6e\u52d5ip\u8a72\u5982\u4f55\u8655\u7406\uff1f<\/span><\/h6>\n

\u6d6e\u52d5ip\u8981\u589e\u52a0\u767d\u540d\u55ae\uff0c\u6703\u6bd4\u8f03\u9ebb\u7169\uff0c\u96d6\u7136\u53ef\u4ee5\u76f4\u63a5\u52a0\u5165\u6574\u500b\u7db2\u6bb5\uff0c
\n\u4f46\u5b89\u5168\u6027\u6703\u56e0\u6b64\u964d\u4f4e\u8a31\u591a\u3002<\/p>\n

\u800c\u4e14\u6709\u4e9bisp\u7684ip\u7de8\u865f\uff0c\u8b8a\u52d5\u76f8\u7576\u5927\uff0c\u6240\u4ee5\u5f97\u8981\u638c\u63e1\u70ba\u4f55\u6703\u88ab\u5c01\u9396<\/span>\u7684\u60c5\u6cc1\uff0c
\n\u624d\u4e0d\u6703\u88ab\u5c01\u5230ip\u3002<\/p>\n

\u4e0b\u6b21\u6709\u6a5f\u6703\uff0c\u6211\u5011\u6703\u8aaa\u660e\u95dc\u65bc\u9632\u706b\u7246\u8207web\u4e4b\u9593\u7684\u7279\u6b8a\u61c9\u7528\u3002<\/p>\n

(\u672c\u7bc7\u6559\u5b78\u7531unethost.com\u5ba2\u670d\u64b0\u5beb<\/a>)<\/strong><\/span><\/p>\n

\u5ef6\u4f38\u95b1\u8b80:\u5982\u4f55\u5099\u4efdCpanel\u5f8c\u53f0\u5b89\u88dd\u7684\u5957\u88dd\u7a0b\u5f0f?<\/a><\/strong><\/p>\n

\u5b89\u88dd\u4e0a\u8ff0\u7684\u8edf\u9ad4\uff0c\u6211\u5011\u63d0\u4f9b\u865b\u64ec\u4e3b\u6a5f\u8a66\u7528\uff0c\u4e03\u5929\u6eff\u610f\u4fdd\u8b49\uff0c<\/span><\/strong>
\n\u529f\u80fd\u5b8c\u6574\u4f7f\u7528\u4e0d\u53d7\u9650\u5236\uff0c\u6b61\u8fce
\u9ede\u6211<\/a>\u7533\u8acb\u3002<\/span><\/strong><\/p>\n

 <\/p>\n","protected":false},"excerpt":{"rendered":"

\u8209\u51e1:ftp,shell,mail,\u63a7\u5236\u53f0……\u7b49\u7b49\uff1b\u7531\u7cfb\u7d71\u63d0\u4f9b\u7684services\uff0c \u53ea … \u95b1\u8b80\u5168\u6587 \u5982\u4f55\u5c07ip\u52a0\u5230\u9632\u706b\u7246\u767d\u540d\u55ae\uff0c\u6216\u662f\u5f9e\u9ed1\u540d\u55ae\u79fb\u9664 (whm \u6559\u5b78)<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_mi_skip_tracking":false},"categories":[151],"tags":[713,714,711,712,710],"_links":{"self":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/2958"}],"collection":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/comments?post=2958"}],"version-history":[{"count":6,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/2958\/revisions"}],"predecessor-version":[{"id":2973,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/posts\/2958\/revisions\/2973"}],"wp:attachment":[{"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/media?parent=2958"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/categories?post=2958"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.unethost.com\/wp-json\/wp\/v2\/tags?post=2958"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}