{"id":9580,"date":"2026-02-05T10:45:02","date_gmt":"2026-02-05T08:45:02","guid":{"rendered":"https:\/\/help.libyanspider.com\/ar\/?post_type=ht_kb&#038;p=9580"},"modified":"2026-02-05T14:31:09","modified_gmt":"2026-02-05T12:31:09","slug":"how-to-restrict-port-access-in-cpanel-whm-using-csf","status":"publish","type":"ht_kb","link":"https:\/\/help.libyanspider.com\/ar\/kb-article\/how-to-restrict-port-access-in-cpanel-whm-using-csf\/","title":{"rendered":"\u00a0\u0643\u064a\u0641\u064a\u0629 \u062a\u0642\u064a\u064a\u062f \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0627\u0644\u0645\u0646\u0627\u0641\u0630 \u0641\u064a cPanel\/WHM \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u062c\u062f\u0627\u0631 \u0627\u0644\u062d\u0645\u0627\u064a\u0629 CSF"},"content":{"rendered":"\n<p>\u0641\u064a \u062e\u0648\u0627\u062f\u0645 cPanel\u060c \u062a\u062a\u0645 \u0625\u062f\u0627\u0631\u0629 \u062c\u062f\u0627\u0631 \u0627\u0644\u062d\u0645\u0627\u064a\u0629 \u0639\u0627\u062f\u0629\u064b \u0645\u0646 \u062e\u0644\u0627\u0644 \u0625\u0636\u0627\u0641\u0629 <strong>ConfigServer Security & Firewall (CSF)<\/strong>. \u0625\u0646 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0648\u0627\u062c\u0647\u0629 WHM \u0644\u0625\u062f\u0627\u0631\u0629 \u0647\u0630\u0647 \u0627\u0644\u0642\u0648\u0627\u0639\u062f \u0647\u0648 \u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u0623\u0643\u062b\u0631 \u0623\u0645\u0627\u0646\u0627\u064b \u0644\u0636\u0645\u0627\u0646 \u0628\u0642\u0627\u0621 \u062e\u0627\u062f\u0645\u0643 \u0645\u062a\u0627\u062d\u0627\u064b \u0645\u0639 \u062d\u0638\u0631 \u062d\u0631\u0643\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0627\u0644\u0645\u0635\u0631\u062d \u0628\u0647\u0627.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0627\u0644\u0645\u062a\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0645\u0633\u0628\u0642\u0629<\/strong><strong>:<\/strong><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0635\u0644\u0627\u062d\u064a\u0629 Root<\/strong> \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 WHM (Web Host Manager).<\/li>\n\n\n\n<li><strong>\u0631\u0642\u0645 \u0627\u0644\u0645\u0646\u0641\u0630<\/strong> (\u0645\u062b\u0644 3306 \u0644\u0640 MySQL).<\/li>\n\n\n\n<li><strong>\u0639\u0646\u0648\u0627\u0646 IP \u0627\u0644\u0645\u0648\u062b\u0648\u0642<\/strong> \u0627\u0644\u0630\u064a \u062a\u0631\u064a\u062f \u0627\u0644\u0633\u0645\u0627\u062d \u0644\u0647 \u0628\u0627\u0644\u0648\u0635\u0648\u0644.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u062e\u0637\u0648\u0627\u062a \u062a\u0642\u064a\u064a\u062f \u0627\u0644\u0648\u0635\u0648\u0644:<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u062a\u0633\u062c\u064a\u0644 \u0627\u0644\u062f\u062e\u0648\u0644 \u0625\u0644\u0649 WHM<\/strong><strong>:<\/strong> \u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0644\u0648\u062d\u0629 \u062a\u062d\u0643\u0645 WHM (\u063a\u0627\u0644\u0628\u0627\u064b \u0645\u0627 \u062a\u0643\u0648\u0646 https:\/\/your-server-ip:2087).<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0628\u062d\u062b \u0639\u0646 CSF:<\/strong> \u0641\u064a \u0634\u0631\u064a\u0637 \u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0644\u0623\u0639\u0644\u0649\u060c \u0627\u0643\u062a\u0628 <strong>&#8220;firewall&#8221;<\/strong> \u0648\u0627\u062e\u062a\u0631 <strong>ConfigServer Security & Firewall<\/strong>.<\/li>\n\n\n\n<li><strong>\u0625\u0639\u062f\u0627\u062f\u0627\u062a \u0627\u0644\u062a\u0643\u0648\u064a\u0646:<\/strong> \u0645\u0631\u0631 \u0644\u0644\u0623\u0633\u0641\u0644 \u0625\u0644\u0649 \u0642\u0633\u0645 <strong>csf &#8211; ConfigServer Software<\/strong> \u0648\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>Firewall Configuration<\/strong>.<\/li>\n\n\n\n<li><strong>\u062a\u0635\u0641\u064a\u0629 \u0627\u0644\u0645\u0646\u0627\u0641\u0630:<\/strong> \u0627\u0628\u062d\u062b \u0639\u0646 <strong>\u0631\u0642\u0645 \u0627\u0644\u0645\u0646\u0641\u0630 <\/strong>\u0627\u0644\u0630\u064a \u062a\u0631\u064a\u062f \u062a\u0623\u0645\u064a\u0646\u0647\u00a0 (\u0645\u062b\u0644 3306). \u062a\u0623\u0643\u062f \u0645\u0646 \u0623\u0646 \u0627\u0644\u0645\u0646\u0641\u0630 <strong>\u063a\u064a\u0631 \u0645\u062f\u0631\u062c<\/strong> \u0641\u064a \u062d\u0642\u0648\u0644 <code><mark class=\"has-inline-color has-black-color\">TCP_IN<\/mark><\/code> \u0623\u0648 <code><mark class=\"has-inline-color has-black-color\">UDP_IN<\/mark><\/code>. (\u0625\u0630\u0627 \u0643\u0627\u0646 \u0645\u0648\u062c\u0648\u062f\u0627\u064b\u060c \u0641\u0647\u0630\u0627 \u064a\u0639\u0646\u064a \u0623\u0646\u0647 \u0645\u0641\u062a\u0648\u062d \u0644\u0644\u062c\u0645\u064a\u0639).<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0633\u0645\u0627\u062d \u0644\u0640 IP \u0645\u062d\u062f\u062f:<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u0639\u062f \u0625\u0644\u0649 \u0635\u0641\u062d\u0629 CSF \u0627\u0644\u0631\u0626\u064a\u0633\u064a\u0629.<\/li>\n\n\n\n<li>\u0627\u0628\u062d\u062b \u0639\u0646 \u0627\u0644\u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u0623\u062e\u0636\u0631 <strong>Quick Allow<\/strong>.<\/li>\n\n\n\n<li>\u0623\u062f\u062e\u0644 <strong>\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0640 IP \u0627\u0644\u0645\u0648\u062b\u0648\u0642<\/strong>.<\/li>\n\n\n\n<li>(\u0627\u062e\u062a\u064a\u0627\u0631\u064a) \u0641\u064a \u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u062a\u0639\u0644\u064a\u0642\u060c \u0627\u0643\u062a\u0628 \u0645\u062b\u0644\u0627\u064b &#8220;Allow Access from Office IP&#8221;.<\/li>\n\n\n\n<li>\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>Quick Allow<\/strong>.<\/li>\n<\/ul>\n<\/li>\n\n\n\n<li><strong>\u0625\u0639\u062f\u0627\u062f \u0645\u062a\u0642\u062f\u0645 (\u0644\u0645\u0646\u0641\u0630 \u0645\u062d\u062f\u062f \u0641\u0642\u0637):<\/strong> \u0625\u0630\u0627 \u0643\u0646\u062a \u062a\u0631\u064a\u062f \u0644\u0647\u0630\u0627 \u0627\u0644\u0640 IP \u0627\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u0645\u0646\u0641\u0630 \u0648\u0627\u062d\u062f \u0641\u0642\u0637\u060c \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>Firewall Allow IPs<\/strong> (<mark class=\"has-inline-color has-black-color\"><code>csf.allow<\/code><\/mark>) \u0648\u0623\u0636\u0641 \u0627\u0644\u0642\u0627\u0639\u062f\u0629 \u0628\u0647\u0630\u0627 \u0627\u0644\u062a\u0646\u0633\u064a\u0642: <code><mark class=\"has-inline-color has-black-color\">tcp|in|d=3306|s=1.2.3.4<\/mark><\/code> (\u0645\u0639 \u0627\u0633\u062a\u0628\u062f\u0627\u0644 3306 \u0628\u0627\u0644\u0645\u0646\u0641\u0630 \u0648 1.2.3.4 \u0628\u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u062e\u0627\u0635 \u0628\u0643).<\/li>\n\n\n\n<li><strong>\u0625\u0639\u0627\u062f\u0629 \u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u062c\u062f\u0627\u0631:<\/strong> \u0645\u0631\u0631 \u0644\u0644\u0623\u0633\u0641\u0644 \u0648\u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>Change<\/strong>\u060c \u062b\u0645 \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>Restart csf+lfd<\/strong>.<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a:<\/strong><\/h2>\n\n\n\n<p>\u0642\u0645 \u0628\u0627\u062e\u062a\u0628\u0627\u0631 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0645\u0646 \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u0640 IP \u0627\u0644\u0645\u0633\u0645\u0648\u062d \u0628\u0647. \u0625\u0630\u0627 \u062a\u0645 \u0627\u0644\u0625\u0639\u062f\u0627\u062f \u0628\u0634\u0643\u0644 \u0635\u062d\u064a\u062d\u060c \u0641\u0633\u064a\u062a\u0645 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0628\u0646\u062c\u0627\u062d\u060c \u0628\u064a\u0646\u0645\u0627 \u0633\u064a\u062a\u0645 \u062d\u0638\u0631 \u062c\u0645\u064a\u0639 \u0639\u0646\u0627\u0648\u064a\u0646 IP \u0627\u0644\u0623\u062e\u0631\u0649 \u0628\u0648\u0627\u0633\u0637\u0629 \u0633\u064a\u0627\u0633\u0629 &#8220;\u0627\u0644\u062d\u0638\u0631 \u0627\u0644\u0627\u0641\u062a\u0631\u0627\u0636\u064a&#8221; \u0644\u062c\u062f\u0627\u0631 \u0627\u0644\u062d\u0645\u0627\u064a\u0629.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0641\u064a \u062e\u0648\u0627\u062f\u0645 cPanel\u060c \u062a\u062a\u0645 \u0625\u062f\u0627\u0631\u0629 \u062c\u062f\u0627\u0631 \u0627\u0644\u062d\u0645\u0627\u064a\u0629 \u0639\u0627\u062f\u0629\u064b \u0645\u0646 \u062e\u0644\u0627\u0644 \u0625\u0636\u0627\u0641\u0629 ConfigServer Security &#038; Firewall (CSF). \u0625\u0646 \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0648\u0627\u062c\u0647\u0629 WHM \u0644\u0625\u062f\u0627\u0631\u0629 \u0647\u0630\u0647 \u0627\u0644\u0642\u0648\u0627\u0639\u062f \u0647\u0648 \u0627\u0644\u0637\u0631\u064a\u0642\u0629 \u0627\u0644\u0623\u0643\u062b\u0631 \u0623\u0645\u0627\u0646\u0627\u064b \u0644\u0636\u0645\u0627\u0646 \u0628\u0642\u0627\u0621 \u062e\u0627\u062f\u0645\u0643 \u0645\u062a\u0627\u062d\u0627\u064b \u0645\u0639 \u062d\u0638\u0631 \u062d\u0631\u0643\u0629 \u0627\u0644\u0645\u0631\u0648\u0631 \u063a\u064a\u0631 \u0627\u0644\u0645\u0635\u0631\u062d \u0628\u0647\u0627. \u0627\u0644\u0645\u062a\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0645\u0633\u0628\u0642\u0629: \u062e\u0637\u0648\u0627\u062a \u062a\u0642\u064a\u064a\u062f \u0627\u0644\u0648\u0635\u0648\u0644: \u0627\u0644\u062a\u062d\u0642\u0642 \u0645\u0646 \u0627\u0644\u0625\u0639\u062f\u0627\u062f\u0627\u062a: \u0642\u0645 \u0628\u0627\u062e\u062a\u0628\u0627\u0631 \u0627\u0644\u0627\u062a\u0635\u0627\u0644 \u0645\u0646&#8230;<\/p>\n","protected":false},"author":15,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[585,40,766],"ht-kb-tag":[],"class_list":["post-9580","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cpanel","ht_kb_category-cloud","ht_kb_category-vps-dedicated-servers"],"_links":{"self":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/9580","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb"}],"about":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/types\/ht_kb"}],"author":[{"embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/users\/15"}],"replies":[{"embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/comments?post=9580"}],"version-history":[{"count":2,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/9580\/revisions"}],"predecessor-version":[{"id":9583,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/9580\/revisions\/9583"}],"wp:attachment":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/media?parent=9580"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb-category?post=9580"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb-tag?post=9580"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}