{"id":9591,"date":"2026-02-05T11:34:23","date_gmt":"2026-02-05T09:34:23","guid":{"rendered":"https:\/\/help.libyanspider.com\/ar\/?post_type=ht_kb&#038;p=9591"},"modified":"2026-02-05T14:32:17","modified_gmt":"2026-02-05T12:32:17","slug":"how-to-restrict-port-access-using-windows-firewall","status":"publish","type":"ht_kb","link":"https:\/\/help.libyanspider.com\/ar\/kb-article\/how-to-restrict-port-access-using-windows-firewall\/","title":{"rendered":"\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 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u062c\u062f\u0627\u0631 \u062d\u0645\u0627\u064a\u0629 \u0648\u064a\u0646\u062f\u0648\u0632"},"content":{"rendered":"\n<p>\u0641\u064a \u062e\u0648\u0627\u062f\u0645 \u0648\u064a\u0646\u062f\u0648\u0632\u060c \u064a\u0645\u0643\u0646\u0643 \u062a\u0642\u064a\u064a\u062f \u0627\u0644\u0648\u0635\u0648\u0644 \u0644\u0645\u0646\u0627\u0641\u0630 \u0645\u0639\u064a\u0646\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u0631\u0633\u0648\u0645\u064a\u0629 (GUI) \u0623\u0648 \u0639\u0628\u0631 PowerShell. \u062a\u0643\u0645\u0646 \u0627\u0644\u062e\u0637\u0648\u0629 \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629 \u0641\u064a \u062a\u0639\u062f\u064a\u0644 <strong>\u0627\u0644\u0646\u0637\u0627\u0642 (Scope)<\/strong> \u0644\u0644\u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0648\u0627\u0631\u062f\u0629 \u0644\u0644\u0633\u0645\u0627\u062d \u0641\u0642\u0637 \u0628\u0640 &#8220;\u0639\u0646\u0627\u0648\u064a\u0646 IP \u0628\u0639\u064a\u062f\u0629&#8221; (Remote IP Addresses) \u0645\u062d\u062f\u062f\u0629.<\/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><\/h2>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>\u0635\u0644\u0627\u062d\u064a\u0629 \u0645\u0633\u0624\u0648\u0644 (Administrator)<\/strong> \u0644\u0644\u0648\u0635\u0648\u0644 \u0625\u0644\u0649 \u062e\u0627\u062f\u0645 \u0648\u064a\u0646\u062f\u0648\u0632.<\/li>\n\n\n\n<li><strong>\u0631\u0642\u0645 \u0627\u0644\u0645\u0646\u0641\u0630<\/strong> (\u0645\u062b\u0644 3389 \u0644\u0640 RDP \u0623\u0648 1433 \u0644\u0640 MSSQL).<\/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>\u0627\u0644\u062e\u064a\u0627\u0631 \u0627\u0644\u0623\u0648\u0644: \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u0631\u0633\u0648\u0645\u064a\u0629 (GUI)<\/strong><\/h2>\n\n\n\n<ol class=\"wp-block-list\">\n<li><strong>\u0641\u062a\u062d \u0625\u0639\u062f\u0627\u062f\u0627\u062a \u062c\u062f\u0627\u0631 \u0627\u0644\u062d\u0645\u0627\u064a\u0629:<\/strong> \u0627\u0628\u062d\u062b \u0641\u064a \u0642\u0627\u0626\u0645\u0629 \u0627\u0628\u062f\u0623 \u0639\u0646 <strong>&#8220;Windows Firewall with Advanced Security&#8221;<\/strong> \u0648\u0627\u0636\u063a\u0637 Enter.<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0642\u0648\u0627\u0639\u062f \u0627\u0644\u0648\u0627\u0631\u062f\u0629 (Inbound Rules):<\/strong> \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>Inbound Rules<\/strong> \u0641\u064a \u0627\u0644\u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u062c\u0627\u0646\u0628\u064a\u0629 \u0627\u0644\u064a\u0633\u0631\u0649.<\/li>\n\n\n\n<li><strong>\u0625\u0646\u0634\u0627\u0621 \u0642\u0627\u0639\u062f\u0629 \u062c\u062f\u064a\u062f\u0629:<\/strong> \u0627\u0636\u063a\u0637 \u0639\u0644\u0649 <strong>New Rule&#8230;<\/strong> \u0645\u0646 \u0642\u0627\u0626\u0645\u0629 \u0627\u0644\u0625\u062c\u0631\u0627\u0621\u0627\u062a \u0627\u0644\u064a\u0645\u0646\u0649.<\/li>\n\n\n\n<li><strong>\u0646\u0648\u0639 \u0627\u0644\u0642\u0627\u0639\u062f\u0629 (Rule Type):<\/strong> \u0627\u062e\u062a\u0631 <strong>Port<\/strong> \u0648\u0627\u0636\u063a\u0637 Next.<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0628\u0631\u0648\u062a\u0648\u0643\u0648\u0644 \u0648\u0627\u0644\u0645\u0646\u0627\u0641\u0630:<\/strong> \u0627\u062e\u062a\u0631 <strong>TCP<\/strong> \u0648\u0623\u062f\u062e\u0644 \u0631\u0642\u0645 \u0627\u0644\u0645\u0646\u0641\u0630 (\u0645\u062b\u0644 1433) \u0641\u064a \u062e\u0627\u0646\u0629 <strong>Specific local ports<\/strong>. \u0627\u0636\u063a\u0637 Next.<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0625\u062c\u0631\u0627\u0621 (Action):<\/strong> \u0627\u062e\u062a\u0631 <strong>Allow the connection<\/strong> \u0648\u0627\u0636\u063a\u0637 Next.<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0645\u0644\u0641 \u0627\u0644\u0634\u062e\u0635\u064a (Profile):<\/strong> \u0627\u062a\u0631\u0643 \u062c\u0645\u064a\u0639 \u0627\u0644\u062e\u064a\u0627\u0631\u0627\u062a \u0645\u062d\u062f\u062f\u0629 \u0648\u0627\u0636\u063a\u0637 Next.<\/li>\n\n\n\n<li><strong>\u0627\u0644\u0627\u0633\u0645:<\/strong> \u0627\u062e\u062a\u0631 \u0627\u0633\u0645\u0627\u064b \u0645\u062b\u0644 &#8220;Restrict MSSQL to Trusted IP&#8221; \u0648\u0627\u0636\u063a\u0637 <strong>Finish<\/strong>.<\/li>\n\n\n\n<li><strong>\u062a\u0642\u064a\u064a\u062f \u0627\u0644\u0640 IP (\u0627\u0644\u062e\u0637\u0648\u0629 \u0627\u0644\u0623\u0647\u0645):<\/strong>\n<ul class=\"wp-block-list\">\n<li>\u0627\u0636\u063a\u0637 \u0628\u064a\u0645\u064a\u0646 \u0627\u0644\u0641\u0623\u0631\u0629 \u0639\u0644\u0649 \u0627\u0644\u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u062c\u062f\u064a\u062f\u0629 \u0648\u0627\u062e\u062a\u0631 <strong>Properties<\/strong>.<\/li>\n\n\n\n<li>\u0627\u0646\u062a\u0642\u0644 \u0625\u0644\u0649 \u0639\u0644\u0627\u0645\u0629 \u0627\u0644\u062a\u0628\u0648\u064a\u0628 <strong>Scope<\/strong>.<\/li>\n\n\n\n<li>\u062a\u062d\u062a \u0642\u0633\u0645 <strong>Remote IP address<\/strong>\u060c \u0627\u062e\u062a\u0631 <strong>These IP addresses<\/strong> \u0648\u0627\u0636\u063a\u0637 <strong>Add<\/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> \u0648\u0627\u0636\u063a\u0637 OK.<\/li>\n\n\n\n<li>\u0627\u0636\u063a\u0637 <strong>Apply<\/strong> \u062b\u0645 <strong>OK<\/strong>.<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n\n\n\n<h2 class=\"wp-block-heading\"><strong>\u0627\u0644\u062e\u064a\u0627\u0631 \u0627\u0644\u062b\u0627\u0646\u064a: \u0627\u0633\u062a\u062e\u062f\u0627\u0645 PowerShell (\u0627\u0644\u0623\u0633\u0631\u0639)<\/strong><\/h2>\n\n\n\n<p>\u0642\u0645 \u0628\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0623\u0645\u0631 \u0627\u0644\u062a\u0627\u0644\u064a \u0643\u0645\u0633\u0624\u0648\u0644 (\u0645\u0639 \u0627\u0633\u062a\u0628\u062f\u0627\u0644 \u0627\u0644\u0640 IP \u0648\u0627\u0644\u0645\u0646\u0641\u0630 \u0628\u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a \u0627\u0644\u062e\u0627\u0635\u0629 \u0628\u0643):<\/p>\n\n\n\n<p>PowerShell<\/p>\n\n\n\n<p><code><mark class=\"has-inline-color has-black-color\">New-NetFirewallRule -DisplayName \"Restrict Port 1433\" -Direction Inbound -LocalPort 1433 -Protocol TCP -Action Allow -RemoteAddress \"1.2.3.4\"<\/mark><\/code><\/p>\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 \u0648\u064a\u0646\u062f\u0648\u0632\u060c \u064a\u0645\u0643\u0646\u0643 \u062a\u0642\u064a\u064a\u062f \u0627\u0644\u0648\u0635\u0648\u0644 \u0644\u0645\u0646\u0627\u0641\u0630 \u0645\u0639\u064a\u0646\u0629 \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u0631\u0633\u0648\u0645\u064a\u0629 (GUI) \u0623\u0648 \u0639\u0628\u0631 PowerShell. \u062a\u0643\u0645\u0646 \u0627\u0644\u062e\u0637\u0648\u0629 \u0627\u0644\u0623\u0633\u0627\u0633\u064a\u0629 \u0641\u064a \u062a\u0639\u062f\u064a\u0644 \u0627\u0644\u0646\u0637\u0627\u0642 (Scope) \u0644\u0644\u0642\u0627\u0639\u062f\u0629 \u0627\u0644\u0648\u0627\u0631\u062f\u0629 \u0644\u0644\u0633\u0645\u0627\u062d \u0641\u0642\u0637 \u0628\u0640 &#8220;\u0639\u0646\u0627\u0648\u064a\u0646 IP \u0628\u0639\u064a\u062f\u0629&#8221; (Remote IP Addresses) \u0645\u062d\u062f\u062f\u0629. \u0627\u0644\u0645\u062a\u0637\u0644\u0628\u0627\u062a \u0627\u0644\u0645\u0633\u0628\u0642\u0629: \u0627\u0644\u062e\u064a\u0627\u0631 \u0627\u0644\u0623\u0648\u0644: \u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0627\u0644\u0648\u0627\u062c\u0647\u0629 \u0627\u0644\u0631\u0633\u0648\u0645\u064a\u0629 (GUI) \u0627\u0644\u062e\u064a\u0627\u0631 \u0627\u0644\u062b\u0627\u0646\u064a: \u0627\u0633\u062a\u062e\u062f\u0627\u0645 PowerShell (\u0627\u0644\u0623\u0633\u0631\u0639) \u0642\u0645 \u0628\u062a\u0634\u063a\u064a\u0644 \u0627\u0644\u0623\u0645\u0631&#8230;<\/p>\n","protected":false},"author":15,"comment_status":"open","ping_status":"closed","template":"","format":"standard","meta":{"footnotes":""},"ht-kb-category":[40,766,760],"ht-kb-tag":[],"class_list":["post-9591","ht_kb","type-ht_kb","status-publish","format-standard","hentry","ht_kb_category-cloud","ht_kb_category-vps-dedicated-servers","ht_kb_category-ls-cloud"],"_links":{"self":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/9591","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=9591"}],"version-history":[{"count":1,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/9591\/revisions"}],"predecessor-version":[{"id":9592,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb\/9591\/revisions\/9592"}],"wp:attachment":[{"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/media?parent=9591"}],"wp:term":[{"taxonomy":"ht_kb_category","embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb-category?post=9591"},{"taxonomy":"ht_kb_tag","embeddable":true,"href":"https:\/\/help.libyanspider.com\/ar\/wp-json\/wp\/v2\/ht-kb-tag?post=9591"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}