{"id":20081,"date":"2026-05-15T15:39:51","date_gmt":"2026-05-15T12:39:51","guid":{"rendered":"https:\/\/unihost.com\/help\/?p=20081"},"modified":"2026-05-15T15:39:51","modified_gmt":"2026-05-15T12:39:51","slug":"check-open-ports-and-close-services","status":"publish","type":"post","link":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/","title":{"rendered":"\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 \u0437\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456"},"content":{"rendered":"<p data-start=\"0\" data-end=\"163\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u2014 \u0446\u0435 \u043c\u0435\u0440\u0435\u0436\u0435\u0432\u0456 \u201c\u0432\u0445\u043e\u0434\u0438\u201d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u0427\u0435\u0440\u0435\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u0446\u044e\u044e\u0442\u044c SSH, \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440, \u0431\u0430\u0437\u0438 \u0434\u0430\u043d\u0438\u0445, \u043f\u0430\u043d\u0435\u043b\u0456 \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f, \u043f\u043e\u0448\u0442\u043e\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438, Docker-\u0437\u0430\u0441\u0442\u043e\u0441\u0443\u043d\u043a\u0438 \u0442\u0430 \u0456\u043d\u0448\u0456 \u0441\u043b\u0443\u0436\u0431\u0438.<\/span><\/p>\n<p data-start=\"165\" data-end=\"412\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0427\u0438\u043c \u0431\u0456\u043b\u044c\u0448\u0435 \u043f\u043e\u0440\u0442\u0456\u0432 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u043e \u043d\u0430\u0437\u043e\u0432\u043d\u0456, \u0442\u0438\u043c \u0431\u0456\u043b\u044c\u0448\u043e\u044e \u0454 \u043f\u043e\u0442\u0435\u043d\u0446\u0456\u0439\u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u044f \u0430\u0442\u0430\u043a\u0438. \u0422\u043e\u043c\u0443 \u043f\u0456\u0441\u043b\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f VPS \u0430\u0431\u043e dedicated server \u0432\u0430\u0436\u043b\u0438\u0432\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u044f\u043a\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u0441\u043b\u0443\u0445\u0430\u044e\u0442\u044c \u043c\u0435\u0440\u0435\u0436\u0443, \u044f\u043a\u0456 \u0437 \u043d\u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456 \u0437 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0456 \u0449\u043e \u0441\u043f\u0440\u0430\u0432\u0434\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c.<\/span><\/p>\n<p data-start=\"414\" data-end=\"456\" data-is-last-node=\"\" data-is-only-node=\"\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0435\u043c\u043e 5 \u043e\u0441\u043d\u043e\u0432\u043d\u0438\u0445 \u0440\u0456\u0448\u0435\u043d\u044c:<\/span><\/p>\n<ol>\n<li><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u044f\u043a\u0456 \u043f\u043e\u0440\u0442\u0438 \u0432\u0438\u0434\u043d\u043e \u0437\u0437\u043e\u0432\u043d\u0456<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0412\u0438\u0437\u043d\u0430\u0447\u0438\u0442\u0438, \u044f\u043a\u0456 \u043f\u043e\u0440\u0442\u0438 \u0441\u043f\u0440\u0430\u0432\u0434\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0456<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0430\u0431\u043e \u043e\u0431\u043c\u0435\u0436\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438<\/span><\/li>\n<li><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u043f\u043e\u0440\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 firewall<\/span><\/li>\n<\/ol>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><b>1. \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456<\/b><\/span><\/h2>\n<p data-start=\"40\" data-end=\"116\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0421\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438, \u044f\u043a\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u0432\u0437\u0430\u0433\u0430\u043b\u0456 \u0441\u043b\u0443\u0445\u0430\u044e\u0442\u044c \u043c\u0435\u0440\u0435\u0436\u0443 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456.<\/span><\/p>\n<p data-start=\"118\" data-end=\"134\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041e\u0441\u043d\u043e\u0432\u043d\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u0430:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ss -tulpn<\/span><\/pre>\n<p data-start=\"164\" data-end=\"187\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0429\u043e \u043e\u0437\u043d\u0430\u0447\u0430\u044e\u0442\u044c \u043f\u0430\u0440\u0430\u043c\u0435\u0442\u0440\u0438:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span style=\"font-weight: 400;\">-t\u00a0 \u2014 TCP-\u043f\u043e\u0440\u0442\u0438<br \/><\/span><span style=\"font-weight: 400;\">-u\u00a0 \u2014 UDP-\u043f\u043e\u0440\u0442\u0438<br \/><\/span><span style=\"font-weight: 400;\">-l\u00a0 \u2014 \u0442\u0456\u043b\u044c\u043a\u0438 listening-\u0441\u043e\u043a\u0435\u0442\u0438<br \/><\/span><span style=\"font-weight: 400;\">-p\u00a0 \u2014 \u043f\u043e\u043a\u0430\u0437\u0430\u0442\u0438 \u043f\u0440\u043e\u0446\u0435\u0441<br \/><\/span><span style=\"font-weight: 400;\">-n\u00a0 \u2014 \u043d\u0435 \u043f\u0435\u0440\u0435\u0442\u0432\u043e\u0440\u044e\u0432\u0430\u0442\u0438 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 IP \u043d\u0430 \u0456\u043c\u0435\u043d\u0430<\/span><\/span><\/p>\n<p data-start=\"330\" data-end=\"345\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0440\u0438\u043a\u043b\u0430\u0434 \u0432\u0438\u0432\u043e\u0434\u0443:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">Netid State\u00a0 Local Address:Port\u00a0 Process<\/span><br \/><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">tcp \u00a0 LISTEN 0.0.0.0:22\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 users:((\"sshd\",pid=812,fd=3))<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">tcp \u00a0 LISTEN 0.0.0.0:80\u00a0 \u00a0 \u00a0 \u00a0 \u00a0 users:((\"nginx\",pid=1043,fd=6))<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">tcp \u00a0 LISTEN 0.0.0.0:443 \u00a0 \u00a0 \u00a0 \u00a0 users:((\"nginx\",pid=1043,fd=7))<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">tcp \u00a0 LISTEN 127.0.0.1:3306\u00a0 \u00a0 \u00a0 users:((\"mysqld\",pid=1201,fd=21))<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0412\u0430\u0436\u043b\u0438\u0432\u043e \u0440\u043e\u0437\u0443\u043c\u0456\u0442\u0438 \u0440\u0456\u0437\u043d\u0438\u0446\u044e:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">0.0.0.0:PORT\u00a0 \u00a0 \u00a0 \u2014 \u0441\u0435\u0440\u0432\u0438\u0441 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u043d\u0430 \u0432\u0441\u0435\u0445 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430\u0445<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">127.0.0.1:PORT\u00a0 \u00a0 \u2014 \u0441\u0435\u0440\u0432\u0438\u0441 \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">PUBLIC_IP:PORT\u00a0 \u00a0 \u2014 \u0441\u0435\u0440\u0432\u0438\u0441 \u0441\u043b\u0443\u0448\u0430\u0435\u0442 \u043d\u0430 \u043f\u0443\u0431\u043b\u0438\u0447\u043d\u043e\u043c IP<\/span><\/pre>\n<p data-start=\"866\" data-end=\"876\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span style=\"font-weight: 400;\">0.0.0.0:22 \u00a0 \u00a0 \u00a0 \u2014 SSH \u043f\u043e\u0442\u0435\u043d\u0446\u0438\u0430\u043b\u044c\u043d\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437\u0432\u043d\u0435<br \/><\/span><span style=\"font-weight: 400;\">0.0.0.0:80 \u00a0 \u00a0 \u00a0 \u2014 HTTP \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437\u0432\u043d\u0435<br \/><\/span><span style=\"font-weight: 400;\">0.0.0.0:443\u00a0 \u00a0 \u00a0 \u2014 HTTPS \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0438\u0437\u0432\u043d\u0435<br \/><\/span><span style=\"font-weight: 400;\">127.0.0.1:3306 \u00a0 \u2014 MySQL \u0434\u043e\u0441\u0442\u0443\u043f\u0435\u043d \u0442\u043e\u043b\u044c\u043a\u043e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e<\/span><\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0410\u043b\u044c\u0442\u0435\u0440\u043d\u0430\u0442\u0438\u0432\u043d\u043e \u043c\u043e\u0436\u043d\u0430 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0432\u0430\u0442\u0438 lsof:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo lsof -i -P -n | grep LISTEN<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0426\u044f \u043a\u043e\u043c\u0430\u043d\u0434\u0430 \u0437\u0440\u0443\u0447\u043d\u0430, \u044f\u043a\u0449\u043e \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0448\u0432\u0438\u0434\u043a\u043e \u043f\u043e\u0431\u0430\u0447\u0438\u0442\u0438, \u044f\u043a\u0438\u0439 \u043f\u0440\u043e\u0446\u0435\u0441 \u0437\u0430\u0439\u043c\u0430\u0454 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0438\u0439 \u043f\u043e\u0440\u0442.<\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><b>2. \u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435, \u044f\u043a\u0456 \u043f\u043e\u0440\u0442\u0438 \u0432\u0438\u0434\u043d\u043e \u0437\u0437\u043e\u0432\u043d\u0456<\/b><\/span><\/h2>\n<p data-start=\"1292\" data-end=\"1445\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u043e\u043c\u0430\u043d\u0434\u0438 ss \u0456 lsof \u043f\u043e\u043a\u0430\u0437\u0443\u044e\u0442\u044c, \u0449\u043e \u0441\u043b\u0443\u0445\u0430\u0454 \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0435\u0440. \u0410\u043b\u0435 \u0446\u0435 \u043d\u0435 \u0437\u0430\u0432\u0436\u0434\u0438 \u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e \u043f\u043e\u0440\u0442 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0437 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. Firewall \u043c\u043e\u0436\u0435 \u0431\u043b\u043e\u043a\u0443\u0432\u0430\u0442\u0438 \u0437\u043e\u0432\u043d\u0456\u0448\u043d\u0456\u0439 \u0434\u043e\u0441\u0442\u0443\u043f.<\/span><\/p>\n<p data-start=\"1447\" data-end=\"1529\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0422\u043e\u043c\u0443 \u0432\u0430\u0436\u043b\u0438\u0432\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u0437\u043e\u0432\u043d\u0456, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 \u0447\u0435\u0440\u0435\u0437 nmap \u0437 \u0456\u043d\u0448\u043e\u0433\u043e \u043a\u043e\u043c\u043f\u2019\u044e\u0442\u0435\u0440\u0430:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">nmap -Pn SERVER_IP<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0456 \u043f\u043e\u0440\u0442\u0438:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">nmap -Pn -p 22,80,443,3306,5432 SERVER_IP<\/span><\/pre>\n<p data-start=\"1647\" data-end=\"1674\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0434\u0456\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u0456\u0432:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">nmap -Pn -p 1-10000 SERVER_IP<\/span><\/pre>\n<p data-start=\"1719\" data-end=\"1734\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0420\u0456\u0437\u043d\u0438\u0446\u044f \u043f\u0440\u043e\u0441\u0442\u0430:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span style=\"font-weight: 400;\">ss\/lsof\u00a0 \u2014 \u043f\u043e\u043a\u0430\u0437\u0443\u0454, \u0449\u043e \u0441\u043b\u0443\u0445\u0430\u0454 \u0441\u0435\u0440\u0432\u0435\u0440<br \/><\/span><span style=\"font-weight: 400;\">nmap \u00a0 \u00a0 \u2014 \u043f\u043e\u043a\u0430\u0437\u0443\u0454, \u0449\u043e \u0432\u0438\u0434\u043d\u043e \u0437\u0437\u043e\u0432\u043d\u0456<\/span><\/span><\/p>\n<p data-start=\"1822\" data-end=\"1935\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e ss \u043f\u043e\u043a\u0430\u0437\u0443\u0454 \u043f\u043e\u0440\u0442, \u0430\u043b\u0435 nmap \u0437\u0437\u043e\u0432\u043d\u0456 \u0439\u043e\u0433\u043e \u043d\u0435 \u0431\u0430\u0447\u0438\u0442\u044c, \u0437\u043d\u0430\u0447\u0438\u0442\u044c \u043f\u043e\u0440\u0442 \u0441\u043b\u0443\u0445\u0430\u0454\u0442\u044c\u0441\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e \u0430\u0431\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0438\u0439 firewall.<\/span><\/p>\n<p data-start=\"1937\" data-end=\"2002\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e nmap \u043f\u043e\u043a\u0430\u0437\u0443\u0454 \u043f\u043e\u0440\u0442 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c, \u0437\u043d\u0430\u0447\u0438\u0442\u044c \u0432\u0456\u043d \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0437\u0437\u043e\u0432\u043d\u0456.<\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><b>3. \u0412\u0438\u0437\u043d\u0430\u0447\u0442\u0435, \u044f\u043a\u0456 \u043f\u043e\u0440\u0442\u0438 \u0441\u043f\u0440\u0430\u0432\u0434\u0456 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0456<\/b><\/span><\/h2>\n<p data-start=\"2045\" data-end=\"2163\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0435 \u043a\u043e\u0436\u0435\u043d \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u0439 \u043f\u043e\u0440\u0442 \u0454 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u044e. \u041f\u0440\u043e\u0431\u043b\u0435\u043c\u0430 \u0432\u0438\u043d\u0438\u043a\u0430\u0454 \u0442\u043e\u0434\u0456, \u043a\u043e\u043b\u0438 \u043d\u0430\u0437\u043e\u0432\u043d\u0456 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0456\u0441, \u044f\u043a\u0438\u0439 \u043d\u0435 \u043c\u0430\u0454 \u0431\u0443\u0442\u0438 \u043f\u0443\u0431\u043b\u0456\u0447\u043d\u0438\u043c.<\/span><\/p>\n<p data-start=\"2165\" data-end=\"2210\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u043b\u044f \u0437\u0432\u0438\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span style=\"font-weight: 400;\">22\/tcp\u00a0 \u00a0 \u2014 SSH, \u0431\u0430\u0436\u0430\u043d\u043e \u0442\u0456\u043b\u044c\u043a\u0438 \u0434\u043b\u044f \u0434\u043e\u0432\u0456\u0440\u0435\u043d\u0438\u0445 IP<br \/><\/span><span style=\"font-weight: 400;\">80\/tcp\u00a0 \u00a0 \u2014 HTTP<br \/><\/span><span style=\"font-weight: 400;\">443\/tcp \u00a0 \u2014 HTTPS<\/span><\/span><\/p>\n<p data-start=\"2305\" data-end=\"2343\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0406\u043d\u0448\u0456 \u043f\u043e\u0440\u0442\u0438 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0442\u0438 \u043e\u043a\u0440\u0435\u043c\u043e.<\/span><\/p>\n<p data-start=\"2345\" data-end=\"2373\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0422\u0438\u043f\u043e\u0432\u0456 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0430\u0446\u0456\u0457<\/span><\/p>\n<table>\n<tbody>\n<tr>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0421\u0435\u0440\u0432\u0456\u0441<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u043e\u0440\u0442<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0427\u0438 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0432\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u0442\u0438 \u043d\u0430\u0437\u043e\u0432\u043d\u0456<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">SSH<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">22\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0440\u0430\u0449\u0435 \u0442\u0456\u043b\u044c\u043a\u0438 \u0434\u043b\u044f \u0434\u043e\u0432\u0456\u0440\u0435\u043d\u0438\u0445 IP \u0430\u0431\u043e \u0447\u0435\u0440\u0435\u0437 VPN<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">HTTP<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">80\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0422\u0430\u043a, \u044f\u043a\u0449\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0431\u0441\u043b\u0443\u0433\u043e\u0432\u0443\u0454 \u0441\u0430\u0439\u0442\u0438<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">HTTPS<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">443\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0422\u0430\u043a, \u044f\u043a\u0449\u043e \u0441\u0435\u0440\u0432\u0435\u0440 \u043e\u0431\u0441\u043b\u0443\u0433\u043e\u0432\u0443\u0454 \u0441\u0430\u0439\u0442\u0438<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">MySQL\/MariaDB<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">3306\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043d\u0456<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">PostgreSQL<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">5432\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043d\u0456<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">Redis<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">6379\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0456<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">MongoDB<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">27017\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043d\u0456<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">Proxmox VE<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">8006\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0440\u0430\u0449\u0435 \u0442\u0456\u043b\u044c\u043a\u0438 \u0447\u0435\u0440\u0435\u0437 VPN \u0430\u0431\u043e allowlist<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">WHM\/cPanel<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">2086\/2087\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0440\u0430\u0449\u0435 \u043e\u0431\u043c\u0435\u0436\u0438\u0442\u0438 \u0437\u0430 IP<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">Plesk<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">8443\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0440\u0430\u0449\u0435 \u043e\u0431\u043c\u0435\u0436\u0438\u0442\u0438 \u0437\u0430 IP<\/span><\/p>\n<\/td>\n<\/tr>\n<tr>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">Portainer<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">9000\/9443\/tcp<\/span><\/p>\n<\/td>\n<td>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0440\u0430\u0449\u0435 \u043e\u0431\u043c\u0435\u0436\u0438\u0442\u0438 \u0437\u0430 IP \u0430\u0431\u043e VPN<\/span><\/p>\n<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0412\u0430\u0436\u043b\u0438\u0432\u043e<\/strong><\/span><br data-start=\"2993\" data-end=\"2996\" \/><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0411\u0430\u0437\u0438 \u0434\u0430\u043d\u0438\u0445, Redis, MongoDB \u0456 \u043f\u0430\u043d\u0435\u043b\u0456 \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f \u0437\u0430\u0437\u0432\u0438\u0447\u0430\u0439 \u043d\u0435 \u043c\u0430\u044e\u0442\u044c \u0431\u0443\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u0434\u043b\u044f \u0432\u0441\u044c\u043e\u0433\u043e \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443.<\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><b>4. \u0417\u0443\u043f\u0438\u043d\u0456\u0442\u044c \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u0430\u0431\u043e \u043e\u0431\u043c\u0435\u0436\u0442\u0435 \u0457\u0445 localhost<\/b><\/span><\/h2>\n<p data-start=\"3149\" data-end=\"3219\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e \u0441\u0435\u0440\u0432\u0456\u0441 \u043d\u0435 \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d, \u0439\u043e\u0433\u043e \u043a\u0440\u0430\u0449\u0435 \u0437\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0439 \u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0437 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0443.<\/span><\/p>\n<p data-start=\"3221\" data-end=\"3249\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0437\u0430\u043f\u0443\u0449\u0435\u043d\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">systemctl --type=service --state=running<\/span><\/pre>\n<p data-start=\"3305\" data-end=\"3334\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u043a\u043e\u043d\u043a\u0440\u0435\u0442\u043d\u0438\u0439 \u0441\u0435\u0440\u0432\u0456\u0441:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">systemctl status SERVICE_NAME<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0441\u0435\u0440\u0432\u0456\u0441:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo systemctl stop SERVICE_NAME<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0412\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo systemctl disable SERVICE_NAME<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0443\u043f\u0438\u043d\u0438\u0442\u0438 \u0439 \u0432\u0438\u043c\u043a\u043d\u0443\u0442\u0438 \u043e\u0434\u0440\u0430\u0437\u0443:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo systemctl disable --now SERVICE_NAME<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u044f\u043a\u0449\u043e Apache \u043d\u0435 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo systemctl disable --now apache2<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0456\u0441\u043b\u044f \u0446\u044c\u043e\u0433\u043e \u0437\u043d\u043e\u0432\u0443 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043f\u043e\u0440\u0442\u0438:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ss -tulpn<\/span><\/pre>\n<p data-start=\"3757\" data-end=\"3837\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e \u0441\u0435\u0440\u0432\u0456\u0441 \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d, \u0430\u043b\u0435 \u0442\u0456\u043b\u044c\u043a\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u0439\u043e\u0433\u043e \u043a\u0440\u0430\u0449\u0435 \u043f\u0440\u0438\u0432\u2019\u044f\u0437\u0430\u0442\u0438 \u0434\u043e <code data-start=\"3825\" data-end=\"3836\">127.0.0.1<\/code>.<\/span><\/p>\n<p data-start=\"3839\" data-end=\"3868\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434, \u0434\u043b\u044f MariaDB\/MySQL:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">bind-address = 127.0.0.1<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u043b\u044f PostgreSQL:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">listen_addresses = 'localhost'<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u043b\u044f Redis:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">bind 127.0.0.1 ::1<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">protected-mode yes<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0456\u0441\u043b\u044f \u0437\u043c\u0456\u043d\u0438 \u043a\u043e\u043d\u0444\u0456\u0433\u0443\u0440\u0430\u0446\u0456\u0457 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0456\u0442\u044c \u0441\u0435\u0440\u0432\u0456\u0441 \u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u043f\u043e\u0440\u0442:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo systemctl restart SERVICE_NAME<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ss -tulpn | grep PORT<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041e\u0447\u0456\u043a\u0443\u0432\u0430\u043d\u0438\u0439 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0434\u043b\u044f \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0433\u043e \u0441\u0435\u0440\u0432\u0456\u0441\u0443:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">127.0.0.1:PORT<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0425\u043e\u0440\u043e\u0448\u0430 \u043f\u0440\u0430\u043a\u0442\u0438\u043a\u0430<\/strong><\/span><br data-start=\"4259\" data-end=\"4262\" \/><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u0438\u0445 \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f \u0442\u0456\u043b\u044c\u043a\u0438 \u0441\u0430\u0439\u0442\u043e\u043c \u0430\u0431\u043e \u0437\u0430\u0441\u0442\u043e\u0441\u0443\u043d\u043a\u043e\u043c \u043d\u0430 \u0446\u044c\u043e\u043c\u0443 \u0436 \u0441\u0435\u0440\u0432\u0435\u0440\u0456, \u043d\u0435 \u0432\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u0457\u0457 \u043d\u0430 \u043f\u0443\u0431\u043b\u0456\u0447\u043d\u0443 IP-\u0430\u0434\u0440\u0435\u0441\u0443.<\/span><\/p>\n<h2><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><b>5. \u0417\u0430\u043a\u0440\u0438\u0439\u0442\u0435 \u0437\u0430\u0439\u0432\u0456 \u043f\u043e\u0440\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 firewall \u0456 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 Docker<\/b><\/span><\/h2>\n<p data-start=\"4446\" data-end=\"4583\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0430\u0432\u0456\u0442\u044c \u044f\u043a\u0449\u043e \u0441\u0435\u0440\u0432\u0456\u0441 \u043c\u0430\u0454 \u043f\u0440\u0430\u0446\u044e\u0432\u0430\u0442\u0438, \u0446\u0435 \u043d\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e \u0432\u0456\u043d \u043c\u0430\u0454 \u0431\u0443\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0443\u0441\u044c\u043e\u043c\u0443 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u0417\u0430\u0439\u0432\u0456 \u043f\u043e\u0440\u0442\u0438 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0438 \u0447\u0435\u0440\u0435\u0437 firewall.<\/span><\/p>\n<p data-start=\"4585\" data-end=\"4638\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0454\u0442\u044c\u0441\u044f UFW, \u0441\u043f\u043e\u0447\u0430\u0442\u043a\u0443 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 \u0441\u0442\u0430\u0442\u0443\u0441:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw status verbose<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u043e\u0437\u0432\u043e\u043b\u044c\u0442\u0435 \u0442\u0456\u043b\u044c\u043a\u0438 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0456 \u043f\u043e\u0440\u0442\u0438:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw allow 22\/tcp<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw allow 80\/tcp<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw allow 443\/tcp<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e SSH \u043c\u0430\u0454 \u0431\u0443\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0442\u0456\u043b\u044c\u043a\u0438 \u0437 \u0432\u0430\u0448\u043e\u0457 IP-\u0430\u0434\u0440\u0435\u0441\u0438:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw allow from YOUR_TRUSTED_IP to any port 22 proto tcp<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw deny 22\/tcp<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0417\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0438\u0439 \u043f\u043e\u0440\u0442, \u043d\u0430\u043f\u0440\u0438\u043a\u043b\u0430\u0434 MySQL:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw deny 3306\/tcp<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423\u0432\u0456\u043c\u043a\u043d\u0443\u0442\u0438 firewall:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw enable<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u043f\u0440\u0430\u0432\u0438\u043b\u0430:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">sudo ufw status numbered<\/span><\/pre>\n<p data-start=\"5125\" data-end=\"5266\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u041f\u043e\u043f\u0435\u0440\u0435\u0434\u0436\u0435\u043d\u043d\u044f<\/strong><\/span><br data-start=\"5137\" data-end=\"5140\" \/><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0434 \u0443\u0432\u0456\u043c\u043a\u043d\u0435\u043d\u043d\u044f\u043c firewall \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u0439\u0442\u0435\u0441\u044f, \u0449\u043e SSH-\u043f\u043e\u0440\u0442 \u0434\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u0430\u0448\u043e\u0457 IP-\u0430\u0434\u0440\u0435\u0441\u0438. \u0406\u043d\u0430\u043a\u0448\u0435 \u043c\u043e\u0436\u043d\u0430 \u0432\u0442\u0440\u0430\u0442\u0438\u0442\u0438 \u0434\u043e\u0441\u0442\u0443\u043f \u0434\u043e \u0441\u0435\u0440\u0432\u0435\u0440\u0430.<\/span><\/p>\n<p data-start=\"5268\" data-end=\"5315\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041e\u043a\u0440\u0435\u043c\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0442\u0435 Docker, \u044f\u043a\u0449\u043e \u0432\u0456\u043d \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u0438\u0439:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">docker ps<\/span><\/pre>\n<p data-start=\"5340\" data-end=\"5360\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041d\u0435\u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0438\u0439 \u043f\u0440\u0438\u043a\u043b\u0430\u0434:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">0.0.0.0:5432-&gt;5432\/tcp<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">0.0.0.0:6379-&gt;6379\/tcp<\/span><\/pre>\n<p data-start=\"5421\" data-end=\"5478\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0426\u0435 \u043e\u0437\u043d\u0430\u0447\u0430\u0454, \u0449\u043e PostgreSQL \u0430\u0431\u043e Redis \u043e\u043f\u0443\u0431\u043b\u0456\u043a\u043e\u0432\u0430\u043d\u0456 \u043d\u0430\u0437\u043e\u0432\u043d\u0456.<\/span><\/p>\n<p data-start=\"5480\" data-end=\"5562\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u0438\u0445 \u043f\u043e\u0442\u0440\u0456\u0431\u043d\u0430 \u0442\u0456\u043b\u044c\u043a\u0438 \u0456\u043d\u0448\u0438\u043c \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c, \u043d\u0435 \u043f\u0443\u0431\u043b\u0456\u043a\u0443\u0439\u0442\u0435 \u0457\u0457 \u0447\u0435\u0440\u0435\u0437 <code data-start=\"5554\" data-end=\"5561\">ports<\/code>.<\/span><\/p>\n<p data-start=\"5564\" data-end=\"5571\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u043e\u0433\u0430\u043d\u043e:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">ports:<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u00a0\u00a0- \"5432:5432\"<\/span><\/pre>\n<p data-start=\"5609\" data-end=\"5615\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041a\u0440\u0430\u0449\u0435:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">services:<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0postgres:<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0image: postgres:16<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0networks:<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\"> \u00a0\u00a0\u00a0\u00a0\u00a0- internal<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">networks:<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u00a0\u00a0internal:<\/span><\/pre>\n<p data-start=\"5729\" data-end=\"5868\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0412\u0430\u0436\u043b\u0438\u0432\u043e<\/strong><\/span><br data-start=\"5736\" data-end=\"5739\" \/><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">Docker \u043c\u043e\u0436\u0435 \u043f\u0443\u0431\u043b\u0456\u043a\u0443\u0432\u0430\u0442\u0438 \u043f\u043e\u0440\u0442\u0438 \u043d\u0430 \u0445\u043e\u0441\u0442\u0456. \u041f\u0456\u0441\u043b\u044f \u0437\u0430\u043f\u0443\u0441\u043a\u0443 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0456\u0432 \u0437\u0430\u0432\u0436\u0434\u0438 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0439\u0442\u0435 docker ps, ss -tulpn \u0456 \u0437\u043e\u0432\u043d\u0456\u0448\u043d\u0456\u0439 nmap.<\/span><\/p>\n<p data-start=\"5870\" data-end=\"5883\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0427\u0430\u0441\u0442\u0456 \u043f\u043e\u043c\u0438\u043b\u043a\u0438<\/strong><\/span><\/p>\n<p data-start=\"5885\" data-end=\"5904\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0430 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u0438\u0445<\/strong><\/span><\/p>\n<p data-start=\"5906\" data-end=\"6088\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u043e\u0440\u0442 3306, 5432, 6379 \u0430\u0431\u043e 27017 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u0439 \u043d\u0430 0.0.0.0 \u0456 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0438\u0439 \u0437 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443. \u0426\u0435 \u043d\u0435\u0431\u0435\u0437\u043f\u0435\u0447\u043d\u043e, \u043e\u0441\u043e\u0431\u043b\u0438\u0432\u043e \u044f\u043a\u0449\u043e \u043f\u0430\u0440\u043e\u043b\u044c \u0441\u043b\u0430\u0431\u043a\u0438\u0439 \u0430\u0431\u043e \u0441\u0435\u0440\u0432\u0456\u0441 \u043d\u0435 \u043d\u0430\u043b\u0430\u0448\u0442\u043e\u0432\u0430\u043d\u0438\u0439 \u0456\u0437 \u0434\u043e\u0434\u0430\u0442\u043a\u043e\u0432\u0438\u043c \u0437\u0430\u0445\u0438\u0441\u0442\u043e\u043c.<\/span><\/p>\n<p data-start=\"6090\" data-end=\"6119\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0417\u0430\u043a\u0440\u0438\u043b\u0438 SSH \u0456 \u0432\u0442\u0440\u0430\u0442\u0438\u043b\u0438 \u0434\u043e\u0441\u0442\u0443\u043f<\/strong><\/span><\/p>\n<p data-start=\"6121\" data-end=\"6298\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0435\u0440\u0435\u0434 \u0437\u043c\u0456\u043d\u043e\u044e firewall-\u043f\u0440\u0430\u0432\u0438\u043b \u0437\u0430\u0432\u0436\u0434\u0438 \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u044f\u0439\u0442\u0435, \u0449\u043e SSH \u0434\u043e\u0437\u0432\u043e\u043b\u0435\u043d\u0438\u0439 \u0434\u043b\u044f \u0432\u0430\u0448\u043e\u0457 IP-\u0430\u0434\u0440\u0435\u0441\u0438. \u041d\u0435 \u0437\u0430\u043a\u0440\u0438\u0432\u0430\u0439\u0442\u0435 \u043f\u043e\u0442\u043e\u0447\u043d\u0443 SSH-\u0441\u0435\u0441\u0456\u044e, \u0434\u043e\u043a\u0438 \u043d\u0435 \u0432\u0456\u0434\u043a\u0440\u0438\u043b\u0438 \u043d\u043e\u0432\u0443 \u0439 \u043d\u0435 \u043f\u0435\u0440\u0435\u043a\u043e\u043d\u0430\u043b\u0438\u0441\u044f, \u0449\u043e \u0432\u0445\u0456\u0434 \u043f\u0440\u0430\u0446\u044e\u0454.<\/span><\/p>\n<p data-start=\"6300\" data-end=\"6343\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u0417\u0443\u043f\u0438\u043d\u0438\u043b\u0438 \u0441\u0435\u0440\u0432\u0456\u0441, \u0430\u043b\u0435 \u043d\u0435 \u0432\u0438\u043c\u043a\u043d\u0443\u043b\u0438 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a<\/strong><\/span><\/p>\n<p data-start=\"6345\" data-end=\"6436\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u041f\u0456\u0441\u043b\u044f \u043f\u0435\u0440\u0435\u0437\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u043d\u044f \u0441\u0435\u0440\u0432\u0435\u0440 \u0437\u043d\u043e\u0432\u0443 \u0432\u0456\u0434\u043a\u0440\u0438\u0432\u0430\u0454 \u043f\u043e\u0440\u0442, \u0442\u043e\u043c\u0443 \u0449\u043e \u0441\u0435\u0440\u0432\u0456\u0441 \u0437\u0430\u043b\u0438\u0448\u0438\u0432\u0441\u044f \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a\u0443.<\/span><\/p>\n<p data-start=\"6438\" data-end=\"6465\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>Docker \u0432\u0456\u0434\u043a\u0440\u0438\u0432 \u043f\u043e\u0440\u0442 \u043d\u0430\u0437\u043e\u0432\u043d\u0456<\/strong><\/span><\/p>\n<p data-start=\"6467\" data-end=\"6498\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423 docker-compose.yml \u0432\u043a\u0430\u0437\u0430\u043b\u0438:<\/span><\/p>\n<pre><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">ports:<\/span><br \/><span style=\"font-weight: 400; font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u00a0\u00a0- \"5432:5432\"<\/span><\/pre>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423 \u0440\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u0456 \u0431\u0430\u0437\u0430 \u0434\u0430\u043d\u0438\u0445 \u0441\u0442\u0430\u043b\u0430 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u043e\u044e \u0437 \u043f\u0443\u0431\u043b\u0456\u0447\u043d\u043e\u0457 IP-\u0430\u0434\u0440\u0435\u0441\u0438. \u042f\u043a\u0449\u043e \u0434\u043e\u0441\u0442\u0443\u043f \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0442\u0456\u043b\u044c\u043a\u0438 \u043c\u0456\u0436 \u043a\u043e\u043d\u0442\u0435\u0439\u043d\u0435\u0440\u0430\u043c\u0438, \u0432\u0438\u043a\u043e\u0440\u0438\u0441\u0442\u043e\u0432\u0443\u0439\u0442\u0435 \u0432\u043d\u0443\u0442\u0440\u0456\u0448\u043d\u044e Docker-\u043c\u0435\u0440\u0435\u0436\u0443 \u0431\u0435\u0437 \u043f\u0443\u0431\u043b\u0456\u043a\u0430\u0446\u0456\u0457 \u043f\u043e\u0440\u0442\u0443.<\/span><\/p>\n<h3><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0421\u0435\u0440\u0432\u0456\u0441 \u0441\u043b\u0443\u0445\u0430\u0454 0.0.0.0 \u0437\u0430\u043c\u0456\u0441\u0442\u044c 127.0.0.1<\/span><\/h3>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u042f\u043a\u0449\u043e \u0441\u0435\u0440\u0432\u0456\u0441 \u043f\u043e\u0442\u0440\u0456\u0431\u0435\u043d \u0442\u0456\u043b\u044c\u043a\u0438 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e, \u043a\u0440\u0430\u0449\u0435 \u043f\u0440\u0438\u0432\u2019\u044f\u0437\u0430\u0442\u0438 \u0439\u043e\u0433\u043e \u0434\u043e localhost.<\/span><\/p>\n<p data-start=\"6827\" data-end=\"6835\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><strong>\u041f\u0456\u0434\u0441\u0443\u043c\u043e\u043a<\/strong><\/span><\/p>\n<p data-start=\"6837\" data-end=\"6889\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423 \u0446\u0456\u0439 \u0441\u0442\u0430\u0442\u0442\u0456 \u043c\u0438 \u0440\u043e\u0437\u0433\u043b\u044f\u043d\u0443\u043b\u0438 \u0442\u0456\u043b\u044c\u043a\u0438 5 \u043e\u0441\u043d\u043e\u0432\u043d\u0438\u0445 \u0440\u0456\u0448\u0435\u043d\u044c.<\/span><\/p>\n<p data-start=\"6891\" data-end=\"6958\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0414\u043b\u044f \u0437\u0432\u0438\u0447\u0430\u0439\u043d\u043e\u0433\u043e \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440\u0430 \u043d\u0430\u0439\u0447\u0430\u0441\u0442\u0456\u0448\u0435 \u0434\u043e\u0441\u0442\u0430\u0442\u043d\u044c\u043e \u0437\u0430\u043b\u0438\u0448\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0438\u043c\u0438:<\/span><\/p>\n<p><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\"><span style=\"font-weight: 400;\">22\/tcp \u00a0 \u2014 SSH, \u0431\u0430\u0436\u0430\u043d\u043e \u0442\u0456\u043b\u044c\u043a\u0438 \u0434\u043b\u044f \u0434\u043e\u0432\u0456\u0440\u0435\u043d\u0438\u0445 IP<br \/><\/span><span style=\"font-weight: 400;\">80\/tcp \u00a0 \u2014 HTTP<br \/><\/span><span style=\"font-weight: 400;\">443\/tcp\u00a0 \u2014 HTTPS<\/span><\/span><\/p>\n<div class=\"qMYqUG_convSearchResultHighlightRoot\">\n<div class=\"\" data-turn-id-container=\"request-69f9fa41-a390-8387-be23-587f0ccd55c4-18\" data-is-intersecting=\"true\">\n<div class=\"relative w-full overflow-visible\">\n<section class=\"text-token-text-primary w-full focus:outline-none has-data-writing-block:pointer-events-none [&amp;:has([data-writing-block])&gt;*]:pointer-events-auto R6Vx5W_threadScrollVars scroll-mb-[calc(var(--scroll-root-safe-area-inset-bottom,0px)+var(--thread-response-height))] scroll-mt-[calc(var(--header-height)+min(200px,max(70px,20svh)))]\" dir=\"auto\" data-turn-id=\"request-69f9fa41-a390-8387-be23-587f0ccd55c4-18\" data-turn-id-container=\"request-69f9fa41-a390-8387-be23-587f0ccd55c4-18\" data-testid=\"conversation-turn-144\" data-scroll-anchor=\"false\" data-turn=\"assistant\">\n<div class=\"text-base my-auto mx-auto pb-10 [--thread-content-margin:var(--thread-content-margin-xs,calc(var(--spacing)*4))] @w-sm\/main:[--thread-content-margin:var(--thread-content-margin-sm,calc(var(--spacing)*6))] @w-lg\/main:[--thread-content-margin:var(--thread-content-margin-lg,calc(var(--spacing)*16))] px-(--thread-content-margin)\">\n<div class=\"[--thread-content-max-width:40rem] @w-lg\/main:[--thread-content-max-width:48rem] mx-auto max-w-(--thread-content-max-width) flex-1 group\/turn-messages focus-visible:outline-hidden relative flex w-full min-w-0 flex-col agent-turn\">\n<div class=\"flex max-w-full flex-col gap-4 grow\">\n<div class=\"min-h-8 text-message relative flex w-full flex-col items-end gap-2 text-start break-words whitespace-normal outline-none keyboard-focused:focus-ring [.text-message+&amp;]:mt-1\" dir=\"auto\" tabindex=\"0\" data-message-author-role=\"assistant\" data-message-id=\"1be43b7e-4fac-4851-83ed-2d299826df51\" data-turn-start-message=\"true\" data-message-model-slug=\"gpt-5-5-thinking\">\n<div class=\"flex w-full flex-col gap-1 empty:hidden\">\n<div class=\"markdown prose dark:prose-invert wrap-break-word w-full dark markdown-new-styling\">\n<p data-start=\"7053\" data-end=\"7252\" data-is-last-node=\"\" data-is-only-node=\"\"><span style=\"font-family: Ubuntu, sans-serif; font-size: 12pt;\">\u0423\u0441\u0456 \u0456\u043d\u0448\u0456 \u043f\u043e\u0440\u0442\u0438 \u043c\u0430\u044e\u0442\u044c \u0431\u0443\u0442\u0438 \u0430\u0431\u043e \u0437\u0430\u043a\u0440\u0438\u0442\u0456, \u0430\u0431\u043e \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456 \u0442\u0456\u043b\u044c\u043a\u0438 \u0437 \u0434\u043e\u0432\u0456\u0440\u0435\u043d\u043e\u0457 \u043c\u0435\u0440\u0435\u0436\u0456, VPN \u0447\u0438 \u0432\u043d\u0443\u0442\u0440\u0456\u0448\u043d\u044c\u043e\u0457 Docker-\u043c\u0435\u0440\u0435\u0436\u0456. \u0422\u0430\u043a\u0438\u0439 \u043f\u0456\u0434\u0445\u0456\u0434 \u0437\u043d\u0438\u0436\u0443\u0454 \u0440\u0438\u0437\u0438\u043a \u0430\u0442\u0430\u043a \u0456 \u0440\u043e\u0431\u0438\u0442\u044c \u0441\u0435\u0440\u0432\u0435\u0440 \u0431\u0435\u0437\u043f\u0435\u0447\u043d\u0456\u0448\u0438\u043c \u0434\u043b\u044f production-\u043d\u0430\u0432\u0430\u043d\u0442\u0430\u0436\u0435\u043d\u044c.<\/span><\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/div>\n<\/section>\n<\/div>\n<\/div>\n<\/div>\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u0412\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u2014 \u0446\u0435 \u043c\u0435\u0440\u0435\u0436\u0435\u0432\u0456 \u201c\u0432\u0445\u043e\u0434\u0438\u201d \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440. \u0427\u0435\u0440\u0435\u0437 \u043d\u0438\u0445 \u043f\u0440\u0430\u0446\u044e\u044e\u0442\u044c SSH, \u0432\u0435\u0431\u0441\u0435\u0440\u0432\u0435\u0440, \u0431\u0430\u0437\u0438 \u0434\u0430\u043d\u0438\u0445, \u043f\u0430\u043d\u0435\u043b\u0456 \u043a\u0435\u0440\u0443\u0432\u0430\u043d\u043d\u044f, \u043f\u043e\u0448\u0442\u043e\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438, Docker-\u0437\u0430\u0441\u0442\u043e\u0441\u0443\u043d\u043a\u0438 \u0442\u0430 \u0456\u043d\u0448\u0456 \u0441\u043b\u0443\u0436\u0431\u0438. \u0427\u0438\u043c \u0431\u0456\u043b\u044c\u0448\u0435 \u043f\u043e\u0440\u0442\u0456\u0432 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u043e \u043d\u0430\u0437\u043e\u0432\u043d\u0456, \u0442\u0438\u043c \u0431\u0456\u043b\u044c\u0448\u043e\u044e \u0454 \u043f\u043e\u0442\u0435\u043d\u0446\u0456\u0439\u043d\u0430 \u043f\u043e\u0432\u0435\u0440\u0445\u043d\u044f \u0430\u0442\u0430\u043a\u0438. \u0422\u043e\u043c\u0443 \u043f\u0456\u0441\u043b\u044f \u0432\u0441\u0442\u0430\u043d\u043e\u0432\u043b\u0435\u043d\u043d\u044f VPS \u0430\u0431\u043e dedicated server \u0432\u0430\u0436\u043b\u0438\u0432\u043e \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438, \u044f\u043a\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u0441\u043b\u0443\u0445\u0430\u044e\u0442\u044c \u043c\u0435\u0440\u0435\u0436\u0443, \u044f\u043a\u0456 \u0437 \u043d\u0438\u0445 \u0434\u043e\u0441\u0442\u0443\u043f\u043d\u0456 \u0437 \u0456\u043d\u0442\u0435\u0440\u043d\u0435\u0442\u0443 \u0456 \u0449\u043e [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[843],"tags":[1097],"class_list":["post-20081","post","type-post","status-publish","format-standard","hentry","category-general","tag-ports"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>How to Check Open Ports on a Server<\/title>\n<meta name=\"description\" content=\"Learn how to check open ports on a Linux server, identify unnecessary services, close ports through the firewall, and verify Docker-published ports.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\" \/>\n<meta property=\"og:locale\" content=\"uk_UA\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Check Open Ports on a Server\" \/>\n<meta property=\"og:description\" content=\"Learn how to check open ports on a Linux server, identify unnecessary services, close ports through the firewall, and verify Docker-published ports.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\" \/>\n<meta property=\"og:site_name\" content=\"Unihost.FAQ\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/unihost\/\" \/>\n<meta property=\"article:published_time\" content=\"2026-05-15T12:39:51+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png\" \/>\n\t<meta property=\"og:image:width\" content=\"250\" \/>\n\t<meta property=\"og:image:height\" content=\"141\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Unihost Support\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@unihost\" \/>\n<meta name=\"twitter:site\" content=\"@unihost\" \/>\n<meta name=\"twitter:label1\" content=\"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e\" \/>\n\t<meta name=\"twitter:data1\" content=\"Unihost Support\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f\" \/>\n\t<meta name=\"twitter:data2\" content=\"4 \u0445\u0432\u0438\u043b\u0438\u043d\u0438\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\"},\"author\":{\"name\":\"Unihost Support\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\"},\"headline\":\"\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 \u0437\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456\",\"datePublished\":\"2026-05-15T12:39:51+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\"},\"wordCount\":787,\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/#organization\"},\"keywords\":[\"Ports\"],\"articleSection\":[\"01. \u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0435\"],\"inLanguage\":\"uk\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\",\"url\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\",\"name\":\"How to Check Open Ports on a Server\",\"isPartOf\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/#website\"},\"datePublished\":\"2026-05-15T12:39:51+00:00\",\"description\":\"Learn how to check open ports on a Linux server, identify unnecessary services, close ports through the firewall, and verify Docker-published ports.\",\"breadcrumb\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/#breadcrumb\"},\"inLanguage\":\"uk\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Unihost\",\"item\":\"https:\/\/unihost.com\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Help\",\"item\":\"https:\/\/unihost.com\/help\/uk\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 \u0437\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/#website\",\"url\":\"https:\/\/unihost.com\/help\/uk\/\",\"name\":\"Unihost.FAQ\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/unihost.com\/help\/uk\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"uk\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/#organization\",\"name\":\"Unihost\",\"alternateName\":\"Unihost\",\"url\":\"https:\/\/unihost.com\/help\/uk\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"contentUrl\":\"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png\",\"width\":300,\"height\":300,\"caption\":\"Unihost\"},\"image\":{\"@id\":\"https:\/\/unihost.com\/help\/uk\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/unihost\/\",\"https:\/\/x.com\/unihost\",\"https:\/\/www.instagram.com\/unihost\/?hl=en\",\"https:\/\/www.linkedin.com\/company\/unihost-com\",\"https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a\",\"name\":\"Unihost Support\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"uk\",\"@id\":\"https:\/\/unihost.com\/help\/uk\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g\",\"caption\":\"Unihost Support\"},\"sameAs\":[\"https:\/\/unihost.com\/\"],\"url\":\"https:\/\/unihost.com\/help\/uk\/author\/support\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Check Open Ports on a Server","description":"Learn how to check open ports on a Linux server, identify unnecessary services, close ports through the firewall, and verify Docker-published ports.","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:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/","og_locale":"uk_UA","og_type":"article","og_title":"How to Check Open Ports on a Server","og_description":"Learn how to check open ports on a Linux server, identify unnecessary services, close ports through the firewall, and verify Docker-published ports.","og_url":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/","og_site_name":"Unihost.FAQ","article_publisher":"https:\/\/www.facebook.com\/unihost\/","article_published_time":"2026-05-15T12:39:51+00:00","og_image":[{"width":250,"height":141,"url":"https:\/\/unihost.com\/help\/minio.php?.\/unihost-logo-alt.png","type":"image\/png"}],"author":"Unihost Support","twitter_card":"summary_large_image","twitter_creator":"@unihost","twitter_site":"@unihost","twitter_misc":{"\u041d\u0430\u043f\u0438\u0441\u0430\u043d\u043e":"Unihost Support","\u041f\u0440\u0438\u0431\u043b. \u0447\u0430\u0441 \u0447\u0438\u0442\u0430\u043d\u043d\u044f":"4 \u0445\u0432\u0438\u043b\u0438\u043d\u0438"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/#article","isPartOf":{"@id":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/"},"author":{"name":"Unihost Support","@id":"https:\/\/unihost.com\/help\/uk\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a"},"headline":"\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 \u0437\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456","datePublished":"2026-05-15T12:39:51+00:00","mainEntityOfPage":{"@id":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/"},"wordCount":787,"publisher":{"@id":"https:\/\/unihost.com\/help\/uk\/#organization"},"keywords":["Ports"],"articleSection":["01. \u0417\u0430\u0433\u0430\u043b\u044c\u043d\u0435"],"inLanguage":"uk"},{"@type":"WebPage","@id":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/","url":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/","name":"How to Check Open Ports on a Server","isPartOf":{"@id":"https:\/\/unihost.com\/help\/uk\/#website"},"datePublished":"2026-05-15T12:39:51+00:00","description":"Learn how to check open ports on a Linux server, identify unnecessary services, close ports through the firewall, and verify Docker-published ports.","breadcrumb":{"@id":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/#breadcrumb"},"inLanguage":"uk","potentialAction":[{"@type":"ReadAction","target":["https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/unihost.com\/help\/uk\/check-open-ports-and-close-services\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Unihost","item":"https:\/\/unihost.com\/"},{"@type":"ListItem","position":2,"name":"Help","item":"https:\/\/unihost.com\/help\/uk\/"},{"@type":"ListItem","position":3,"name":"\u042f\u043a \u043f\u0435\u0440\u0435\u0432\u0456\u0440\u0438\u0442\u0438 \u0432\u0456\u0434\u043a\u0440\u0438\u0442\u0456 \u043f\u043e\u0440\u0442\u0438 \u0442\u0430 \u0437\u0430\u043a\u0440\u0438\u0442\u0438 \u0437\u0430\u0439\u0432\u0456 \u0441\u0435\u0440\u0432\u0456\u0441\u0438 \u043d\u0430 \u0441\u0435\u0440\u0432\u0435\u0440\u0456"}]},{"@type":"WebSite","@id":"https:\/\/unihost.com\/help\/uk\/#website","url":"https:\/\/unihost.com\/help\/uk\/","name":"Unihost.FAQ","description":"","publisher":{"@id":"https:\/\/unihost.com\/help\/uk\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/unihost.com\/help\/uk\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"uk"},{"@type":"Organization","@id":"https:\/\/unihost.com\/help\/uk\/#organization","name":"Unihost","alternateName":"Unihost","url":"https:\/\/unihost.com\/help\/uk\/","logo":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/unihost.com\/help\/uk\/#\/schema\/logo\/image\/","url":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","contentUrl":"https:\/\/unihost.com\/help\/minio.php?2026\/01\/minio.png","width":300,"height":300,"caption":"Unihost"},"image":{"@id":"https:\/\/unihost.com\/help\/uk\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/unihost\/","https:\/\/x.com\/unihost","https:\/\/www.instagram.com\/unihost\/?hl=en","https:\/\/www.linkedin.com\/company\/unihost-com","https:\/\/www.youtube.com\/channel\/UCITKsxMDnslQY8brN3advgw"]},{"@type":"Person","@id":"https:\/\/unihost.com\/help\/uk\/#\/schema\/person\/bb5ae95f38577c920e6a7507888b715a","name":"Unihost Support","image":{"@type":"ImageObject","inLanguage":"uk","@id":"https:\/\/unihost.com\/help\/uk\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/a0c9db17c2a0d93e8a0d5ac123f8c5db750ad4d3d5657369c0c4e480f5af77b8?s=96&d=mm&r=g","caption":"Unihost Support"},"sameAs":["https:\/\/unihost.com\/"],"url":"https:\/\/unihost.com\/help\/uk\/author\/support\/"}]}},"_links":{"self":[{"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/posts\/20081","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/comments?post=20081"}],"version-history":[{"count":3,"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/posts\/20081\/revisions"}],"predecessor-version":[{"id":20084,"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/posts\/20081\/revisions\/20084"}],"wp:attachment":[{"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/media?parent=20081"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/categories?post=20081"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unihost.com\/help\/uk\/wp-json\/wp\/v2\/tags?post=20081"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}