{"id":16769,"date":"2025-08-04T13:02:09","date_gmt":"2025-08-04T09:32:09","guid":{"rendered":"https:\/\/www.itpiran.net\/blog\/?p=16769"},"modified":"2025-08-17T12:53:01","modified_gmt":"2025-08-17T09:23:01","slug":"how-to-configure-a-firewall-with-ufw-on-ubuntu","status":"publish","type":"post","link":"https:\/\/www.itpiran.net\/blog\/es\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/","title":{"rendered":"C\u00f3mo configurar un cortafuegos con UFW en Ubuntu"},"content":{"rendered":"<h2 id=\"%d9%85%d9%82%d8%af%d9%85%d9%87\">\u0645\u0642\u062f\u0645\u0647<\/h2>\n<p>UFW \u06cc\u0627 Uncomplicated Firewall\u060c \u0631\u0627\u0628\u0637\u06cc \u0628\u0631\u0627\u06cc iptables \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a. \u0627\u06af\u0631\u0686\u0647 iptables \u0627\u0628\u0632\u0627\u0631\u06cc \u0642\u0648\u06cc \u0648 \u0627\u0646\u0639\u0637\u0627\u0641\u200c\u067e\u0630\u06cc\u0631 \u0627\u0633\u062a\u060c \u0627\u0645\u0627 \u06cc\u0627\u062f\u06af\u06cc\u0631\u06cc \u0646\u062d\u0648\u0647\u200c\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0628\u0631\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0635\u062d\u06cc\u062d \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0631\u0627\u06cc \u0645\u0628\u062a\u062f\u06cc\u0627\u0646 \u062f\u0634\u0648\u0627\u0631 \u0628\u0627\u0634\u062f. \u0627\u06af\u0631 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0634\u0631\u0648\u0639 \u0627\u06cc\u0645\u0646\u200c\u0633\u0627\u0632\u06cc \u0634\u0628\u06a9\u0647\u200c\u06cc \u062e\u0648\u062f \u0647\u0633\u062a\u06cc\u062f \u0648 \u0645\u0637\u0645\u0626\u0646 \u0646\u06cc\u0633\u062a\u06cc\u062f \u0627\u0632 \u06a9\u062f\u0627\u0645 \u0627\u0628\u0632\u0627\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f\u060c UFW \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u0646\u062a\u062e\u0627\u0628 \u0645\u0646\u0627\u0633\u0628\u06cc \u0628\u0631\u0627\u06cc \u0634\u0645\u0627 \u0628\u0627\u0634\u062f.<\/p>\n<h4 id=\"%d9%be%db%8c%d8%b4%d9%86%db%8c%d8%a7%d8%b2%d9%87%d8%a7\">\u067e\u06cc\u0634\u200c\u0646\u06cc\u0627\u0632\u0647\u0627<\/h4>\n<p>\u0627\u06af\u0631 \u0627\u0632 \u0646\u0633\u062e\u0647 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u06f1\u06f6.\u06f0\u06f4 \u06cc\u0627 \u067e\u0627\u06cc\u06cc\u0646\u200c\u062a\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c \u062a\u0648\u0635\u06cc\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u0645 \u0628\u0647 \u0646\u0633\u062e\u0647 \u062c\u062f\u06cc\u062f\u062a\u0631\u06cc \u0627\u0631\u062a\u0642\u0627 \u062f\u0647\u06cc\u062f \u0632\u06cc\u0631\u0627 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u062f\u06cc\u06af\u0631 \u0627\u0632 \u0627\u06cc\u0646 \u0646\u0633\u062e\u0647\u200c\u0647\u0627 \u067e\u0634\u062a\u06cc\u0628\u0627\u0646\u06cc \u0646\u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0645\u062c\u0645\u0648\u0639\u0647 \u0631\u0627\u0647\u0646\u0645\u0627 \u0628\u0647 \u0634\u0645\u0627 \u062f\u0631 \u0627\u0631\u062a\u0642\u0627\u0621 \u0646\u0633\u062e\u0647 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 \u06a9\u0645\u06a9 \u062e\u0648\u0627\u0647\u062f \u06a9\u0631\u062f.<\/p>\n<p>&nbsp;<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b1-%d8%a7%d8%b7%d9%85%db%8c%d9%86%d8%a7%d9%86-%d8%a7%d8%b2-%d9%81%d8%b9%d8%a7%d9%84-%d8%a8%d9%88%d8%af%d9%86-ipv6\">\u0645\u0631\u062d\u0644\u0647 \u06f1 \u2014 \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0646 IPv6<\/h4>\n<p>\u062f\u0631 \u0646\u0633\u062e\u0647\u200c\u0647\u0627\u06cc \u0627\u062e\u06cc\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648\u060c IPv6 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0641\u0639\u0627\u0644 \u0627\u0633\u062a. \u062f\u0631 \u0639\u0645\u0644\u060c \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u0627\u0633\u062a \u06a9\u0647 \u0628\u06cc\u0634\u062a\u0631 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0634\u0627\u0645\u0644 \u0647\u0631 \u062f\u0648 \u0646\u0633\u062e\u0647 IPv4 \u0648 IPv6 \u062e\u0648\u0627\u0647\u0646\u062f \u0628\u0648\u062f \u06a9\u0647 \u0646\u0633\u062e\u0647 \u062f\u0648\u0645 \u0628\u0627 v6 \u062f\u0631 \u062e\u0631\u0648\u062c\u06cc \u062f\u0633\u062a\u0648\u0631 status UFW \u0645\u0634\u062e\u0635 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0646 IPv6\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0627\u06cc\u0644 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc UFW \u062e\u0648\u062f \u0631\u0627 \u062f\u0631 \/etc\/default\/ufw \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f. \u0627\u06cc\u0646 \u0641\u0627\u06cc\u0644 \u0631\u0627 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 nano \u06cc\u0627 \u0648\u06cc\u0631\u0627\u06cc\u0634\u06af\u0631 \u062e\u0637 \u0641\u0631\u0645\u0627\u0646 \u0645\u0648\u0631\u062f \u0639\u0644\u0627\u0642\u0647 \u062e\u0648\u062f \u0628\u0627\u0632 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo nano \/etc\/default\/ufw<\/code><\/pre>\n<\/div>\n<p>\u0633\u067e\u0633 \u0645\u0637\u0645\u0626\u0646 \u0634\u0648\u06cc\u062f \u06a9\u0647 \u0645\u0642\u062f\u0627\u0631 IPV6 \u0631\u0648\u06cc \u0628\u0644\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a. \u0628\u0627\u06cc\u062f \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u0628\u0627\u0634\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>IPV6=yes<\/code><\/pre>\n<\/div>\n<p>\u0641\u0627\u06cc\u0644 \u0631\u0627 \u0630\u062e\u06cc\u0631\u0647 \u06a9\u0631\u062f\u0647 \u0648 \u0628\u0628\u0646\u062f\u06cc\u062f. \u0627\u06af\u0631 \u0627\u0632 nano \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0627 \u062a\u0627\u06cc\u067e CTRL+X\u060c \u0633\u067e\u0633 Y \u0648 ENTER \u0628\u0631\u0627\u06cc \u062a\u0623\u06cc\u06cc\u062f \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u0647\u0646\u06af\u0627\u0645\u06cc \u06a9\u0647 UFW \u062f\u0631 \u0645\u0631\u062d\u0644\u0647 \u0628\u0639\u062f\u06cc \u0627\u06cc\u0646 \u0631\u0627\u0647\u0646\u0645\u0627 \u0641\u0639\u0627\u0644 \u0634\u0648\u062f\u060c \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0645\u06cc\u200c\u0634\u0648\u062f \u06a9\u0647 \u0647\u0645 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 IPv4 \u0648 \u0647\u0645 IPv6 \u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u062f.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b2-%d8%aa%d9%86%d8%b8%db%8c%d9%85-%d8%b3%db%8c%d8%a7%d8%b3%d8%aa%d9%87%d8%a7%db%8c-%d9%be%db%8c%d8%b4%d9%81%d8%b1%d8%b6\">\u0645\u0631\u062d\u0644\u0647 \u06f2 \u2014 \u062a\u0646\u0638\u06cc\u0645 \u0633\u06cc\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636<\/h4>\n<p>\u0627\u06af\u0631 \u062a\u0627\u0632\u0647 \u0628\u0627 UFW \u0634\u0631\u0648\u0639 \u0628\u0647 \u06a9\u0627\u0631 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u060c \u0627\u0648\u0644\u06cc\u0646 \u0642\u062f\u0645 \u062e\u0648\u0628 \u0628\u0631\u0631\u0633\u06cc \u0633\u06cc\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0634\u0645\u0627\u0633\u062a. \u0627\u06cc\u0646 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0646\u062d\u0648\u0647 \u0645\u062f\u06cc\u0631\u06cc\u062a \u062a\u0631\u0627\u0641\u06cc\u06a9\u06cc \u0631\u0627 \u06a9\u0647 \u0628\u0647 \u0635\u0631\u0627\u062d\u062a \u0628\u0627 \u0647\u06cc\u0686 \u0642\u0627\u0646\u0648\u0646 \u062f\u06cc\u06af\u0631\u06cc \u0645\u0637\u0627\u0628\u0642\u062a \u0646\u062f\u0627\u0631\u062f\u060c \u06a9\u0646\u062a\u0631\u0644 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/p>\n<p>\u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\u060c UFW \u0637\u0648\u0631\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u062a\u0645\u0627\u0645 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0631\u062f \u06a9\u0646\u062f \u0648 \u062a\u0645\u0627\u0645 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u062e\u0631\u0648\u062c\u06cc \u0631\u0627 \u0645\u062c\u0627\u0632 \u0628\u062f\u0627\u0646\u062f. \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u0627\u0633\u062a \u06a9\u0647 \u0647\u0631 \u06a9\u0633\u06cc \u06a9\u0647 \u0633\u0639\u06cc \u062f\u0631 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u0647 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u062f\u060c \u0642\u0627\u062f\u0631 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644 \u0646\u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f\u060c \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0647\u0631 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0627\u06cc \u062f\u0631 \u062f\u0627\u062e\u0644 \u0633\u0631\u0648\u0631 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u062f \u0628\u0647 \u062f\u0646\u06cc\u0627\u06cc \u062e\u0627\u0631\u062c \u062f\u0633\u062a\u0631\u0633\u06cc \u067e\u06cc\u062f\u0627 \u06a9\u0646\u062f. \u0642\u0648\u0627\u0646\u06cc\u0646 \u0627\u0636\u0627\u0641\u06cc \u0628\u0631\u0627\u06cc \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0648 \u067e\u0648\u0631\u062a\u200c\u0647\u0627\u06cc \u062e\u0627\u0635 \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0627\u0633\u062a\u062b\u0646\u0627\u0626\u0627\u062a \u0627\u06cc\u0646 \u0633\u06cc\u0627\u0633\u062a \u06a9\u0644\u06cc \u06af\u0646\u062c\u0627\u0646\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0627\u0637\u0645\u06cc\u0646\u0627\u0646 \u0627\u0632 \u0627\u06cc\u0646\u06a9\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0642\u06cc\u0647 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0646\u06cc\u062f\u060c \u0627\u06a9\u0646\u0648\u0646 \u0633\u06cc\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 UFW \u062e\u0648\u062f \u0631\u0627 \u0628\u0631\u0627\u06cc \u062a\u0631\u0627\u0641\u06cc\u06a9 \u0648\u0631\u0648\u062f\u06cc \u0648 \u062e\u0631\u0648\u062c\u06cc \u062a\u0646\u0638\u06cc\u0645 \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0633\u06cc\u0627\u0633\u062a \u0648\u0631\u0648\u062f\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 UFW \u0628\u0631\u0627\u06cc \u0631\u062f \u06a9\u0631\u062f\u0646\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw default deny incoming<\/code><\/pre>\n<\/div>\n<pre><\/pre>\n<div title=\"Output\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\n\r\nDefault incoming policy changed to 'deny'\r\n(be sure to update your rules accordingly)<\/code><\/pre>\n<\/div>\n<\/div>\n<h5 id=\"%d8%a8%d8%b1%d8%a7%db%8c-%d8%aa%d9%86%d8%b8%db%8c%d9%85-%d8%b3%db%8c%d8%a7%d8%b3%d8%aa-%d9%be%db%8c%d8%b4%d9%81%d8%b1%d8%b6-%d8%ae%d8%b1%d9%88%d8%ac%db%8c-ufw-%d8%a8%d9%87-%d8%ad%d8%a7%d9%84\">\u0628\u0631\u0627\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0633\u06cc\u0627\u0633\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u062e\u0631\u0648\u062c\u06cc UFW \u0628\u0647 \u062d\u0627\u0644\u062a \u0645\u062c\u0627\u0632\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/h5>\n<p>\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\u200c\u0647\u0627 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0631\u062f \u06a9\u0631\u062f\u0646 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0648 \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u062e\u0631\u0648\u062c\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f. \u0627\u06cc\u0646 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636\u200c\u0647\u0627\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0647 \u062a\u0646\u0647\u0627\u06cc\u06cc \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u06a9\u0627\u0645\u067e\u06cc\u0648\u062a\u0631 \u0634\u062e\u0635\u06cc \u06a9\u0627\u0641\u06cc \u0628\u0627\u0634\u062f\u060c \u0627\u0645\u0627 \u0633\u0631\u0648\u0631\u0647\u0627 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0628\u0627\u06cc\u062f \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u0648\u0631\u0648\u062f\u06cc \u0627\u0632 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u062e\u0627\u0631\u062c\u06cc \u067e\u0627\u0633\u062e \u062f\u0647\u0646\u062f. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u062e\u0648\u0627\u0647\u06cc\u0645 \u067e\u0631\u062f\u0627\u062e\u062a.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b3-%d8%a7%d8%ac%d8%a7%d8%b2%d9%87-%d8%af%d8%a7%d8%af%d9%86-%d8%a8%d9%87-%d8%a7%d8%aa%d8%b5%d8%a7%d9%84%d8%a7%d8%aa-ssh\">\u0645\u0631\u062d\u0644\u0647 \u06f3 &#8211; \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH<\/h4>\n<p>\u0627\u06af\u0631 \u0627\u06a9\u0646\u0648\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 UFW \u062e\u0648\u062f \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f\u060c \u062a\u0645\u0627\u0645 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0631\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0628\u062f\u0627\u0646 \u0645\u0639\u0646\u0627\u0633\u062a \u06a9\u0647 \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u0646 \u0646\u0648\u0639 \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627 \u067e\u0627\u0633\u062e \u062f\u0647\u062f\u060c \u0628\u0627\u06cc\u062f \u0642\u0648\u0627\u0646\u06cc\u0646\u06cc \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0635\u0631\u06cc\u062d\u0627\u064b \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0645\u0634\u0631\u0648\u0639 &#8211; \u0645\u062b\u0644\u0627\u064b \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u06cc\u0627 HTTP &#8211; \u0631\u0627 \u0645\u062c\u0627\u0632 \u0628\u062f\u0627\u0646\u0646\u062f. \u0627\u06af\u0631 \u0627\u0632 \u06cc\u06a9 \u0633\u0631\u0648\u0631 \u0627\u0628\u0631\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u06cc\u062f\u060c \u0627\u062d\u062a\u0645\u0627\u0644\u0627\u064b \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0645\u062c\u0627\u0632 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0628\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0633\u0631\u0648\u0631 \u062e\u0648\u062f \u0645\u062a\u0635\u0644 \u0634\u062f\u0647 \u0648 \u0622\u0646 \u0631\u0627 \u0645\u062f\u06cc\u0631\u06cc\u062a \u06a9\u0646\u06cc\u062f.<\/p>\n<h5 id=\"%d9%85%d8%ac%d8%a7%d8%b2-%da%a9%d8%b1%d8%af%d9%86-%d9%be%d8%b1%d9%88%d9%81%d8%a7%db%8c%d9%84-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87-openssh-ufw\">\u0645\u062c\u0627\u0632 \u06a9\u0631\u062f\u0646 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 OpenSSH UFW<\/h5>\n<p>\u067e\u0633 \u0627\u0632 \u0646\u0635\u0628\u060c \u0627\u06a9\u062b\u0631 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627\u06cc\u06cc \u06a9\u0647 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0634\u0628\u06a9\u0647 \u0645\u062a\u06a9\u06cc \u0647\u0633\u062a\u0646\u062f\u060c \u06cc\u06a9 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0631\u0627 \u062f\u0631 UFW \u062b\u0628\u062a \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f \u06a9\u0647 \u0628\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0645\u06a9\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f \u0628\u0647 \u0633\u0631\u0639\u062a \u062f\u0633\u062a\u0631\u0633\u06cc \u062e\u0627\u0631\u062c\u06cc \u0628\u0647 \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 \u0631\u0627 \u0645\u062c\u0627\u0632 \u06cc\u0627 \u063a\u06cc\u0631\u0645\u062c\u0627\u0632 \u06a9\u0646\u0646\u062f. \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u06a9\u062f\u0627\u0645 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644\u200c\u0647\u0627 \u062f\u0631 \u062d\u0627\u0644 \u062d\u0627\u0636\u0631 \u062f\u0631 UFW \u062b\u0628\u062a \u0634\u062f\u0647\u200c\u0627\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw app list<\/code><\/pre>\n<\/div>\n<div class=\"code-toolbar\">\n<pre><\/pre>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\">\n<pre><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<div title=\"\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nAvailable applications:\r\nOpenSSH<\/code><\/pre>\n<\/div>\n<\/div>\n<div title=\"\"><\/div>\n<h5 id=\"%d8%a8%d8%b1%d8%a7%db%8c-%d9%81%d8%b9%d8%a7%d9%84-%da%a9%d8%b1%d8%af%d9%86-%d9%be%d8%b1%d9%88%d9%81%d8%a7%db%8c%d9%84-%d8%a8%d8%b1%d9%86%d8%a7%d9%85%d9%87-openssh%d8%8c-%d8%af%d8%b3%d8%aa%d9%88%d8%b1\" class=\"code-label\">\u0628\u0631\u0627\u06cc \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 OpenSSH\u060c \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f:<\/h5>\n<div title=\"\">\n<div class=\"code-toolbar\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow OpenSSH<\/code><\/pre>\n<\/div>\n<div class=\"toolbar\" dir=\"ltr\">\n<div class=\"toolbar-item\">\n<div class=\"secondary-code-label\" title=\"Output\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\n\r\nRule added\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"code-label\" title=\"\">\u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u060c \u0642\u0648\u0627\u0646\u06cc\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0631\u0627 \u0627\u06cc\u062c\u0627\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f \u062a\u0627 \u0628\u0647 \u0647\u0645\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u0648\u06cc \u067e\u0648\u0631\u062a \u06f2\u06f2\u060c \u06a9\u0647 \u067e\u0648\u0631\u062a\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0633\u0631\u0648\u06cc\u0633 SSH \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0628\u0647 \u0622\u0646 \u06af\u0648\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0627\u062c\u0627\u0632\u0647 \u0627\u062a\u0635\u0627\u0644 \u062f\u0647\u062f.<\/div>\n<h5 id=\"%d9%85%d8%ac%d8%a7%d8%b2-%da%a9%d8%b1%d8%af%d9%86-ssh-%d8%a8%d8%b1-%d8%a7%d8%b3%d8%a7%d8%b3-%d9%86%d8%a7%d9%85-%d8%b3%d8%b1%d9%88%db%8c%d8%b3\">\u0645\u062c\u0627\u0632 \u06a9\u0631\u062f\u0646 SSH \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633<\/h5>\n<p>\u0631\u0627\u0647 \u062f\u06cc\u06af\u0631 \u0628\u0631\u0627\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc UFW \u0628\u0631\u0627\u06cc \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0648\u0631\u0648\u062f\u06cc\u060c \u0627\u0631\u062c\u0627\u0639 \u0628\u0647 \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 \u0622\u0646 \u0627\u0633\u062a:<\/p>\n<div class=\"code-toolbar\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow ssh<\/code><\/pre>\n<\/div>\n<div class=\"toolbar\">\n<div class=\"toolbar-item\">\n<div class=\"secondary-code-label\" title=\"Output\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\n\r\nRule added\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<div class=\"code-label\" title=\"\">UFW \u0628\u0631 \u0627\u0633\u0627\u0633 \u0641\u0627\u06cc\u0644 \/etc\/services \u0645\u06cc\u200c\u062f\u0627\u0646\u062f \u06a9\u0647 \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 \u0627\u0632 \u06a9\u062f\u0627\u0645 \u067e\u0648\u0631\u062a\u200c\u0647\u0627 \u0648 \u067e\u0631\u0648\u062a\u06a9\u0644\u200c\u0647\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/div>\n<\/div>\n<div title=\"\"><\/div>\n<div title=\"\"><\/div>\n<div title=\"\">\n<h5 id=\"%d9%81%d8%b9%d8%a7%d9%84-%da%a9%d8%b1%d8%af%d9%86-ssh-%d8%a8%d8%b1-%d8%a7%d8%b3%d8%a7%d8%b3-%d8%b4%d9%85%d8%a7%d8%b1%d9%87-%d9%be%d9%88%d8%b1%d8%aa\">\u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 SSH \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0645\u0627\u0631\u0647 \u067e\u0648\u0631\u062a<\/h5>\n<p>\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u06cc\u06a9 \u0631\u0648\u0634 \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u067e\u0648\u0631\u062a \u0628\u0647 \u062c\u0627\u06cc \u0646\u0627\u0645 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u06cc\u0627 \u0633\u0631\u0648\u06cc\u0633\u060c \u0642\u0627\u0646\u0648\u0646 \u0645\u0639\u0627\u062f\u0644 \u0631\u0627 \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644\u060c \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0645\u0627\u0646\u0646\u062f \u0645\u062b\u0627\u0644\u200c\u0647\u0627\u06cc \u0642\u0628\u0644\u06cc \u0639\u0645\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow 22<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\n\r\nRule added\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0627\u06af\u0631 \u0633\u0631\u0648\u06cc\u0633 SSH \u062e\u0648\u062f \u0631\u0627 \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u067e\u0648\u0631\u062a \u062f\u06cc\u06af\u0631\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u062f\u060c \u0628\u0627\u06cc\u062f \u067e\u0648\u0631\u062a \u0645\u0646\u0627\u0633\u0628 \u0631\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0633\u0631\u0648\u0631 SSH \u0634\u0645\u0627 \u0631\u0648\u06cc \u067e\u0648\u0631\u062a \u06f2\u06f2\u06f2\u06f2 \u06af\u0648\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0631\u0627\u06cc \u0627\u062c\u0627\u0632\u0647 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u0622\u0646 \u067e\u0648\u0631\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow 2222<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\n\r\nRule added\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<\/div>\n<\/div>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u06a9\u0647 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0634\u0645\u0627 \u0628\u0631\u0627\u06cc \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0648\u0631\u0648\u062f\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f.<\/p>\n<div title=\"\">\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b4-%d9%81%d8%b9%d8%a7%d9%84-%da%a9%d8%b1%d8%af%d9%86-ufw\">\u0645\u0631\u062d\u0644\u0647 \u06f4 \u2014 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 UFW<\/h4>\n<\/div>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0634\u0645\u0627 \u0628\u0627\u06cc\u062f \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u06a9\u0647 \u0627\u0645\u06a9\u0627\u0646 \u0627\u062a\u0635\u0627\u0644 SSH \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u062a\u0623\u06cc\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u062f\u0627\u0645 \u0642\u0648\u0627\u0646\u06cc\u0646 \u062a\u0627\u06a9\u0646\u0648\u0646 \u0627\u0636\u0627\u0641\u0647 \u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u062d\u062a\u06cc \u0632\u0645\u0627\u0646\u06cc \u06a9\u0647 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0647\u0646\u0648\u0632 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0627\u0633\u062a\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw show added\r\n<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><span style=\"background-color: #e9ebec; color: inherit; font-family: inherit;\">Output<\/span>\r\nAdded user rules (see 'ufw status' for running firewall):\r\nufw allow OpenSSH<\/code><\/pre>\n<\/div>\n<\/div>\n<h5 id=\"%d9%be%d8%b3-%d8%a7%d8%b2-%d8%aa%d8%a3%db%8c%db%8c%d8%af-%d8%a7%db%8c%d9%86%da%a9%d9%87-%d9%82%d8%a7%d9%86%d9%88%d9%86%db%8c-%d8%a8%d8%b1%d8%a7%db%8c-%d8%a7%d8%ac%d8%a7%d8%b2%d9%87-%d8%af%d8%a7%d8%af\">\u067e\u0633 \u0627\u0632 \u062a\u0623\u06cc\u06cc\u062f \u0627\u06cc\u0646\u06a9\u0647 \u0642\u0627\u0646\u0648\u0646\u06cc \u0628\u0631\u0627\u06cc \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0648\u0631\u0648\u062f\u06cc \u062f\u0627\u0631\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0631\u0627 \u0628\u0627 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/h5>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw enable\r\n<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><span style=\"background-color: #e9ebec; color: inherit; font-family: inherit;\">Output<\/span><\/code><code>Command may disrupt existing ssh connections. Proceed with operation (y|n)? y\r\nFirewall is active and enabled on system startup<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0647\u0634\u062f\u0627\u0631\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u062e\u0648\u0627\u0647\u06cc\u062f \u06a9\u0631\u062f \u06a9\u0647 \u0645\u06cc\u200c\u06af\u0648\u06cc\u062f \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0645\u0648\u062c\u0648\u062f \u0631\u0627 \u0645\u062e\u062a\u0644 \u06a9\u0646\u062f. \u0634\u0645\u0627 \u0642\u0628\u0644\u0627\u064b \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f \u06a9\u0647 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f\u060c \u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646 \u0627\u062f\u0627\u0645\u0647 \u06a9\u0627\u0631 \u0645\u0634\u06a9\u0644\u06cc \u0646\u062e\u0648\u0627\u0647\u062f \u062f\u0627\u0634\u062a. \u0628\u0627 y \u0628\u0647 \u062f\u0631\u062e\u0648\u0627\u0633\u062a \u067e\u0627\u0633\u062e \u062f\u0647\u06cc\u062f \u0648 ENTER \u0631\u0627 \u0628\u0632\u0646\u06cc\u062f.<\/p>\n<p>\u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0627\u06a9\u0646\u0648\u0646 \u0641\u0639\u0627\u0644 \u0627\u0633\u062a. \u062f\u0633\u062a\u0648\u0631 sudo ufw status verbose \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0642\u0648\u0627\u0646\u06cc\u0646 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0631\u0627 \u0628\u0628\u06cc\u0646\u06cc\u062f. \u0628\u0642\u06cc\u0647 \u0627\u06cc\u0646 \u0622\u0645\u0648\u0632\u0634 \u0646\u062d\u0648\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 UFW \u0631\u0627 \u0628\u0627 \u062c\u0632\u0626\u06cc\u0627\u062a \u0628\u06cc\u0634\u062a\u0631\u060c \u0645\u0627\u0646\u0646\u062f \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u06cc\u0627 \u0631\u062f \u06a9\u0631\u062f\u0646 \u0627\u0646\u0648\u0627\u0639 \u0645\u062e\u062a\u0644\u0641 \u0627\u062a\u0635\u0627\u0644\u0627\u062a\u060c \u067e\u0648\u0634\u0634 \u0645\u06cc\u200c\u062f\u0647\u062f.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b5-%d8%a7%d8%ac%d8%a7%d8%b2%d9%87-%d8%af%d8%a7%d8%af%d9%86-%d8%a8%d9%87-%d8%b3%d8%a7%db%8c%d8%b1-%d8%a7%d8%aa%d8%b5%d8%a7%d9%84%d8%a7%d8%aa\">\u0645\u0631\u062d\u0644\u0647 \u06f5 \u2014 \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u0628\u0647 \u0633\u0627\u06cc\u0631 \u0627\u062a\u0635\u0627\u0644\u0627\u062a<\/h4>\n<p>\u062f\u0631 \u0627\u06cc\u0646 \u0645\u0631\u062d\u0644\u0647\u060c \u0628\u0627\u06cc\u062f \u0628\u0647 \u062a\u0645\u0627\u0645 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u062f\u06cc\u06af\u0631\u06cc \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u0628\u0647 \u067e\u0627\u0633\u062e\u06af\u0648\u06cc\u06cc \u0628\u0647 \u0622\u0646\u0647\u0627 \u062f\u0627\u0631\u062f\u060c \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f. \u0627\u062a\u0635\u0627\u0644\u0627\u062a\u06cc \u06a9\u0647 \u0628\u0627\u06cc\u062f \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f \u0628\u0647 \u0646\u06cc\u0627\u0632\u0647\u0627\u06cc \u062e\u0627\u0635 \u0634\u0645\u0627 \u0628\u0633\u062a\u06af\u06cc \u062f\u0627\u0631\u062f. \u0634\u0645\u0627 \u0627\u0632 \u0642\u0628\u0644 \u0645\u06cc\u200c\u062f\u0627\u0646\u06cc\u062f \u06a9\u0647 \u0686\u06af\u0648\u0646\u0647 \u0642\u0648\u0627\u0646\u06cc\u0646\u06cc \u0628\u0646\u0648\u06cc\u0633\u06cc\u062f \u06a9\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0645\u0627\u06cc\u0647 \u0628\u0631\u0646\u0627\u0645\u0647\u060c \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 \u06cc\u0627 \u067e\u0648\u0631\u062a \u0645\u062c\u0627\u0632 \u06a9\u0646\u0646\u062f. \u0634\u0645\u0627 \u0642\u0628\u0644\u0627\u064b \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc SSH \u0631\u0648\u06cc \u067e\u0648\u0631\u062a \u06f2\u06f2 \u0627\u0646\u062c\u0627\u0645 \u062f\u0627\u062f\u0647\u200c\u0627\u06cc\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0631\u0627\u06cc \u0645\u0648\u0627\u0631\u062f \u0632\u06cc\u0631 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f:<\/p>\n<ul>\n<li>HTTP \u0631\u0648\u06cc \u067e\u0648\u0631\u062a \u06f8\u06f0\u060c \u06a9\u0647 \u0647\u0645\u0627\u0646 \u067e\u0648\u0631\u062a\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0648\u0628 \u0631\u0645\u0632\u06af\u0630\u0627\u0631\u06cc \u0646\u0634\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 sudo ufw allow http \u06cc\u0627 sudo ufw allow 80<\/li>\n<li>HTTPS \u0631\u0648\u06cc \u067e\u0648\u0631\u062a \u06f4\u06f4\u06f3\u060c \u06a9\u0647 \u0647\u0645\u0627\u0646 \u067e\u0648\u0631\u062a\u06cc \u0627\u0633\u062a \u06a9\u0647 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u0648\u0628 \u0631\u0645\u0632\u06af\u0630\u0627\u0631\u06cc \u0634\u062f\u0647 \u0627\u0632 \u0622\u0646 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 sudo ufw allow https \u06cc\u0627 sudo ufw allow 443<\/li>\n<li>\u0622\u067e\u0627\u0686\u06cc \u0628\u0627 HTTP \u0648 HTTPS\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 sudo ufw allow \u2018Apache Full\u2019<\/li>\n<li>Nginx \u0628\u0627 HTTP \u0648 HTTPS\u060c \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 sudo ufw allow \u2018Nginx Full\u2019<\/li>\n<\/ul>\n<p>\u0641\u0631\u0627\u0645\u0648\u0634 \u0646\u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 sudo ufw app list \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u062f\u0627\u0645 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644\u200c\u0647\u0627\u06cc \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0631\u0627\u06cc \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u062f\u0631 \u062f\u0633\u062a\u0631\u0633 \u0647\u0633\u062a\u0646\u062f.<\/p>\n<p>\u062c\u062f\u0627 \u0627\u0632 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u067e\u0648\u0631\u062a \u06cc\u0627 \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 \u0634\u0646\u0627\u062e\u062a\u0647\u200c\u0634\u062f\u0647\u060c \u0686\u0646\u062f\u06cc\u0646 \u0631\u0648\u0634 \u062f\u06cc\u06af\u0631 \u0628\u0631\u0627\u06cc \u0645\u062c\u0627\u0632 \u06a9\u0631\u062f\u0646 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f. \u062f\u0631 \u0627\u062f\u0627\u0645\u0647 \u0628\u0647 \u0628\u0631\u062e\u06cc \u0627\u0632 \u0627\u06cc\u0646 \u0631\u0648\u0634\u200c\u0647\u0627 \u062e\u0648\u0627\u0647\u06cc\u0645 \u067e\u0631\u062f\u0627\u062e\u062a.<\/p>\n<h5 id=\"%d9%85%d8%ad%d8%af%d9%88%d8%af%d9%87%d9%87%d8%a7%db%8c-%d8%ae%d8%a7%d8%b5-%d9%be%d9%88%d8%b1%d8%aa\">\u0645\u062d\u062f\u0648\u062f\u0647\u200c\u0647\u0627\u06cc \u062e\u0627\u0635 \u067e\u0648\u0631\u062a<\/h5>\n<p>\u0634\u0645\u0627 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0645\u062d\u062f\u0648\u062f\u0647 \u067e\u0648\u0631\u062a\u200c\u0647\u0627 \u0631\u0627 \u0628\u0627 UFW \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u062e\u06cc \u0627\u0632 \u0628\u0631\u0646\u0627\u0645\u0647\u200c\u0647\u0627 \u0628\u0647 \u062c\u0627\u06cc \u06cc\u06a9 \u067e\u0648\u0631\u062a\u060c \u0627\u0632 \u0686\u0646\u062f\u06cc\u0646 \u067e\u0648\u0631\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f.<\/p>\n<p>\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0628\u0631\u0627\u06cc \u0645\u062c\u0627\u0632 \u06a9\u0631\u062f\u0646 \u0627\u062a\u0635\u0627\u0644\u0627\u062a X11 \u06a9\u0647 \u0627\u0632 \u067e\u0648\u0631\u062a\u200c\u0647\u0627\u06cc \u06f6\u06f0\u06f0\u06f0-\u06f6\u06f0\u06f0\u06f7 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u0646\u062f\u060c \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<p>sudo ufw allow 6000:6007\/tcp<br \/>\nsudo ufw allow 6000:6007\/udp<\/p>\n<p>\u0647\u0646\u06af\u0627\u0645 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u0645\u062d\u062f\u0648\u062f\u0647 \u067e\u0648\u0631\u062a\u200c\u0647\u0627 \u0628\u0627 UFW\u060c \u0628\u0627\u06cc\u062f \u067e\u0631\u0648\u062a\u06a9\u0644 (tcp \u06cc\u0627 udp) \u06a9\u0647 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0627\u06cc\u062f \u0631\u0648\u06cc \u0622\u0646 \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u0646\u062f \u0631\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. \u0645\u0627 \u0642\u0628\u0644\u0627\u064b \u0628\u0647 \u0627\u06cc\u0646 \u0645\u0648\u0636\u0648\u0639 \u0627\u0634\u0627\u0631\u0647 \u0646\u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u0645 \u0632\u06cc\u0631\u0627 \u0645\u0634\u062e\u0635 \u0646\u06a9\u0631\u062f\u0646 \u067e\u0631\u0648\u062a\u06a9\u0644 \u0628\u0647 \u0637\u0648\u0631 \u062e\u0648\u062f\u06a9\u0627\u0631 \u0647\u0631 \u062f\u0648 \u067e\u0631\u0648\u062a\u06a9\u0644 \u0631\u0627 \u0645\u062c\u0627\u0632 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u06a9\u0647 \u062f\u0631 \u0628\u06cc\u0634\u062a\u0631 \u0645\u0648\u0627\u0631\u062f \u0627\u0634\u06a9\u0627\u0644\u06cc \u0646\u062f\u0627\u0631\u062f.<\/p>\n<h5 id=\"%d8%a2%d8%af%d8%b1%d8%b3%d9%87%d8%a7%db%8c-ip-%d8%ae%d8%a7%d8%b5\">\u0622\u062f\u0631\u0633\u200c\u0647\u0627\u06cc IP \u062e\u0627\u0635<\/h5>\n<p>\u0647\u0646\u06af\u0627\u0645 \u06a9\u0627\u0631 \u0628\u0627 UFW\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u062f\u0631\u0633\u200c\u0647\u0627\u06cc IP \u0631\u0627 \u0646\u06cc\u0632 \u062f\u0631 \u0642\u0648\u0627\u0646\u06cc\u0646 \u062e\u0648\u062f \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0627\u0632 \u06cc\u06a9 \u0622\u062f\u0631\u0633 IP \u062e\u0627\u0635\u060c \u0645\u0627\u0646\u0646\u062f \u0622\u062f\u0631\u0633 IP \u0645\u062d\u0644 \u06a9\u0627\u0631 \u06cc\u0627 \u0645\u0646\u0632\u0644 203.0.113.4 \u0631\u0627 \u0645\u062c\u0627\u0632 \u06a9\u0646\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0627\u0632 \u067e\u0627\u0631\u0627\u0645\u062a\u0631 from \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 \u0633\u067e\u0633 \u0622\u062f\u0631\u0633 IP \u0645\u0648\u0631\u062f \u0646\u0638\u0631 \u062e\u0648\u062f \u0631\u0627 \u0648\u0627\u0631\u062f \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow from 203.0.113.4<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\n\r\nRule added<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0647\u0645\u0686\u0646\u06cc\u0646 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0636\u0627\u0641\u0647 \u06a9\u0631\u062f\u0646 \u0628\u0647 \u0647\u0631 \u067e\u0648\u0631\u062a \u0648 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0622\u0646 \u0634\u0645\u0627\u0631\u0647 \u067e\u0648\u0631\u062a\u060c \u067e\u0648\u0631\u062a\u06cc \u0631\u0627 \u06a9\u0647 \u0622\u062f\u0631\u0633 IP \u0645\u062c\u0627\u0632 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u0622\u0646 \u0627\u0633\u062a\u060c \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 203.0.113.4 \u0627\u062c\u0627\u0632\u0647 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u067e\u0648\u0631\u062a 22 (SSH) \u0631\u0627 \u0628\u062f\u0647\u06cc\u062f\u060c \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow from 203.0.113.4 to any port 22\r\n<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><span style=\"background-color: #e9ebec; color: inherit; font-family: inherit;\">Output<\/span><\/code><code>Rule added<\/code><\/pre>\n<\/div>\n<\/div>\n<h4 id=\"subnets\">Subnets<\/h4>\n<p>\u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u06cc\u06a9 \u0632\u06cc\u0631\u0634\u0628\u06a9\u0647 \u0627\u0632 \u0622\u062f\u0631\u0633\u200c\u0647\u0627\u06cc IP \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u062f\u0647\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0646\u0645\u0627\u062f\u06af\u0630\u0627\u0631\u06cc CIDR \u0628\u0631\u0627\u06cc \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u06cc\u06a9 \u0645\u0627\u0633\u06a9 \u0634\u0628\u06a9\u0647 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u0647\u0645\u0647 \u0622\u062f\u0631\u0633\u200c\u0647\u0627\u06cc IP \u0627\u0632 203.0.113.1 \u062a\u0627 203.0.113.254 \u0627\u062c\u0627\u0632\u0647 \u062f\u0633\u062a\u0631\u0633\u06cc \u0628\u062f\u0647\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow from 203.0.113.0\/24\r\n<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code><span style=\"background-color: #e9ebec; color: inherit; font-family: inherit;\">Output<\/span>\r\nRule added<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0628\u0647 \u0647\u0645\u06cc\u0646 \u062a\u0631\u062a\u06cc\u0628\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u067e\u0648\u0631\u062a \u0645\u0642\u0635\u062f\u06cc \u0631\u0627 \u06a9\u0647 \u0632\u06cc\u0631\u0634\u0628\u06a9\u0647 203.0.113.0\/24 \u0645\u062c\u0627\u0632 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u0622\u0646 \u0627\u0633\u062a\u060c \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f. \u0628\u0627\u0632 \u0647\u0645\u060c \u0645\u0627 \u0627\u0632 \u067e\u0648\u0631\u062a 22 (SSH) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u062e\u0648\u0627\u0647\u06cc\u0645 \u06a9\u0631\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow from 203.0.113.0\/24 to any port 22<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" dir=\"ltr\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\n\r\nRule added<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\">\n<h5 id=\"%d8%a7%d8%aa%d8%b5%d8%a7%d9%84-%d8%a8%d9%87-%db%8c%da%a9-%d8%b1%d8%a7%d8%a8%d8%b7-%d8%b4%d8%a8%da%a9%d9%87-%d8%ae%d8%a7%d8%b5\">\u0627\u062a\u0635\u0627\u0644 \u0628\u0647 \u06cc\u06a9 \u0631\u0627\u0628\u0637 \u0634\u0628\u06a9\u0647 \u062e\u0627\u0635<\/h5>\n<p>\u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f \u06a9\u0647 \u0641\u0642\u0637 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u0631\u0627\u0628\u0637 \u0634\u0628\u06a9\u0647 \u062e\u0627\u0635 \u0627\u0639\u0645\u0627\u0644 \u0634\u0648\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0631\u0627 \u0628\u0627 \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u00ab\u0627\u062c\u0627\u0632\u0647 \u0648\u0631\u0648\u062f \u0628\u0647 \u0633\u06cc\u0633\u062a\u0645\u00bb \u0648 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0622\u0646 \u0646\u0627\u0645 \u0631\u0627\u0628\u0637 \u0634\u0628\u06a9\u0647 \u0627\u0646\u062c\u0627\u0645 \u062f\u0647\u06cc\u062f.<\/p>\n<p>\u0642\u0628\u0644 \u0627\u0632 \u0627\u062f\u0627\u0645\u0647\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0631\u0627\u0628\u0637\u200c\u0647\u0627\u06cc \u0634\u0628\u06a9\u0647 \u062e\u0648\u062f \u0631\u0627 \u062c\u0633\u062a\u062c\u0648 \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631\u060c \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>ip addr<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output Excerpt\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output Excerpt\r\n2: eth0: &lt;BROADCAST,MULTICAST,UP,LOWER_UP&gt; mtu 1500 qdisc pfifo_fast state\r\n. . .\r\n3: eth1: &lt;BROADCAST,MULTICAST&gt; mtu 1500 qdisc noop state DOWN group default\r\n. . .<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u062e\u0631\u0648\u062c\u06cc \u0647\u0627\u06cc\u0644\u0627\u06cc\u062a \u0634\u062f\u0647 \u0646\u0627\u0645 \u0631\u0627\u0628\u0637\u200c\u0647\u0627\u06cc \u0634\u0628\u06a9\u0647 \u0631\u0627 \u0646\u0634\u0627\u0646 \u0645\u06cc\u200c\u062f\u0647\u062f. \u0622\u0646\u0647\u0627 \u0645\u0639\u0645\u0648\u0644\u0627\u064b \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 eth0 \u06cc\u0627 enp3s2 \u0646\u0627\u0645\u06af\u0630\u0627\u0631\u06cc \u0645\u06cc\u200c\u0634\u0648\u0646\u062f.<\/p>\n<p>\u0628\u0646\u0627\u0628\u0631\u0627\u06cc\u0646\u060c \u0627\u06af\u0631 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u06cc\u06a9 \u0631\u0627\u0628\u0637 \u0634\u0628\u06a9\u0647 \u0639\u0645\u0648\u0645\u06cc \u0628\u0647 \u0646\u0627\u0645 eth0 \u062f\u0627\u0631\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u062a\u0631\u0627\u0641\u06cc\u06a9 HTTP (\u067e\u0648\u0631\u062a \u06f8\u06f0) \u0631\u0627 \u0628\u0647 \u0622\u0646 \u0627\u062c\u0627\u0632\u0647 \u062f\u0647\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow in on eth0 to any port 80<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\" dir=\"ltr\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nRule added\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0627\u0646\u062c\u0627\u0645 \u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0628\u0647 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u062f\u0631\u062e\u0648\u0627\u0633\u062a\u200c\u0647\u0627\u06cc HTTP \u0631\u0627 \u0627\u0632 \u0627\u06cc\u0646\u062a\u0631\u0646\u062a \u0639\u0645\u0648\u0645\u06cc \u062f\u0631\u06cc\u0627\u0641\u062a \u06a9\u0646\u062f.<\/p>\n<p>\u06cc\u0627 \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0633\u0631\u0648\u0631 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0634\u0645\u0627 (\u067e\u0648\u0631\u062a \u06f3\u06f3\u06f0\u06f6) \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644 \u0628\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0631\u0648\u06cc \u0631\u0627\u0628\u0637 \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc eth1 \u06af\u0648\u0634 \u062f\u0647\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw allow in on eth1 to any port 3306<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\n\r\nRule added\r\n\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u0628\u0647 \u0633\u0631\u0648\u0631\u0647\u0627\u06cc \u062f\u06cc\u06af\u0631 \u062f\u0631 \u0634\u0628\u06a9\u0647 \u062e\u0635\u0648\u0635\u06cc \u0634\u0645\u0627 \u0627\u062c\u0627\u0632\u0647 \u0645\u06cc\u200c\u062f\u0647\u062f \u062a\u0627 \u0628\u0647 \u067e\u0627\u06cc\u06af\u0627\u0647 \u062f\u0627\u062f\u0647 MySQL \u0634\u0645\u0627 \u0645\u062a\u0635\u0644 \u0634\u0648\u0646\u062f.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b6-%d8%b1%d8%af-%da%a9%d8%b1%d8%af%d9%86-%d8%a7%d8%aa%d8%b5%d8%a7%d9%84%d8%a7%d8%aa\">\u0645\u0631\u062d\u0644\u0647 \u06f6 &#8211; \u0631\u062f \u06a9\u0631\u062f\u0646 \u0627\u062a\u0635\u0627\u0644\u0627\u062a<\/h4>\n<p>\u0627\u06af\u0631 \u0633\u06cc\u0627\u0633\u062a \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0628\u0631\u0627\u06cc \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u0646\u062f\u0627\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c UFW \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 \u0647\u0645\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0648\u0631\u0648\u062f\u06cc \u0631\u0627 \u0631\u062f \u06a9\u0646\u062f. \u0628\u0647 \u0637\u0648\u0631 \u06a9\u0644\u06cc\u060c \u0627\u06cc\u0646 \u0627\u0645\u0631 \u0628\u0627 \u0645\u0644\u0632\u0645 \u06a9\u0631\u062f\u0646 \u0634\u0645\u0627 \u0628\u0647 \u0627\u06cc\u062c\u0627\u062f \u0642\u0648\u0627\u0646\u06cc\u0646\u06cc \u06a9\u0647 \u0635\u0631\u06cc\u062d\u0627\u064b \u0627\u062c\u0627\u0632\u0647 \u0639\u0628\u0648\u0631 \u067e\u0648\u0631\u062a\u200c\u0647\u0627 \u0648 \u0622\u062f\u0631\u0633\u200c\u0647\u0627\u06cc IP \u062e\u0627\u0635 \u0631\u0627 \u0645\u06cc\u200c\u062f\u0647\u0646\u062f\u060c \u0641\u0631\u0622\u06cc\u0646\u062f \u0627\u06cc\u062c\u0627\u062f \u06cc\u06a9 \u0633\u06cc\u0627\u0633\u062a \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0627\u0645\u0646 \u0631\u0627 \u0633\u0627\u062f\u0647 \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<p>\u0628\u0627 \u0627\u06cc\u0646 \u062d\u0627\u0644\u060c \u06af\u0627\u0647\u06cc \u0627\u0648\u0642\u0627\u062a \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u062e\u0627\u0635\u06cc \u0631\u0627 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0622\u062f\u0631\u0633 IP \u0645\u0646\u0628\u0639 \u06cc\u0627 \u0632\u06cc\u0631\u0634\u0628\u06a9\u0647 \u0631\u062f \u06a9\u0646\u06cc\u062f\u060c \u0634\u0627\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 \u062f\u0644\u06cc\u0644 \u06a9\u0647 \u0645\u06cc\u200c\u062f\u0627\u0646\u06cc\u062f \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0627\u0632 \u0622\u0646\u062c\u0627 \u0645\u0648\u0631\u062f \u062d\u0645\u0644\u0647 \u0642\u0631\u0627\u0631 \u0645\u06cc\u200c\u06af\u06cc\u0631\u062f. \u0647\u0645\u0686\u0646\u06cc\u0646\u060c \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0633\u06cc\u0627\u0633\u062a \u0648\u0631\u0648\u062f\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u062e\u0648\u062f \u0631\u0627 \u0628\u0647 \u0627\u062c\u0627\u0632\u0647 \u062f\u0627\u062f\u0646 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f (\u06a9\u0647 \u062a\u0648\u0635\u06cc\u0647 \u0646\u0645\u06cc\u200c\u0634\u0648\u062f)\u060c \u0628\u0627\u06cc\u062f \u0628\u0631\u0627\u06cc \u0647\u0631 \u0633\u0631\u0648\u06cc\u0633 \u06cc\u0627 \u0622\u062f\u0631\u0633 IP \u06a9\u0647 \u0646\u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0647 \u0622\u0646\u0647\u0627 \u0627\u062c\u0627\u0632\u0647 \u0627\u062a\u0635\u0627\u0644 \u0628\u062f\u0647\u06cc\u062f\u060c \u0642\u0648\u0627\u0646\u06cc\u0646 \u0631\u062f \u06a9\u0631\u062f\u0646 \u0627\u06cc\u062c\u0627\u062f \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0631\u0627\u06cc \u0646\u0648\u0634\u062a\u0646 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0631\u062f \u06a9\u0631\u062f\u0646\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631\u0627\u062a\u06cc \u06a9\u0647 \u0642\u0628\u0644\u0627\u064b \u062a\u0648\u0636\u06cc\u062d \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f \u0648 allow \u0631\u0627 \u0628\u0627 deny \u062c\u0627\u06cc\u06af\u0632\u06cc\u0646 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0628\u0631\u0627\u06cc \u0631\u062f \u06a9\u0631\u062f\u0646 \u0627\u062a\u0635\u0627\u0644\u0627\u062a HTTP\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw deny http<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" dir=\"ltr\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<p>\u06cc\u0627 \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u062a\u0645\u0627\u0645 \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u0627\u0632 203.0.113.4 \u0631\u0627 \u0631\u062f \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw deny from 203.0.113.4<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" dir=\"ltr\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nRule added<\/code><\/pre>\n<\/div>\n<p>\u062f\u0631 \u0628\u0631\u062e\u06cc \u0645\u0648\u0627\u0631\u062f\u060c \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0628\u062e\u0648\u0627\u0647\u06cc\u062f \u0627\u062a\u0635\u0627\u0644\u0627\u062a \u062e\u0631\u0648\u062c\u06cc \u0627\u0632 \u0633\u0631\u0648\u0631 \u0631\u0627 \u0646\u06cc\u0632 \u0645\u0633\u062f\u0648\u062f \u06a9\u0646\u06cc\u062f. \u0628\u0631\u0627\u06cc \u062c\u0644\u0648\u06af\u06cc\u0631\u06cc \u0627\u0632 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0647\u0645\u0647 \u06a9\u0627\u0631\u0628\u0631\u0627\u0646 \u0627\u0632 \u067e\u0648\u0631\u062a\u06cc \u0631\u0648\u06cc \u0633\u0631\u0648\u0631\u060c \u0645\u0627\u0646\u0646\u062f \u067e\u0648\u0631\u062a \u06f2\u06f5 \u0628\u0631\u0627\u06cc \u062a\u0631\u0627\u0641\u06cc\u06a9 SMTP\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 deny out \u0648 \u0628\u0647 \u062f\u0646\u0628\u0627\u0644 \u0622\u0646 \u0634\u0645\u0627\u0631\u0647 \u067e\u0648\u0631\u062a \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw deny out 25<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" dir=\"ltr\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nRule added\r\nRule added (v6)<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u06a9\u0627\u0631 \u062a\u0645\u0627\u0645 \u062a\u0631\u0627\u0641\u06cc\u06a9 \u062e\u0631\u0648\u062c\u06cc SMTP \u0631\u0648\u06cc \u0633\u0631\u0648\u0631 \u0631\u0627 \u0645\u0633\u062f\u0648\u062f \u0645\u06cc\u200c\u06a9\u0646\u062f.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b7-%d8%ad%d8%b0%d9%81-%d9%82%d9%88%d8%a7%d9%86%db%8c%d9%86\">\u0645\u0631\u062d\u0644\u0647 \u06f7 &#8211; \u062d\u0630\u0641 \u0642\u0648\u0627\u0646\u06cc\u0646<\/h4>\n<p>\u062f\u0627\u0646\u0633\u062a\u0646 \u0646\u062d\u0648\u0647 \u062d\u0630\u0641 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0647 \u0647\u0645\u0627\u0646 \u0627\u0646\u062f\u0627\u0632\u0647 \u062f\u0627\u0646\u0633\u062a\u0646 \u0646\u062d\u0648\u0647 \u0627\u06cc\u062c\u0627\u062f \u0622\u0646\u0647\u0627 \u0645\u0647\u0645 \u0627\u0633\u062a. \u062f\u0648 \u0631\u0648\u0634 \u0645\u062e\u062a\u0644\u0641 \u0628\u0631\u0627\u06cc \u0645\u0634\u062e\u0635 \u06a9\u0631\u062f\u0646 \u0627\u06cc\u0646\u06a9\u0647 \u06a9\u062f\u0627\u0645 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0627\u06cc\u062f \u062d\u0630\u0641 \u0634\u0648\u0646\u062f \u0648\u062c\u0648\u062f \u062f\u0627\u0631\u062f: \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0634\u0645\u0627\u0631\u0647 \u0642\u0627\u0646\u0648\u0646 \u06cc\u0627 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0646\u0627\u0645 \u0642\u0627\u0628\u0644 \u062e\u0648\u0627\u0646\u062f\u0646 \u062a\u0648\u0633\u0637 \u0627\u0646\u0633\u0627\u0646 (\u0634\u0628\u06cc\u0647 \u0628\u0647 \u0646\u062d\u0648\u0647 \u0645\u0634\u062e\u0635 \u0634\u062f\u0646 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0647\u0646\u06af\u0627\u0645 \u0627\u06cc\u062c\u0627\u062f \u0622\u0646\u0647\u0627).<\/p>\n<h5 id=\"%d8%ad%d8%b0%d9%81-%db%8c%da%a9-%d9%82%d8%a7%d9%86%d9%88%d9%86-ufw-%d8%a8%d8%b1-%d8%a7%d8%b3%d8%a7%d8%b3-%d8%b4%d9%85%d8%a7%d8%b1%d9%87\">\u062d\u0630\u0641 \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 UFW \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0645\u0627\u0631\u0647<\/h5>\n<p>\u0628\u0631\u0627\u06cc \u062d\u0630\u0641 \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 UFW \u0628\u0631 \u0627\u0633\u0627\u0633 \u0634\u0645\u0627\u0631\u0647 \u0622\u0646\u060c \u0627\u0628\u062a\u062f\u0627 \u0628\u0627\u06cc\u062f \u0644\u06cc\u0633\u062a\u06cc \u0634\u0645\u0627\u0631\u0647\u200c\u06af\u0630\u0627\u0631\u06cc \u0634\u062f\u0647 \u0627\u0632 \u062a\u0645\u0627\u0645 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u062e\u0648\u062f \u0631\u0627 \u0628\u062f\u0633\u062a \u0622\u0648\u0631\u06cc\u062f. \u062f\u0633\u062a\u0648\u0631 UFW status \u06af\u0632\u06cc\u0646\u0647\u200c\u0627\u06cc \u0628\u0631\u0627\u06cc \u0646\u0645\u0627\u06cc\u0634 \u0634\u0645\u0627\u0631\u0647\u200c\u0647\u0627 \u062f\u0631 \u06a9\u0646\u0627\u0631 \u0647\u0631 \u0642\u0627\u0646\u0648\u0646 \u062f\u0627\u0631\u062f\u060c \u0647\u0645\u0627\u0646\u0637\u0648\u0631 \u06a9\u0647 \u062f\u0631 \u0627\u06cc\u0646\u062c\u0627 \u0646\u0634\u0627\u0646 \u062f\u0627\u062f\u0647 \u0634\u062f\u0647 \u0627\u0633\u062a:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw status numbered<\/code><\/pre>\n<\/div>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Numbered Output:\r\nStatus: active\r\n\r\nTo\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Action\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0From\r\n--\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0------\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0\u00a0----\r\n[ 1] 22\u00a0 \u00a0 \u00a0 \u00a0 \u00a0ALLOW IN\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a015.15.15.0\/24\r\n[ 2] 80\u00a0 \u00a0 \u00a0 \u00a0 \u00a0ALLOW IN\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0 \u00a0Anywhere<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 \u062a\u0635\u0645\u06cc\u0645 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0642\u0627\u0646\u0648\u0646 \u0634\u0645\u0627\u0631\u0647 \u06f2\u060c \u0642\u0627\u0646\u0648\u0646\u06cc \u06a9\u0647 \u0627\u0645\u06a9\u0627\u0646 \u0627\u062a\u0635\u0627\u0644 \u067e\u0648\u0631\u062a \u06f8\u06f0 (HTTP) \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u062f\u0631 \u062f\u0633\u062a\u0648\u0631 \u062d\u0630\u0641 UFW \u0645\u0627\u0646\u0646\u062f \u0627\u06cc\u0646 \u0645\u0634\u062e\u0635 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw delete 2<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\n\r\nDeleting:\r\nallow 80\r\nProceed with operation (y|n)? y\r\nRule deleted<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u06a9\u0627\u0631 \u0627\u0632 \u0634\u0645\u0627 \u062a\u0623\u06cc\u06cc\u062f \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u062f \u0648 \u0633\u067e\u0633 \u0642\u0627\u0646\u0648\u0646 \u06f2 \u0631\u0627 \u06a9\u0647 \u0627\u0645\u06a9\u0627\u0646 \u0627\u062a\u0635\u0627\u0644 HTTP \u0631\u0627 \u0641\u0631\u0627\u0647\u0645 \u0645\u06cc\u200c\u06a9\u0646\u062f\u060c \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f. \u062a\u0648\u062c\u0647 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06af\u0631 IPv6 \u0631\u0627 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0642\u0627\u0646\u0648\u0646 IPv6 \u0645\u0631\u0628\u0648\u0637\u0647 \u0631\u0627 \u0646\u06cc\u0632 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f.<\/p>\n<h5 id=\"%d8%ad%d8%b0%d9%81-%db%8c%da%a9-%d9%82%d8%a7%d9%86%d9%88%d9%86-ufw-%d8%a8%d8%b1-%d8%a7%d8%b3%d8%a7%d8%b3-%d9%86%d8%a7%d9%85\">\u062d\u0630\u0641 \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 UFW \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0627\u0645<\/h5>\n<p>\u0628\u0647 \u062c\u0627\u06cc \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0627\u0632 \u0634\u0645\u0627\u0631\u0647\u200c\u0647\u0627\u06cc \u0642\u0627\u0646\u0648\u0646\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 \u0628\u0627 \u0646\u0627\u0645 \u0642\u0627\u0628\u0644 \u062e\u0648\u0627\u0646\u062f\u0646 \u062a\u0648\u0633\u0637 \u0627\u0646\u0633\u0627\u0646 \u0646\u06cc\u0632 \u0627\u0634\u0627\u0631\u0647 \u06a9\u0646\u06cc\u062f\u060c \u06a9\u0647 \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0648\u0639 \u0642\u0627\u0646\u0648\u0646 (\u0645\u0639\u0645\u0648\u0644\u0627\u064b allow \u06cc\u0627 deny) \u0648 \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633 \u06cc\u0627 \u0634\u0645\u0627\u0631\u0647 \u067e\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0647\u062f\u0641 \u0627\u06cc\u0646 \u0642\u0627\u0646\u0648\u0646 \u0628\u0648\u062f\u0647 \u0627\u0633\u062a\u060c \u06cc\u0627 \u0646\u0627\u0645 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u062f\u0631 \u0635\u0648\u0631\u062a\u06cc \u06a9\u0647 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f\u060c \u062a\u0639\u06cc\u06cc\u0646 \u0645\u06cc\u200c\u0634\u0648\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u06cc\u06a9 \u0642\u0627\u0646\u0648\u0646 allow \u0631\u0627 \u0628\u0631\u0627\u06cc \u06cc\u06a9 \u067e\u0631\u0648\u0641\u0627\u06cc\u0644 \u0628\u0631\u0646\u0627\u0645\u0647 \u0628\u0647 \u0646\u0627\u0645 Apache Full \u06a9\u0647 \u0642\u0628\u0644\u0627\u064b \u0641\u0639\u0627\u0644 \u0628\u0648\u062f\u0647 \u0627\u0633\u062a\u060c \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 \u0632\u06cc\u0631 \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code style=\"direction: ltr;\">sudo ufw delete allow \"Apache Full\"<\/code><\/pre>\n<\/div>\n<pre class=\"\"><\/pre>\n<div class=\"secondary-code-label\" title=\"Output\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nRule deleted\r\nRule deleted (v6)  \r\n<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u062f\u0633\u062a\u0648\u0631 delete \u0628\u0631\u0627\u06cc \u0642\u0648\u0627\u0646\u06cc\u0646\u06cc \u06a9\u0647 \u0628\u0627 \u0627\u0631\u062c\u0627\u0639 \u0628\u0647 \u06cc\u06a9 \u0633\u0631\u0648\u06cc\u0633 \u0627\u0632 \u0637\u0631\u06cc\u0642 \u0646\u0627\u0645 \u06cc\u0627 \u067e\u0648\u0631\u062a \u0622\u0646 \u0627\u06cc\u062c\u0627\u062f \u0634\u062f\u0647\u200c\u0627\u0646\u062f\u060c \u0628\u0647 \u0647\u0645\u06cc\u0646 \u0631\u0648\u0634 \u0639\u0645\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0631\u0627\u06cc \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0642\u0628\u0644\u0627\u064b \u0642\u0627\u0646\u0648\u0646\u06cc \u0628\u0631\u0627\u06cc \u0645\u062c\u0627\u0632 \u06a9\u0631\u062f\u0646 \u0627\u062a\u0635\u0627\u0644\u0627\u062a HTTP \u0628\u0627 <mark>sudo ufw allow http<\/mark> \u062a\u0646\u0638\u06cc\u0645 \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u0627\u06cc\u0646 \u0635\u0648\u0631\u062a \u0642\u0627\u0646\u0648\u0646 \u0645\u0630\u06a9\u0648\u0631 \u0631\u0627 \u062d\u0630\u0641 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw delete allow http<\/code><\/pre>\n<\/div>\n<div class=\"secondary-code-label\" title=\"Output\">\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nRule deleted\r\nRule deleted (v6)<\/code><\/pre>\n<\/div>\n<\/div>\n<p>\u0627\u0632 \u0622\u0646\u062c\u0627 \u06a9\u0647 \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0647\u0646\u06af\u0627\u0645 \u062a\u0639\u06cc\u06cc\u0646 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u067e\u0648\u0631\u062a\u200c\u0647\u0627 \u0642\u0627\u0628\u0644 \u062a\u0639\u0648\u06cc\u0636 \u0647\u0633\u062a\u0646\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u062c\u0627\u06cc allow http\u060c \u0628\u0647 \u0647\u0645\u0627\u0646 \u0642\u0627\u0646\u0648\u0646 allow 80 \u0646\u06cc\u0632 \u0627\u0634\u0627\u0631\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw delete allow http\r\n\r\n<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nRule deleted Rule deleted (v6)<\/code><\/pre>\n<\/div>\n<p>\u0627\u0632 \u0622\u0646\u062c\u0627 \u06a9\u0647 \u0646\u0627\u0645 \u0633\u0631\u0648\u06cc\u0633\u200c\u0647\u0627 \u0647\u0646\u06af\u0627\u0645 \u062a\u0639\u06cc\u06cc\u0646 \u0642\u0648\u0627\u0646\u06cc\u0646 \u0628\u0627 \u0634\u0645\u0627\u0631\u0647 \u067e\u0648\u0631\u062a\u200c\u0647\u0627 \u0642\u0627\u0628\u0644 \u062a\u0639\u0648\u06cc\u0636 \u0647\u0633\u062a\u0646\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0628\u0647 \u062c\u0627\u06cc allow http\u060c \u0628\u0647 \u0647\u0645\u0627\u0646 \u0642\u0627\u0646\u0648\u0646 allow 80 \u0646\u06cc\u0632 \u0627\u0634\u0627\u0631\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw delete allow 80<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nRule deleted\r\nRule deleted (v6)<\/code><\/pre>\n<\/div>\n<p>\u0647\u0646\u06af\u0627\u0645 \u062d\u0630\u0641 \u0642\u0648\u0627\u0646\u06cc\u0646 UFW \u0628\u0631 \u0627\u0633\u0627\u0633 \u0646\u0627\u0645\u060c \u062f\u0631 \u0635\u0648\u0631\u062a \u0648\u062c\u0648\u062f\u060c \u0647\u0631 \u062f\u0648 \u0642\u0627\u0646\u0648\u0646 IPv4 \u0648 IPv6 \u062d\u0630\u0641 \u0645\u06cc\u200c\u0634\u0648\u0646\u062f.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b8-%d8%a8%d8%b1%d8%b1%d8%b3%db%8c-%d9%88%d8%b6%d8%b9%db%8c%d8%aa-%d9%88-%d9%82%d9%88%d8%a7%d9%86%db%8c%d9%86-ufw\">\u0645\u0631\u062d\u0644\u0647 \u06f8 \u2014 \u0628\u0631\u0631\u0633\u06cc \u0648\u0636\u0639\u06cc\u062a \u0648 \u0642\u0648\u0627\u0646\u06cc\u0646 UFW<\/h4>\n<p>\u062f\u0631 \u0647\u0631 \u0632\u0645\u0627\u0646\u06cc\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0648\u0636\u0639\u06cc\u062a UFW \u0631\u0627 \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw status verbose<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 UFW \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0628\u0627\u0634\u062f\u060c \u06a9\u0647 \u0628\u0647 \u0637\u0648\u0631 \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0627\u0633\u062a\u060c \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u062e\u0648\u0627\u0647\u06cc\u062f \u062f\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nStatus: inactive<\/code><\/pre>\n<\/div>\n<p>\u0627\u06af\u0631 UFW \u0641\u0639\u0627\u0644 \u0628\u0627\u0634\u062f\u060c \u06a9\u0647 \u0627\u06af\u0631 \u0645\u0631\u062d\u0644\u0647 \u06f3 \u0631\u0627 \u062f\u0646\u0628\u0627\u0644 \u06a9\u0631\u062f\u0647 \u0628\u0627\u0634\u06cc\u062f\u060c \u0628\u0627\u06cc\u062f \u0641\u0639\u0627\u0644 \u0628\u0627\u0634\u062f\u060c \u062e\u0631\u0648\u062c\u06cc \u0645\u06cc\u200c\u06af\u0648\u06cc\u062f \u06a9\u0647 \u0641\u0639\u0627\u0644 \u0627\u0633\u062a \u0648 \u0647\u0631 \u0642\u0627\u0646\u0648\u0646\u06cc \u06a9\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u0631\u0627 \u0641\u0647\u0631\u0633\u062a \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0628\u0647 \u0639\u0646\u0648\u0627\u0646 \u0645\u062b\u0627\u0644\u060c \u0627\u06af\u0631 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0648\u0631\u06cc \u062a\u0646\u0638\u06cc\u0645 \u0634\u062f\u0647 \u0628\u0627\u0634\u062f \u06a9\u0647 \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH (\u067e\u0648\u0631\u062a \u06f2\u06f2) \u0631\u0627 \u0627\u0632 \u0647\u0631 \u062c\u0627\u06cc\u06cc \u0645\u062c\u0627\u0632 \u06a9\u0646\u062f\u060c \u062e\u0631\u0648\u062c\u06cc \u0645\u0645\u06a9\u0646 \u0627\u0633\u062a \u0686\u06cc\u0632\u06cc \u0634\u0628\u06cc\u0647 \u0628\u0647 \u0627\u06cc\u0646 \u0628\u0627\u0634\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>Output\r\nStatus: active\r\nLogging: on (low)\r\nDefault: deny (incoming), allow (outgoing), disabled (routed)\r\nNew profiles: skip\r\n\r\nTo                 Action             From\r\n--                 ------             ----\r\n22\/tcp             ALLOW IN           Anywhere<\/code><\/pre>\n<p>\u0627\u06af\u0631 \u0645\u06cc\u200c\u062e\u0648\u0627\u0647\u06cc\u062f \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f \u06a9\u0647 UFW \u0686\u06af\u0648\u0646\u0647 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647 \u0627\u0633\u062a\u060c \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 status \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f.<\/p>\n<h4 id=\"%d9%85%d8%b1%d8%ad%d9%84%d9%87-%db%b9-%d8%ba%db%8c%d8%b1%d9%81%d8%b9%d8%a7%d9%84-%da%a9%d8%b1%d8%af%d9%86-%db%8c%d8%a7-%d8%aa%d9%86%d8%b8%db%8c%d9%85-%d9%85%d8%ac%d8%af%d8%af-%d9%81%d8%a7\">\u0645\u0631\u062d\u0644\u0647 \u06f9 &#8211; \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u06cc\u0627 \u062a\u0646\u0638\u06cc\u0645 \u0645\u062c\u062f\u062f \u0641\u0627\u06cc\u0631\u0648\u0627\u0644<\/h4>\n<p>\u0627\u06af\u0631 \u062a\u0635\u0645\u06cc\u0645 \u062f\u0627\u0631\u06cc\u062f \u06a9\u0647 \u0627\u0632 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 UFW \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u0646\u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0622\u0646 \u0631\u0627 \u0628\u0627 \u0627\u06cc\u0646 \u062f\u0633\u062a\u0648\u0631 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u06a9\u0646\u06cc\u062f:<\/p>\n<\/div>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw disable<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" dir=\"ltr\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nFirewall stopped and disabled on system startup<\/code><\/pre>\n<\/div>\n<p>\u0647\u0631 \u0642\u0627\u0646\u0648\u0646\u06cc \u06a9\u0647 \u0628\u0627 UFW \u0627\u06cc\u062c\u0627\u062f \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f \u062f\u06cc\u06af\u0631 \u0641\u0639\u0627\u0644 \u0646\u062e\u0648\u0627\u0647\u062f \u0628\u0648\u062f. \u062f\u0631 \u0635\u0648\u0631\u062a \u0646\u06cc\u0627\u0632 \u0628\u0647 \u0641\u0639\u0627\u0644 \u06a9\u0631\u062f\u0646 \u0622\u0646 \u0628\u0639\u062f\u0627\u064b\u060c \u0647\u0645\u06cc\u0634\u0647 \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f <mark>sudo ufw enable<\/mark> \u0631\u0627 \u0627\u062c\u0631\u0627 \u06a9\u0646\u06cc\u062f.<\/p>\n<p>\u0627\u06af\u0631 \u0627\u0632 \u0642\u0628\u0644 \u0642\u0648\u0627\u0646\u06cc\u0646 UFW \u0631\u0627 \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u06a9\u0631\u062f\u0647\u200c\u0627\u06cc\u062f \u0627\u0645\u0627 \u062a\u0635\u0645\u06cc\u0645 \u062f\u0627\u0631\u06cc\u062f \u062f\u0648\u0628\u0627\u0631\u0647 \u0634\u0631\u0648\u0639 \u06a9\u0646\u06cc\u062f\u060c \u0645\u06cc\u200c\u062a\u0648\u0627\u0646\u06cc\u062f \u0627\u0632 \u062f\u0633\u062a\u0648\u0631 reset \u0627\u0633\u062a\u0641\u0627\u062f\u0647 \u06a9\u0646\u06cc\u062f:<\/p>\n<div class=\"hcb_wrap\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\" dir=\"ltr\"><code>sudo ufw reset<\/code><\/pre>\n<\/div>\n<div class=\"hcb_wrap\" dir=\"ltr\">\n<pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>Output\r\nResetting all rules to installed defaults. This may disrupt existing ssh\r\nconnections. Proceed with operation (y|n)? y\r\nBacking up 'user.rules' to '\/etc\/ufw\/user.rules.20210729_170353'\r\nBacking up 'before.rules' to '\/etc\/ufw\/before.rules.20210729_170353'\r\nBacking up 'after.rules' to '\/etc\/ufw\/after.rules.20210729_170353'\r\nBacking up 'user6.rules' to '\/etc\/ufw\/user6.rules.20210729_170353'\r\nBacking up 'before6.rules' to '\/etc\/ufw\/before6.rules.20210729_170353'\r\nBacking up 'after6.rules' to '\/etc\/ufw\/after6.rules.20210729_170353'<\/code><\/pre>\n<\/div>\n<p>\u0627\u06cc\u0646 \u06a9\u0627\u0631 UFW \u0631\u0627 \u063a\u06cc\u0631\u0641\u0639\u0627\u0644 \u0645\u06cc\u200c\u06a9\u0646\u062f \u0648 \u0647\u0631 \u0642\u0627\u0646\u0648\u0646\u06cc \u0631\u0627 \u06a9\u0647 \u0642\u0628\u0644\u0627\u064b \u062a\u0639\u0631\u06cc\u0641 \u0634\u062f\u0647 \u0628\u0648\u062f \u062d\u0630\u0641 \u0645\u06cc\u200c\u06a9\u0646\u062f. \u0627\u06cc\u0646 \u0628\u0627\u06cc\u062f \u0634\u0631\u0648\u0639 \u062a\u0627\u0632\u0647\u200c\u0627\u06cc \u0628\u0627 UFW \u0628\u0647 \u0634\u0645\u0627 \u0628\u062f\u0647\u062f. \u0628\u0647 \u062e\u0627\u0637\u0631 \u062f\u0627\u0634\u062a\u0647 \u0628\u0627\u0634\u06cc\u062f \u06a9\u0647 \u0627\u06af\u0631 \u062f\u0631 \u0647\u0631 \u0632\u0645\u0627\u0646\u06cc \u0633\u06cc\u0627\u0633\u062a\u200c\u0647\u0627\u06cc \u067e\u06cc\u0634\u200c\u0641\u0631\u0636 \u0631\u0627 \u062a\u063a\u06cc\u06cc\u0631 \u062f\u0647\u06cc\u062f\u060c \u0628\u0647 \u062a\u0646\u0638\u06cc\u0645\u0627\u062a \u0627\u0635\u0644\u06cc \u062e\u0648\u062f \u062a\u063a\u06cc\u06cc\u0631 \u0646\u062e\u0648\u0627\u0647\u0646\u062f \u06a9\u0631\u062f.<\/p>\n<hr \/>\n<h4 id=\"%d9%86%d8%aa%db%8c%d8%ac%d9%87%da%af%db%8c%d8%b1%db%8c\">\u0646\u062a\u06cc\u062c\u0647\u200c\u06af\u06cc\u0631\u06cc<\/h4>\n<p>\u0627\u06a9\u0646\u0648\u0646 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0634\u0645\u0627 \u0637\u0648\u0631\u06cc \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a \u06a9\u0647 (\u062d\u062f\u0627\u0642\u0644) \u0627\u062a\u0635\u0627\u0644\u0627\u062a SSH \u0631\u0627 \u0645\u062c\u0627\u0632 \u0628\u062f\u0627\u0646\u062f. \u062d\u062a\u0645\u0627\u064b \u0647\u0631\u06af\u0648\u0646\u0647 \u0627\u062a\u0635\u0627\u0644 \u0648\u0631\u0648\u062f\u06cc \u062f\u06cc\u06af\u0631\u06cc \u0631\u0627 \u06a9\u0647 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u0646\u06cc\u0627\u0632 \u062f\u0627\u0631\u062f\u060c \u0645\u062c\u0627\u0632 \u06a9\u0646\u06cc\u062f\u060c \u062f\u0631 \u062d\u0627\u0644\u06cc \u06a9\u0647 \u0647\u0631\u06af\u0648\u0646\u0647 \u0627\u062a\u0635\u0627\u0644 \u063a\u06cc\u0631\u0636\u0631\u0648\u0631\u06cc \u0631\u0627 \u0645\u062d\u062f\u0648\u062f \u06a9\u0646\u06cc\u062f \u062a\u0627 \u0633\u0631\u0648\u0631 \u0634\u0645\u0627 \u06a9\u0627\u0631\u0628\u0631\u062f\u06cc \u0648 \u0627\u06cc\u0645\u0646 \u0628\u0627\u0634\u062f.<\/p>\n<hr \/>\n<p>\u0628\u0631\u0627\u06cc \u06a9\u0633\u0628 \u0627\u0637\u0644\u0627\u0639\u0627\u062a \u0628\u06cc\u0634\u062a\u0631 \u062f\u0631 \u0645\u0648\u0631\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc\u200c\u0647\u0627\u06cc \u0631\u0627\u06cc\u062c UFW\u060c \u0622\u0645\u0648\u0632\u0634<\/p>\n<p><a href=\"https:\/\/www.itpiran.net\/blog\/security\/ufw-essentials-c\u2026r-linux-security\">\u0645\u0644\u0632\u0648\u0645\u0627\u062a UFW: \u0642\u0648\u0627\u0646\u06cc\u0646 \u0648 \u062f\u0633\u062a\u0648\u0631\u0627\u062a \u0631\u0627\u06cc\u062c \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0631\u0627\u06cc \u0627\u0645\u0646\u06cc\u062a \u0644\u06cc\u0646\u0648\u06a9\u0633<\/a><\/p>\n<p>\u0631\u0627 \u0628\u0631\u0631\u0633\u06cc \u06a9\u0646\u06cc\u062f.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"Introducci\u00f3n UFW, o Uncomplicated Firewall, es una interfaz gr\u00e1fica para iptables dise\u00f1ada para simplificar el proceso de configuraci\u00f3n del firewall.","protected":false},"author":1,"featured_media":16771,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_yoast_wpseo_focuskw":"\u0641\u0627\u06cc\u0631\u0648\u0627\u0644 UFW \u0627\u0628\u0648\u0646\u062a\u0648","_yoast_wpseo_title":"","_yoast_wpseo_metadesc":"UFW \u06cc\u0627 Uncomplicated Firewall\u060c \u0631\u0627\u0628\u0637\u06cc \u0628\u0631\u0627\u06cc iptables \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.","_yoast_wpseo_canonical":"","_yoast_wpseo_opengraph-description":"","_yoast_wpseo_opengraph-image":"","_yoast_wpseo_twitter-description":"","_yoast_wpseo_twitter-image":"","_yoast_wpseo_focuskeywords":"[]","_yoast_wpseo_primary_category":"193","footnotes":""},"categories":[193,324,204],"tags":[],"class_list":{"0":"post-16769","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-tutorials","8":"category-security","9":"category-servers"},"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.3 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 - \u0628\u0644\u0627\u06af ITPiran<\/title>\n<meta name=\"description\" content=\"UFW \u06cc\u0627 Uncomplicated Firewall\u060c \u0631\u0627\u0628\u0637\u06cc \u0628\u0631\u0627\u06cc iptables \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.itpiran.net\/blog\/es\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/\" \/>\n<meta property=\"og:locale\" content=\"es_ES\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 - \u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"og:description\" content=\"UFW \u06cc\u0627 Uncomplicated Firewall\u060c \u0631\u0627\u0628\u0637\u06cc \u0628\u0631\u0627\u06cc iptables \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.itpiran.net\/blog\/es\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/\" \/>\n<meta property=\"og:site_name\" content=\"\u0628\u0644\u0627\u06af ITPiran\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-04T09:32:09+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-08-17T09:23:01+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/cdn.itpiran.net\/2025\/08\/04114141\/Blog-9.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1080\" \/>\n\t<meta property=\"og:image:height\" content=\"610\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Escrito por\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Tiempo de lectura\" \/>\n\t<meta name=\"twitter:data2\" content=\"16 minutos\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/\"},\"author\":{\"name\":\"admin\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\"},\"headline\":\"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648\",\"datePublished\":\"2025-08-04T09:32:09+00:00\",\"dateModified\":\"2025-08-17T09:23:01+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/\"},\"wordCount\":210,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/08\\\/04114141\\\/Blog-9.jpg\",\"articleSection\":[\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"\u0627\u0645\u0646\u06cc\u062a\",\"\u0633\u0631\u0648\u0631\"],\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/\",\"name\":\"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 - \u0628\u0644\u0627\u06af ITPiran\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/08\\\/04114141\\\/Blog-9.jpg\",\"datePublished\":\"2025-08-04T09:32:09+00:00\",\"dateModified\":\"2025-08-17T09:23:01+00:00\",\"description\":\"UFW \u06cc\u0627 Uncomplicated Firewall\u060c \u0631\u0627\u0628\u0637\u06cc \u0628\u0631\u0627\u06cc iptables \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#breadcrumb\"},\"inLanguage\":\"es\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#primaryimage\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/08\\\/04114141\\\/Blog-9.jpg\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2025\\\/08\\\/04114141\\\/Blog-9.jpg\",\"width\":1080,\"height\":610},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/tutorials\\\/how-to-configure-a-firewall-with-ufw-on-ubuntu\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"\u0622\u0645\u0648\u0632\u0634\u06cc\",\"item\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/category\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"name\":\"\u0628\u0644\u0627\u06af ITPiran\",\"description\":\"\u0627\u062e\u0628\u0627\u0631 \u0648 \u0645\u0642\u0627\u0644\u0627\u062a \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"es\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#organization\",\"name\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\",\"alternateName\":\"ITPIran Blog\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"es\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"contentUrl\":\"https:\\\/\\\/cdn.itpiran.net\\\/2023\\\/12\\\/27150508\\\/cropped-ITPIRAN-BLOG-LOGO-2.png\",\"width\":512,\"height\":512,\"caption\":\"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646\"},\"image\":{\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/logo\\\/image\\\/\"}},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/#\\\/schema\\\/person\\\/04ed27b919baca468a2273f8e4318f81\",\"name\":\"admin\",\"url\":\"https:\\\/\\\/www.itpiran.net\\\/blog\\\/es\\\/author\\\/admin\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"C\u00f3mo configurar un firewall con UFW en Ubuntu - Blog de ITPiran","description":"UFW, o Uncomplicated Firewall, es una interfaz para iptables dise\u00f1ada para simplificar el proceso de configuraci\u00f3n del firewall.","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.itpiran.net\/blog\/es\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/","og_locale":"es_ES","og_type":"article","og_title":"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648 - \u0628\u0644\u0627\u06af ITPiran","og_description":"UFW \u06cc\u0627 Uncomplicated Firewall\u060c \u0631\u0627\u0628\u0637\u06cc \u0628\u0631\u0627\u06cc iptables \u0627\u0633\u062a \u06a9\u0647 \u0628\u0631\u0627\u06cc \u0633\u0627\u062f\u0647\u200c\u0633\u0627\u0632\u06cc \u0641\u0631\u0622\u06cc\u0646\u062f \u067e\u06cc\u06a9\u0631\u0628\u0646\u062f\u06cc \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0637\u0631\u0627\u062d\u06cc \u0634\u062f\u0647 \u0627\u0633\u062a.","og_url":"https:\/\/www.itpiran.net\/blog\/es\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/","og_site_name":"\u0628\u0644\u0627\u06af ITPiran","article_published_time":"2025-08-04T09:32:09+00:00","article_modified_time":"2025-08-17T09:23:01+00:00","og_image":[{"width":1080,"height":610,"url":"https:\/\/cdn.itpiran.net\/2025\/08\/04114141\/Blog-9.jpg","type":"image\/jpeg"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Escrito por":"admin","Tiempo de lectura":"16 minutos"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#article","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/"},"author":{"name":"admin","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81"},"headline":"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648","datePublished":"2025-08-04T09:32:09+00:00","dateModified":"2025-08-17T09:23:01+00:00","mainEntityOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/"},"wordCount":210,"commentCount":0,"publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2025\/08\/04114141\/Blog-9.jpg","articleSection":["\u0622\u0645\u0648\u0632\u0634\u06cc","\u0627\u0645\u0646\u06cc\u062a","\u0633\u0631\u0648\u0631"],"inLanguage":"es","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/","url":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/","name":"C\u00f3mo configurar un firewall con UFW en Ubuntu - Blog de ITPiran","isPartOf":{"@id":"https:\/\/www.itpiran.net\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#primaryimage"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#primaryimage"},"thumbnailUrl":"https:\/\/cdn.itpiran.net\/2025\/08\/04114141\/Blog-9.jpg","datePublished":"2025-08-04T09:32:09+00:00","dateModified":"2025-08-17T09:23:01+00:00","description":"UFW, o Uncomplicated Firewall, es una interfaz para iptables dise\u00f1ada para simplificar el proceso de configuraci\u00f3n del firewall.","breadcrumb":{"@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#breadcrumb"},"inLanguage":"es","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/"]}]},{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#primaryimage","url":"https:\/\/cdn.itpiran.net\/2025\/08\/04114141\/Blog-9.jpg","contentUrl":"https:\/\/cdn.itpiran.net\/2025\/08\/04114141\/Blog-9.jpg","width":1080,"height":610},{"@type":"BreadcrumbList","@id":"https:\/\/www.itpiran.net\/blog\/tutorials\/how-to-configure-a-firewall-with-ufw-on-ubuntu\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.itpiran.net\/blog\/"},{"@type":"ListItem","position":2,"name":"\u0622\u0645\u0648\u0632\u0634\u06cc","item":"https:\/\/www.itpiran.net\/blog\/category\/tutorials\/"},{"@type":"ListItem","position":3,"name":"\u0646\u062d\u0648\u0647 \u062a\u0646\u0638\u06cc\u0645 \u0641\u0627\u06cc\u0631\u0648\u0627\u0644 \u0628\u0627 UFW \u062f\u0631 \u0627\u0648\u0628\u0648\u0646\u062a\u0648"}]},{"@type":"WebSite","@id":"https:\/\/www.itpiran.net\/blog\/#website","url":"https:\/\/www.itpiran.net\/blog\/","name":"Blog de ITPiran","description":"Noticias y art\u00edculos sobre comercio sostenible en Ir\u00e1n","publisher":{"@id":"https:\/\/www.itpiran.net\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.itpiran.net\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"es"},{"@type":"Organization","@id":"https:\/\/www.itpiran.net\/blog\/#organization","name":"Blog sobre negocios iran\u00edes sostenibles","alternateName":"ITPIran Blog","url":"https:\/\/www.itpiran.net\/blog\/","logo":{"@type":"ImageObject","inLanguage":"es","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","contentUrl":"https:\/\/cdn.itpiran.net\/2023\/12\/27150508\/cropped-ITPIRAN-BLOG-LOGO-2.png","width":512,"height":512,"caption":"\u0628\u0644\u0627\u06af \u062a\u062c\u0627\u0631\u062a \u067e\u0627\u06cc\u062f\u0627\u0631 \u0627\u06cc\u0631\u0627\u0646\u06cc\u0627\u0646"},"image":{"@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/logo\/image\/"}},{"@type":"Person","@id":"https:\/\/www.itpiran.net\/blog\/#\/schema\/person\/04ed27b919baca468a2273f8e4318f81","name":"administraci\u00f3n","url":"https:\/\/www.itpiran.net\/blog\/es\/author\/admin\/"}]}},"_links":{"self":[{"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/posts\/16769","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/comments?post=16769"}],"version-history":[{"count":14,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/posts\/16769\/revisions"}],"predecessor-version":[{"id":16809,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/posts\/16769\/revisions\/16809"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/media\/16771"}],"wp:attachment":[{"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/media?parent=16769"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/categories?post=16769"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.itpiran.net\/blog\/es\/wp-json\/wp\/v2\/tags?post=16769"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}