{"id":25947,"date":"2021-12-26T23:01:07","date_gmt":"2021-12-26T16:01:07","guid":{"rendered":"https:\/\/doc.bnix.vn\/?p=25947"},"modified":"2022-08-14T06:49:11","modified_gmt":"2022-08-13T23:49:11","slug":"huong-dan-cai-dat-modsecurity-tren-directadmin","status":"publish","type":"post","link":"https:\/\/doc.bnix.vn\/huong-dan-cai-dat-modsecurity-tren-directadmin\/","title":{"rendered":"H\u01b0\u1edbng d\u1eabn c\u00e0i \u0111\u1eb7t ModSecurity tr\u00ean Directadmin"},"content":{"rendered":"\n\n
\n \n
\n \n
\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n <\/div>\n \n
\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n
\n \n\n
<\/div>\n <\/div>\n <\/div>\n<\/div>\n \n\n
\n 4.7\/5 - (6 b\u00ecnh ch\u1ecdn) <\/div>\n <\/div>\n\r\n

ModSecurity l\u00e0 m\u1ed9t b\u1ed9 c\u00f4ng c\u1ee5 \u0111\u1ec3 gi\u00e1m s\u00e1t, ghi nh\u1eadt k\u00fd v\u00e0 ki\u1ec3m so\u00e1t truy c\u1eadp \u1ee9ng d\u1ee5ng web trong th\u1eddi gian th\u1ef1c. H\u1ed7 tr\u1ee3 r\u1ea5t t\u1ed1t cho vi\u1ec7c b\u1ea3o v\u1ec7 webs\u1ec9te, h\u1ea1n ch\u1ebf bruteforce attack wordpress, b\u1ea3o v\u1ec7 database,… C\u00f3 th\u1ec3 n\u00f3i n\u00f3 l\u00e0 m\u1ed9t t\u01b0\u1eddng l\u1eeda r\u1ea5t t\u1ed1t v\u00e0 \u0111\u1eb7c bi\u1ec7t l\u00e0 FREE.<\/p>\r\n\r\n\r\n\r\n

\r\n
\"\"<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

Tr\u00ean Directadmin c\u00f3 2 b\u1ea3n l\u00e0 OWASP v\u00e0 COMODO. Theo m\u00ecnh \u0111\u00e1nh gi\u00e1 th\u00ec COMODO t\u1ed1t h\u01a1n, n\u00ean h\u00f4m nay s\u1ebd h\u01b0\u1edbng d\u1eabn c\u00e1ch c\u00e0i \u0111\u1eb7t ModSecurity tr\u00ean Directadmin v\u1edbi phi\u00ean b\u1ea3n Comodo.<\/p>\r\n\r\n\r\n\r\n

C\u00e1ch c\u00e0i \u0111\u1eb7t Comodo WAF v\u00e0o ModSecurity<\/h2>\r\n\r\n\r\n\r\n

\u0110\u1ec3 c\u00e0i \u0111\u1eb7t, c\u00e1c b\u1ea1n k\u1ebft n\u1ed1i v\u00e0o SSH, sau \u0111\u00f3 ch\u1ea1y c\u00e1c l\u1ec7nh sau:<\/p>\r\n\r\n\r\n\r\n

cd \/usr\/local\/directadmin\/custombuild\r\n.\/build update\r\n.\/build set modsecurity yes\r\n.\/build set modsecurity_ruleset \"comodo\"\r\n.\/build modsecurity\r\n.\/build modsecurity_rules\r\n.\/build rewrite_confs<\/pre>\r\n\r\n\r\n\r\n

Sau khi c\u00e0i \u0111\u1eb7t xong, b\u1ea1n login t\u00e0i kho\u1ea3n admin v\u00e0o Directadmin, s\u1ebd th\u1ea5y bi\u1ec3u t\u01b0\u1ee3ng c\u1ee7a Comodo WAF, ch\u00fang ta click v\u00e0o \u0111\u00f3 \u0111\u1ec3 ch\u1ea1y c\u1ea5u h\u00ecnh.<\/p>\r\n\r\n\r\n\r\n

\r\n
\"\"\r\n
C\u1ea5u h\u00ecnh Comodo WAF<\/figcaption>\r\n<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

Vi\u1ec7c c\u1ee7a b\u1ea1n l\u00e0m ch\u1ec9 l\u00e0 click Next<\/strong> \u0111\u1ec3 Wizard ti\u1ebfn h\u00e0nh th\u1ef1c hi\u1ec7n cho b\u1ea1n.<\/p>\r\n\r\n\r\n\r\n

\r\n
\"\"<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

K\u1ebf ti\u1ebfp l\u00e0 ch\u1edd m\u1ed9t ch\u00fat, r\u1ed3i ch\u1ecdn Apply Changes<\/strong> l\u00e0 xong<\/p>\r\n\r\n\r\n\r\n

\r\n
\"\"<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n
\r\n
\"\"\r\n
Ho\u00e0n th\u00e0nh c\u1ea5u h\u00ecnh Comodo WAF<\/figcaption>\r\n<\/figure>\r\n<\/div>\r\n\r\n\r\n\r\n

C\u00e1ch g\u1ee1 b\u1ecf Comodo WAF kh\u1ecfi ModSecurity tr\u00ean Directadmin<\/h2>\r\n\r\n\r\n\r\n

\u0110\u1ec3 g\u1ee1 b\u1ecf Comodo WAF ra kh\u1ecfi Directadmin (n\u1ebfu b\u1ea1n kh\u00f4ng th\u00edch n\u00f3 n\u1eefa). H\u00e3y login v\u00f2a SSH v\u00e0 ch\u1ea1y l\u1ec7nh sau:<\/p>\r\n\r\n\r\n\r\n

bash \/usr\/local\/cwaf\/scripts\/uninstall_cwaf.sh<\/pre>\r\n\r\n\r\n\r\n

B\u1ea1n s\u1ebd \u0111\u01b0\u1ee3c h\u1ecfi<\/p>\r\n\r\n\r\n\r\n

\r\n

Do you want to remove Comodo WAF application from DirectAdmin?<\/em>
Enter answer [y\/n] y<\/em><\/p>\r\n<\/blockquote>\r\n\r\n\r\n\r\n

H\u00e3y g\u00f5 y<\/strong> r\u1ed3i b\u1ea5m enter, Comodo s\u1ebd \u0111\u01b0\u1ee3c g\u1ee1 b\u1ecf kh\u1ecfi Directadmin c\u1ee7a b\u1ea1n<\/p>\r\n\r\n\r\n\r\n

Ch\u00fac c\u00e1c b\u1ea1n c\u00e0i \u0111\u1eb7t th\u00e0nh c\u00f4ng, website tr\u00ean Directadmin c\u1ee7a c\u00e1c b\u1ea1n \u0111\u01b0\u1ee3c b\u1ea3o m\u1eadt h\u01a1n.<\/p>\r\n","protected":false},"excerpt":{"rendered":"

ModSecurity l\u00e0 m\u1ed9t b\u1ed9 c\u00f4ng c\u1ee5 \u0111\u1ec3 gi\u00e1m s\u00e1t, ghi nh\u1eadt k\u00fd v\u00e0 ki\u1ec3m so\u00e1t…<\/p>\n","protected":false},"author":3,"featured_media":25952,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"_kad_post_transparent":"","_kad_post_title":"","_kad_post_layout":"","_kad_post_sidebar_id":"","_kad_post_content_style":"","_kad_post_vertical_padding":"","_kad_post_feature":"","_kad_post_feature_position":"","_kad_post_header":false,"_kad_post_footer":false,"footnotes":""},"categories":[1,195],"tags":[103,200,199],"class_list":["post-25947","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cai-dat-vps","category-cai-dat-vps-directadmin","tag-bao-mat","tag-comodo-waf","tag-modsecurity"],"_links":{"self":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts\/25947","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/comments?post=25947"}],"version-history":[{"count":0,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/posts\/25947\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/media\/25952"}],"wp:attachment":[{"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/media?parent=25947"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/categories?post=25947"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/doc.bnix.vn\/wp-json\/wp\/v2\/tags?post=25947"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}