{"id":326539,"date":"2021-07-16T15:00:18","date_gmt":"2021-07-16T15:00:18","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=326539"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=326539","title":{"rendered":"\u0423\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0435 \u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u0438\u043d\u0444\u0440\u0430\u0441\u0442\u0440\u0443\u043a\u0442\u0443\u0440\u043e\u0439 \u0447\u0435\u0440\u0435\u0437 Telegram \u0437\u0430 5 EUR\/\u043c\u0435\u0441\u044f\u0446"},"content":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<blockquote>\n<p><strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0301\u0446\u0438\u044f<\/strong>&nbsp;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0301\u0434\u0441\u0442\u0432\u0430 \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f, \u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0432\u0448\u0438\u0435\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c, \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u0431\u043e\u0440\u0430\u043c \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c.<\/p>\n<p>wikipedia.org<\/p>\n<\/blockquote>\n<figure class=\"\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/f68\/50f\/0ac\/f6850f0aced2a7b275c713a831fde7d9.png\" width=\"505\" height=\"352\"><figcaption><\/figcaption><\/figure>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041a\u0430\u043a\u0438\u043c \u0431\u044b \u043d\u0435 \u0431\u044b\u043b \u0443\u0434\u043e\u0431\u043d\u044b\u043c WEB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u044c\u044e, \u044d\u0442\u043e \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u043e, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 Telegram, \u0433\u0434\u0435 \u0432\u0441\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438: \u043e\u0442 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0430 \u043f\u043e\u0433\u043e\u0434\u044b \u0434\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. \u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u0443\u0434\u043e\u0431\u043d\u044b\u0439 API \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Telegram \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439.<\/p>\n<h2>\u0421\u043e\u0441\u0442\u0430\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<ol>\n<li>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u0441 \u041e\u0421 GNU\/Linux Ubuntu\/Debian (\u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441) \u043d\u0430 VPS \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u044e\u0431\u0438\u043c\u043e\u043c \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435 (AWS, GCP, MS Azure, Linode&#8230;), \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 1\u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438, 1 CPU \u0438 10\u0413\u0431 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u041f\u0440\u0438\u043c\u0435\u0440: Nanode 1 GB \u0441 Debian 10 \u0437\u0430 5 EUR\/\u043c\u0435\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Linode<\/p>\n<\/li>\n<li>\n<p>VPN \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u0441\u0435\u0442\u044c\u044e. \u0422\u0443\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043c\u043e\u0433\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b<\/p>\n<ul>\n<li>\n<p>L2TP VPN (\u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p>OpenVPN (\u0431\u043e\u043b\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p>Openconnect VPN (\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0435\u0441\u0442\u044c VPN \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 \u0431\u0430\u0437\u0435 Cisco ASA)<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u0441\u0435\u0442\u044c\u044e (\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043d\u0430 \u0431\u0430\u0437\u0435 Quagga)<\/p>\n<\/li>\n<li>\n<p>Telegram bot<\/p>\n<\/li>\n<li>\n<p>Python \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0442 Telegram \u0431\u043e\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 API \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435  \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043a\u0430\u043c\u0435\u0440\u0430\u043c \u0432\u0438\u0434\u0435\u043e-\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Git\/Github (\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e)<\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438<\/h2>\n<h4>\u0418\u0417\u041c\u0415\u041d\u0415\u041d\u0418\u0415 VLAN \u041d\u0410 \u041f\u041e\u0420\u0422\u0423 \u041a\u041e\u041c\u041c\u0423\u0422\u0410\u0422\u041e\u0420\u0410 \u0414\u041e\u0421\u0422\u0423\u041f\u0410:<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bb5\/65b\/489\/bb565b4895fd9df64e3da6f2a7a7c2e7.png\" alt=\"\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430, \u043d\u043e\u043c\u0435\u0440 \u0438\u043b\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u043e\u0432, \u043d\u043e\u043c\u0435\u0440 VLAN\u0430\" title=\"\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430, \u043d\u043e\u043c\u0435\u0440 \u0438\u043b\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u043e\u0432, \u043d\u043e\u043c\u0435\u0440 VLAN\u0430\" width=\"1242\" height=\"2208\"><figcaption>\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430, \u043d\u043e\u043c\u0435\u0440 \u0438\u043b\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u043e\u0432, \u043d\u043e\u043c\u0435\u0440 VLAN\u0430<\/figcaption><\/figure>\n<h4>\u041f\u0420\u041e\u0421\u041c\u041e\u0422\u0420 \u0422\u0415\u041a\u0423\u0429\u0418\u0425 \u041d\u0410\u0421\u0422\u0420\u041e\u0415\u041a VLAN-\u041e\u0412 \u041d\u0410 \u041a\u041e\u041c\u041c\u0423\u0422\u0410\u0422\u041e\u0420\u0410\u0425 \u0414\u041e\u0421\u0422\u0423\u041f\u0410<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/fe5\/bea\/124\/fe5bea124f4886211e70b15562820911.png\" alt=\"\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430\" title=\"\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430\" width=\"1242\" height=\"2208\"><figcaption>\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430<\/figcaption><\/figure>\n<h4>\u0410\u0423\u0414\u0418\u0422 \u041f\u041e\u0420\u0422\u041e\u0412 \u041a\u041e\u041c\u041c\u0423\u0422\u0410\u0422\u041e\u0420\u0410 \u0414\u041e\u0421\u0422\u0423\u041f\u0410 \u0438 \u0421\u041e\u0425\u0420\u0410\u041d\u0415\u041d\u0418\u0415 \u041d\u0410\u0421\u0422\u0420\u041e\u0415\u041a<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/bfe\/9bb\/a07\/bfe9bba07eb294613439a07832d9b9d0.png\" alt=\"\u0417\u0430\u043f\u0440\u043e\u0441 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0440\u0443\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438\" title=\"\u0417\u0430\u043f\u0440\u043e\u0441 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0440\u0443\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438\" width=\"1242\" height=\"2208\"><figcaption>\u0417\u0430\u043f\u0440\u043e\u0441 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0440\u0443\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438<\/figcaption><\/figure>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/7ec\/7c5\/8e8\/7ec7c58e817c36e00a770c7408e9ce51.png\" alt=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432\" title=\"\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432\" width=\"1242\" height=\"2208\"><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432<\/figcaption><\/figure>\n<h4>\u0414\u041e\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u0415\/\u0423\u0414\u0410\u041b\u0415\u041d\u0418\u0415 VLAN \u0441 IP, DHCP \u043f\u0443\u043b\u043e\u043c \u0438 \u043f\u0440.<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/33e\/d6f\/73b\/33ed6f73b83668ba9ce33ee037400b0b.png\" alt=\"\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 VLAN \u0441 SVI \u0438 DHCP \u043f\u0443\u043b\u043e\u043c\" title=\"\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 VLAN \u0441 SVI \u0438 DHCP \u043f\u0443\u043b\u043e\u043c\" width=\"1242\" height=\"2208\"><figcaption>\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 VLAN \u0441 SVI \u0438 DHCP \u043f\u0443\u043b\u043e\u043c<\/figcaption><\/figure>\n<h4>\u0414\u041e\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u0415\/\u0423\u0414\u0410\u041b\u0415\u041d\u0418\u0415 \u041f\u0420\u041e\u0411\u0420\u041e\u0421\u041e\u0412 \u041f\u041e\u0420\u0422\u041e\u0412<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/76d\/b79\/00d\/76db7900dad45e2143c861cbadc2e9a0.png\" width=\"1242\" height=\"2208\"><figcaption><\/figcaption><\/figure>\n<h4>\u041f\u0420\u041e\u0421\u041c\u041e\u0422\u0420 \u0422\u0415\u041a\u0423\u0429\u0418\u0425 \u041d\u0410\u0421\u0422\u0420\u041e\u0415\u041a \u041f\u0420\u041e\u0411\u0420\u041e\u0421\u041e\u0412 \u041f\u041e\u0420\u0422\u041e\u0412<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/1b5\/f26\/423\/1b5f26423b1daa18914906feaee26216.png\" width=\"1242\" height=\"2208\"><figcaption><\/figcaption><\/figure>\n<h4>\u0421\u041e\u0417\u0414\u0410\u041d\u0418\u0415 \u041e\u0413\u0420\u0410\u041d\u0418\u0427\u0415\u041d\u0418\u0419 \u0421\u041a\u041e\u0420\u041e\u0421\u0422\u0418 \u0418\u041d\u0422\u0415\u0420\u041d\u0415\u0422\u0410 \u0414\u041b\u042f VLAN<\/h4>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/d1b\/bb9\/8d6\/d1bbb98d6615f1418a535b09ec33fced.png\" width=\"1242\" height=\"2208\"><figcaption><\/figcaption><\/figure>\n<h2>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 1. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c Python \u0438 VPN \u0434\u043e \u0441\u0435\u0442\u0438, \u043d\u0435 \u0442\u0440\u0443\u0434\u043e\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c, \u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043f\u043e ICMP.<\/p>\n<h2>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 2. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043a\u0430\u043c\u0435\u0440 \u0432\u0438\u0434\u0435\u043e-\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f<\/h2>\n<figure class=\"float full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/3cc\/1cf\/ab8\/3cc1cfab89244ec78ad3aa4716f40d79.png\" width=\"1242\" height=\"2208\"><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c<\/h2>\n<p>\u0412 \u0441\u0435\u0442\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043a\u043e\u0434\u0430. \u041e\u043d \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a \u0431\u043e\u0442\u0430 Telegram (telebot):<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/442800\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/442800\/<\/a><\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0442\u0435\u0432\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044e (Netmiko):<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/jetinfosystems\/blog\/336608\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/company\/jetinfosystems\/blog\/336608\/<\/a><\/p>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 VPN \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439:<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/354490\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/354490\/<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/233971\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/233971\/<\/a><\/p>\n<p>\u0417\u0430\u0445\u0432\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043a\u0430\u0434\u0440\u043e\u0432 \u0441 \u043a\u0430\u043c\u0435\u0440, \u0442\u0443\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e, \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043a\u0430\u0434\u0440\u043e\u0432: \u0441 RTSP \u043f\u043e\u0442\u043e\u043a\u0430 \u0438 \u0447\u0435\u0440\u0435\u0437 WEB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<pre><code>import time from datetime import datetime import cv2  def get_image_rtsp(ip, name):     \"\"\"     Function get image from camera and write it to disk (use RTSP stream)     \"\"\"     user='admin'     passw=\"password\"     url_pic = \"rtsp:\/\/{}:554\/profile1\".format(ip)     time = str(datetime.now()).split(\".\")[0][0:-4].replace(\" \", \"-\")     try:         cap = cv2.VideoCapture(url_pic)         ret, frame = cap.read()         gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)         cv2.imwrite(\"static\/{}.jpg_{}\".format(name,time), frame)         cap.release()         cv2.destroyAllWindows()          def get_image_web(ip, name):     \"\"\"     Function get image from camera and write it to disk (use HTTP)     \"\"\"     user='admin'     passw=\"password\"     url_pic = \"http:\/\/{}:80\/ISAPI\/Streaming\/channels\/1\/picture\/\".format(ip)     data = {}     headers = {}     files={\"foo\":\"bar\"}     auth1 = HTTPDigestAuth(user,passw)     s = requests.Session()     d = s.get(url_pic,auth=auth1,headers=headers,data=data,files=files)     time = str(datetime.now()).split(\".\")[0][0:-4].replace(\" \", \"-\")     with open(\"static\/{}.jpg_{}\".format(name,time),'wb') as f:          f.write(d.content)<\/code><\/pre>\n<h2>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/h2>\n<p>\u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 2 \u0444\u0430\u043a\u0442\u043e\u0440\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e Telegram ID (\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e PIN \u043a\u043e\u0434\u0443 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ol>\n<p>\u0411\u043e\u0442 &#8212; \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u041d\u0430 \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u044d\u043a\u0440\u0430\u043d ufw, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0440\u0442 \u0434\u043b\u044f SSH, \u0435\u0449\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u0440\u0442 SSH \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u0442 22, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<h2>\u041a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c<\/h2>\n<figure class=\"full-width\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/habrastorage.org\/getpro\/habr\/upload_files\/c20\/2a5\/9ab\/c202a59ab7ba51670330260dae5695d1.jpg\" width=\"1280\" height=\"720\"><figcaption><\/figcaption><\/figure>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/568114\/\"> https:\/\/habr.com\/ru\/post\/568114\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"\n<div class=\"post__text post__text_v2\" id=\"post-content-body\">\n<blockquote>\n<p><strong>\u0410\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0437\u0430\u0301\u0446\u0438\u044f<\/strong>&nbsp;\u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0301\u0434\u0441\u0442\u0432\u0430 \u2014 \u044d\u0442\u043e \u043f\u0440\u043e\u0446\u0435\u0441\u0441 \u0432 \u0440\u0430\u0437\u0432\u0438\u0442\u0438\u0438 \u043c\u0430\u0448\u0438\u043d\u043d\u043e\u0433\u043e \u043f\u0440\u043e\u0438\u0437\u0432\u043e\u0434\u0441\u0442\u0432\u0430, \u043f\u0440\u0438 \u043a\u043e\u0442\u043e\u0440\u043e\u043c \u0444\u0443\u043d\u043a\u0446\u0438\u0438 \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0438 \u043a\u043e\u043d\u0442\u0440\u043e\u043b\u044f, \u0440\u0430\u043d\u0435\u0435 \u0432\u044b\u043f\u043e\u043b\u043d\u044f\u0432\u0448\u0438\u0435\u0441\u044f \u0447\u0435\u043b\u043e\u0432\u0435\u043a\u043e\u043c, \u043f\u0435\u0440\u0435\u0434\u0430\u044e\u0442\u0441\u044f \u043f\u0440\u0438\u0431\u043e\u0440\u0430\u043c \u0438 \u0430\u0432\u0442\u043e\u043c\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0438\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c.<\/p>\n<p>wikipedia.org<\/p>\n<\/blockquote>\n<figure class=\"\"><figcaption><\/figcaption><\/figure>\n<h2>\u0412\u0432\u0435\u0434\u0435\u043d\u0438\u0435<\/h2>\n<p>\u041a\u0430\u043a\u0438\u043c \u0431\u044b \u043d\u0435 \u0431\u044b\u043b \u0443\u0434\u043e\u0431\u043d\u044b\u043c WEB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u0441\u0438\u0441\u0442\u0435\u043c\u044b \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u044c\u044e, \u044d\u0442\u043e \u0432\u0441\u0435-\u0440\u0430\u0432\u043d\u043e \u0431\u0443\u0434\u0435\u0442 \u043d\u0435 \u0442\u0430\u043a \u0443\u0434\u043e\u0431\u043d\u043e, \u043a\u0430\u043a \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u0435 \u043c\u0435\u0441\u0441\u0435\u043d\u0434\u0436\u0435\u0440\u0430 Telegram, \u0433\u0434\u0435 \u0432\u0441\u0435 \u0432 \u043e\u0434\u043d\u043e\u043c \u043f\u0440\u0438\u043b\u043e\u0436\u0435\u043d\u0438\u0438: \u043e\u0442 \u043e\u0431\u0449\u0435\u043d\u0438\u044f \u0441 \u0434\u0440\u0443\u0437\u044c\u044f\u043c\u0438 \u0438 \u043f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u044f \u043f\u0440\u043e\u0433\u043d\u043e\u0437\u0430 \u043f\u043e\u0433\u043e\u0434\u044b \u0434\u043e \u0443\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u044f \u0441\u0435\u0442\u0435\u0432\u044b\u043c\u0438 \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432\u0430\u043c\u0438. \u0412 \u0434\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435, \u0443\u0434\u043e\u0431\u043d\u044b\u0439 API \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441 \u043f\u043b\u0430\u0442\u0444\u043e\u0440\u043c\u044b Telegram \u043f\u043e\u0437\u0432\u043e\u043b\u044f\u0435\u0442 \u043f\u043e\u043b\u0443\u0447\u0438\u0442\u044c \u0436\u0435\u043b\u0430\u0435\u043c\u044b\u0439 \u0441\u0435\u0440\u0432\u0438\u0441 \u0441 \u043c\u0438\u043d\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u043c\u0438 \u0442\u0440\u0443\u0434\u043e\u0437\u0430\u0442\u0440\u0430\u0442\u0430\u043c\u0438. \u0412 \u0434\u0430\u043d\u043d\u043e\u0439 \u0441\u0442\u0430\u0442\u044c\u0435 \u044f \u043f\u0440\u0438\u0432\u0435\u0434\u0443 \u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u043f\u0440\u0438\u043c\u0435\u0440 \u043e\u0434\u043d\u043e\u0433\u043e \u0438\u0437 \u0442\u0430\u043a\u0438\u0445 \u0440\u0435\u0448\u0435\u043d\u0438\u0439.<\/p>\n<h2>\u0421\u043e\u0441\u0442\u0430\u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u044b<\/h2>\n<ol>\n<li>\n<p>\u041c\u0430\u0448\u0438\u043d\u0430 \u0441 \u041e\u0421 GNU\/Linux Ubuntu\/Debian (\u0438\u043b\u0438 \u0434\u0440\u0443\u0433\u043e\u0439 \u043d\u0430 \u0432\u0430\u0448 \u0432\u043a\u0443\u0441) \u043d\u0430 VPS \u0432 \u0432\u0430\u0448\u0435\u043c \u043b\u044e\u0431\u0438\u043c\u043e\u043c \u043e\u0431\u043b\u0430\u0447\u043d\u043e\u043c \u0441\u0435\u0440\u0432\u0438\u0441\u0435 (AWS, GCP, MS Azure, Linode&#8230;), \u0431\u0443\u0434\u0435\u0442 \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e 1\u0413\u0431 \u043f\u0430\u043c\u044f\u0442\u0438, 1 CPU \u0438 10\u0413\u0431 \u0436\u0435\u0441\u0442\u043a\u043e\u0433\u043e \u0434\u0438\u0441\u043a\u0430. \u041f\u0440\u0438\u043c\u0435\u0440: Nanode 1 GB \u0441 Debian 10 \u0437\u0430 5 EUR\/\u043c\u0435\u0441 \u043d\u0430 \u0441\u0435\u0440\u0432\u0438\u0441\u0435 Linode<\/p>\n<\/li>\n<li>\n<p>VPN \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u0441\u0435\u0442\u044c\u044e. \u0422\u0443\u0442 \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u044b \u0440\u0430\u0437\u043d\u044b\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b, \u043c\u043e\u0433\u0443 \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u0435\u0434\u043b\u043e\u0436\u0438\u0442\u044c \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u044b<\/p>\n<ul>\n<li>\n<p>L2TP VPN (\u0441\u0430\u043c\u044b\u0439 \u043f\u0440\u043e\u0441\u0442\u043e\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p>OpenVPN (\u0431\u043e\u043b\u0435\u0435 \u0444\u0443\u043d\u043a\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u044b\u0439 \u0438 \u0441\u043b\u043e\u0436\u043d\u044b\u0439 \u0432\u0430\u0440\u0438\u0430\u043d\u0442)<\/p>\n<\/li>\n<li>\n<p>Openconnect VPN (\u043f\u043e\u0434\u0445\u043e\u0434\u0438\u0442 \u0435\u0441\u043b\u0438 \u043d\u0430 \u043f\u043b\u043e\u0449\u0430\u0434\u043a\u0435 \u0435\u0441\u0442\u044c VPN \u0441\u0435\u0440\u0432\u0438\u0441 \u043d\u0430 \u0431\u0430\u0437\u0435 Cisco ASA)<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>\u041c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044f \u043c\u0435\u0436\u0434\u0443 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c \u0438 \u0441\u0435\u0442\u044c\u044e (\u043c\u043e\u0436\u043d\u043e \u0432\u044b\u0431\u0440\u0430\u0442\u044c \u043a\u0430\u043a \u0441\u0442\u0430\u0442\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u0438\u043b\u0438 \u0432 \u0441\u043b\u0443\u0447\u0430\u0435 \u043d\u0430\u0434\u043e\u0431\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u043f\u043e\u0441\u0442\u0440\u043e\u0438\u0442\u044c \u0434\u0438\u043d\u0430\u043c\u0438\u0447\u0435\u0441\u043a\u0443\u044e \u043c\u0430\u0440\u0448\u0440\u0443\u0442\u0438\u0437\u0430\u0446\u0438\u044e \u043d\u0430 \u0431\u0430\u0437\u0435 Quagga)<\/p>\n<\/li>\n<li>\n<p>Telegram bot<\/p>\n<\/li>\n<li>\n<p>Python \u0434\u043b\u044f \u043e\u0431\u0440\u0430\u0431\u043e\u0442\u043a\u0438 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0439 \u043e\u0442 Telegram \u0431\u043e\u0442\u0430 \u0447\u0435\u0440\u0435\u0437 API \u0438 \u0432\u044b\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u044f \u0437\u0430\u0434\u0430\u0447 \u043f\u043e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0435  \u0441\u0435\u0442\u0435\u0432\u043e\u0433\u043e \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044f, \u043f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u044f \u043a \u043a\u0430\u043c\u0435\u0440\u0430\u043c \u0432\u0438\u0434\u0435\u043e-\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>Git\/Github (\u043e\u043f\u0446\u0438\u043e\u043d\u0430\u043b\u044c\u043d\u043e)<\/p>\n<\/li>\n<\/ol>\n<h2>\u041f\u0440\u0438\u043c\u0435\u0440 \u0440\u0435\u0430\u043b\u0438\u0437\u0430\u0446\u0438\u0438 \u0441 \u043a\u0430\u0440\u0442\u0438\u043d\u043a\u0430\u043c\u0438<\/h2>\n<h4>\u0418\u0417\u041c\u0415\u041d\u0415\u041d\u0418\u0415 VLAN \u041d\u0410 \u041f\u041e\u0420\u0422\u0423 \u041a\u041e\u041c\u041c\u0423\u0422\u0410\u0422\u041e\u0420\u0410 \u0414\u041e\u0421\u0422\u0423\u041f\u0410:<\/h4>\n<figure class=\"float full-width\"><figcaption>\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430, \u043d\u043e\u043c\u0435\u0440 \u0438\u043b\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d \u043f\u043e\u0440\u0442\u043e\u0432, \u043d\u043e\u043c\u0435\u0440 VLAN\u0430<\/figcaption><\/figure>\n<h4>\u041f\u0420\u041e\u0421\u041c\u041e\u0422\u0420 \u0422\u0415\u041a\u0423\u0429\u0418\u0425 \u041d\u0410\u0421\u0422\u0420\u041e\u0415\u041a VLAN-\u041e\u0412 \u041d\u0410 \u041a\u041e\u041c\u041c\u0423\u0422\u0410\u0422\u041e\u0420\u0410\u0425 \u0414\u041e\u0421\u0422\u0423\u041f\u0410<\/h4>\n<figure class=\"float full-width\"><figcaption>\u0412 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u0438 \u0431\u043e\u0442\u0443 \u0443\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442\u0441\u044f \u0443\u0441\u043b\u043e\u0432\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440 \u043a\u043e\u043c\u043c\u0443\u0442\u0430\u0442\u043e\u0440\u0430<\/figcaption><\/figure>\n<h4>\u0410\u0423\u0414\u0418\u0422 \u041f\u041e\u0420\u0422\u041e\u0412 \u041a\u041e\u041c\u041c\u0423\u0422\u0410\u0422\u041e\u0420\u0410 \u0414\u041e\u0421\u0422\u0423\u041f\u0410 \u0438 \u0421\u041e\u0425\u0420\u0410\u041d\u0415\u041d\u0418\u0415 \u041d\u0410\u0421\u0422\u0420\u041e\u0415\u041a<\/h4>\n<figure class=\"float full-width\"><figcaption>\u0417\u0430\u043f\u0440\u043e\u0441 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432 \u0438 \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d\u0438\u044f \u043a\u043e\u043d\u0444\u0438\u0433\u0430\u0440\u0443\u0446\u0438\u0438 \u043d\u0430 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u0438<\/figcaption><\/figure>\n<figure class=\"float full-width\"><figcaption>\u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442 \u0430\u0443\u0434\u0438\u0442\u0430 \u043f\u043e\u0440\u0442\u043e\u0432<\/figcaption><\/figure>\n<h4>\u0414\u041e\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u0415\/\u0423\u0414\u0410\u041b\u0415\u041d\u0418\u0415 VLAN \u0441 IP, DHCP \u043f\u0443\u043b\u043e\u043c \u0438 \u043f\u0440.<\/h4>\n<figure class=\"float full-width\"><figcaption>\u0417\u0430\u043f\u0440\u043e\u0441 \u043d\u0430 \u0434\u043e\u0431\u0430\u0432\u043b\u0435\u043d\u0438\u0435 VLAN \u0441 SVI \u0438 DHCP \u043f\u0443\u043b\u043e\u043c<\/figcaption><\/figure>\n<h4>\u0414\u041e\u0411\u0410\u0412\u041b\u0415\u041d\u0418\u0415\/\u0423\u0414\u0410\u041b\u0415\u041d\u0418\u0415 \u041f\u0420\u041e\u0411\u0420\u041e\u0421\u041e\u0412 \u041f\u041e\u0420\u0422\u041e\u0412<\/h4>\n<figure class=\"float full-width\"><figcaption><\/figcaption><\/figure>\n<h4>\u041f\u0420\u041e\u0421\u041c\u041e\u0422\u0420 \u0422\u0415\u041a\u0423\u0429\u0418\u0425 \u041d\u0410\u0421\u0422\u0420\u041e\u0415\u041a \u041f\u0420\u041e\u0411\u0420\u041e\u0421\u041e\u0412 \u041f\u041e\u0420\u0422\u041e\u0412<\/h4>\n<figure class=\"float full-width\"><figcaption><\/figcaption><\/figure>\n<h4>\u0421\u041e\u0417\u0414\u0410\u041d\u0418\u0415 \u041e\u0413\u0420\u0410\u041d\u0418\u0427\u0415\u041d\u0418\u0419 \u0421\u041a\u041e\u0420\u041e\u0421\u0422\u0418 \u0418\u041d\u0422\u0415\u0420\u041d\u0415\u0422\u0410 \u0414\u041b\u042f VLAN<\/h4>\n<figure class=\"float full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 1. \u041c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433<\/h2>\n<p>\u0415\u0441\u043b\u0438 \u0435\u0441\u0442\u044c Python \u0438 VPN \u0434\u043e \u0441\u0435\u0442\u0438, \u043d\u0435 \u0442\u0440\u0443\u0434\u043e\u043d\u043e \u0434\u043e\u043f\u043e\u043b\u043d\u0438\u0442\u044c \u0431\u0430\u0437\u043e\u0432\u044b\u043c \u043c\u043e\u043d\u0438\u0442\u043e\u0440\u0438\u043d\u0433\u043e\u043c, \u043e\u043f\u0440\u043e\u0441\u043e\u043c \u0443\u0441\u0442\u0440\u043e\u0439\u0441\u0442\u0432 \u043f\u043e ICMP.<\/p>\n<h2>\u0414\u043e\u043f\u043e\u043b\u043d\u0435\u043d\u0438\u0435 2. \u041f\u043e\u043b\u0443\u0447\u0435\u043d\u0438\u0435 \u0438\u0437\u043e\u0431\u0440\u0430\u0436\u0435\u043d\u0438\u044f \u0441 \u043a\u0430\u043c\u0435\u0440 \u0432\u0438\u0434\u0435\u043e-\u043d\u0430\u0431\u043b\u044e\u0434\u0435\u043d\u0438\u044f<\/h2>\n<figure class=\"float full-width\"><figcaption><\/figcaption><\/figure>\n<h2>\u041f\u043e\u0434 \u043a\u0430\u043f\u043e\u0442\u043e\u043c<\/h2>\n<p>\u0412 \u0441\u0435\u0442\u0438 \u0443\u0436\u0435 \u0435\u0441\u0442\u044c \u0434\u043e\u0441\u0442\u0430\u0442\u043e\u0447\u043d\u043e \u043a\u0430\u0447\u0435\u0441\u0442\u0432\u0435\u043d\u043d\u043e\u0433\u043e \u043a\u043e\u043d\u0442\u0435\u043d\u0442\u0430, \u043f\u043e\u044d\u0442\u043e\u043c\u0443 \u0437\u0434\u0435\u0441\u044c \u043d\u0435 \u0431\u0443\u0434\u0435\u0442 \u043f\u0440\u0438\u043c\u0435\u0440\u043e\u0432 \u043a\u043e\u0434\u0430. \u041e\u043d \u043d\u0438\u0447\u0435\u043c \u043d\u0435 \u043e\u0442\u043b\u0438\u0447\u0430\u0435\u0442\u0441\u044f \u043e\u0442 \u0442\u043e\u0433\u043e, \u0447\u0442\u043e \u0443\u0436\u0435 \u0431\u044b\u043b\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u043d\u043e \u0440\u0430\u043d\u0435\u0435.<\/p>\n<p>\u0421\u043e\u0437\u0434\u0430\u043d\u0438\u0435 \u043a \u0431\u043e\u0442\u0430 Telegram (telebot):<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/442800\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/442800\/<\/a><\/p>\n<p>\u041f\u043e\u0434\u043a\u043b\u044e\u0447\u0435\u043d\u0438\u0435 \u043a \u0441\u0435\u0442\u0435\u0432\u043e\u043c\u0443 \u043e\u0431\u043e\u0440\u0443\u0434\u043e\u0432\u0430\u043d\u0438\u044e (Netmiko):<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/company\/jetinfosystems\/blog\/336608\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/company\/jetinfosystems\/blog\/336608\/<\/a><\/p>\n<p>\u041f\u043e\u0441\u0442\u0440\u043e\u0435\u043d\u0438\u0435 VPN \u0442\u0443\u043d\u043d\u0435\u043b\u0435\u0439:<\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/354490\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/354490\/<\/a><\/p>\n<p><a href=\"https:\/\/habr.com\/ru\/post\/233971\/\" rel=\"noopener noreferrer nofollow\">https:\/\/habr.com\/ru\/post\/233971\/<\/a><\/p>\n<p>\u0417\u0430\u0445\u0432\u0430\u0442 \u0432\u0438\u0434\u0435\u043e \u043a\u0430\u0434\u0440\u043e\u0432 \u0441 \u043a\u0430\u043c\u0435\u0440, \u0442\u0443\u0442 \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u0438 \u043d\u0435 \u0442\u0430\u043a \u043c\u043d\u043e\u0433\u043e, \u043d\u0438\u0436\u0435 \u043f\u0440\u0438\u043c\u0435\u0440 \u043a\u043e\u0434\u0430 \u0434\u043b\u044f \u0434\u0432\u0443\u0445 \u0432\u0430\u0440\u0438\u0430\u043d\u0442\u043e\u0432 \u0437\u0430\u0445\u0432\u0430\u0442\u0430 \u043a\u0430\u0434\u0440\u043e\u0432: \u0441 RTSP \u043f\u043e\u0442\u043e\u043a\u0430 \u0438 \u0447\u0435\u0440\u0435\u0437 WEB \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441.<\/p>\n<pre><code>import time from datetime import datetime import cv2  def get_image_rtsp(ip, name):     \"\"\"     Function get image from camera and write it to disk (use RTSP stream)     \"\"\"     user='admin'     passw=\"password\"     url_pic = \"rtsp:\/\/{}:554\/profile1\".format(ip)     time = str(datetime.now()).split(\".\")[0][0:-4].replace(\" \", \"-\")     try:         cap = cv2.VideoCapture(url_pic)         ret, frame = cap.read()         gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)         cv2.imwrite(\"static\/{}.jpg_{}\".format(name,time), frame)         cap.release()         cv2.destroyAllWindows()          def get_image_web(ip, name):     \"\"\"     Function get image from camera and write it to disk (use HTTP)     \"\"\"     user='admin'     passw=\"password\"     url_pic = \"http:\/\/{}:80\/ISAPI\/Streaming\/channels\/1\/picture\/\".format(ip)     data = {}     headers = {}     files={\"foo\":\"bar\"}     auth1 = HTTPDigestAuth(user,passw)     s = requests.Session()     d = s.get(url_pic,auth=auth1,headers=headers,data=data,files=files)     time = str(datetime.now()).split(\".\")[0][0:-4].replace(\" \", \"-\")     with open(\"static\/{}.jpg_{}\".format(name,time),'wb') as f:          f.write(d.content)<\/code><\/pre>\n<h2>\u0411\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u044c<\/h2>\n<p>\u0414\u043b\u044f \u043e\u0431\u0435\u0441\u043f\u0435\u0447\u0435\u043d\u0438\u044f \u0434\u043e\u043b\u0436\u043d\u043e\u0433\u043e \u0443\u0440\u043e\u0432\u043d\u044f \u0431\u0435\u0437\u043e\u043f\u0430\u0441\u043d\u043e\u0441\u0442\u0438 \u043c\u043e\u0436\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c 2 \u0444\u0430\u043a\u0442\u043e\u0440\u0430 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438:<\/p>\n<ol>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e Telegram ID (\u0443\u043d\u0438\u043a\u0430\u043b\u044c\u043d\u044b\u0439 \u043d\u043e\u043c\u0435\u0440)<\/p>\n<\/li>\n<li>\n<p>\u041f\u0440\u043e\u0432\u0435\u0440\u043a\u0430 \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u044f \u043f\u043e PIN \u043a\u043e\u0434\u0443 \u0432 \u043d\u0430\u0447\u0430\u043b\u0435 \u0441\u043e\u043e\u0431\u0449\u0435\u043d\u0438\u044f<\/p>\n<\/li>\n<li>\n<p>\u0414\u043b\u044f \u043a\u0430\u0436\u0434\u043e\u0439 \u0443\u0447\u0435\u0442\u043d\u043e\u0439 \u0437\u0430\u043f\u0438\u0441\u0438 \u043c\u043e\u0436\u0435\u0442 \u0441\u043e\u0437\u0434\u0430\u0432\u0430\u0442\u044c\u0441\u044f \u043e\u0433\u0440\u0430\u043d\u0438\u0447\u0435\u043d\u043d\u044b\u0439 \u0441\u043f\u0438\u0441\u043e\u043a \u043e\u0431\u044a\u0435\u043a\u0442\u043e\u0432<\/p>\n<\/li>\n<\/ol>\n<p>\u0411\u043e\u0442 &#8212; \u044d\u0442\u043e \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u0440\u043e\u0441\u043b\u043e\u0439\u043a\u0430 \u043c\u0435\u0436\u0434\u0443 \u0432\u0438\u0440\u0442\u0443\u0430\u043b\u044c\u043d\u043e\u0439 \u043c\u0430\u0448\u0438\u043d\u043e\u0439 \u0438 \u0441\u0435\u0440\u0432\u0435\u0440\u043e\u043c. \u041d\u0430 \u0441\u0430\u043c \u0441\u0435\u0440\u0432\u0435\u0440 \u0443\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u0435\u0442\u0441\u044f \u043c\u0435\u0436\u0441\u0435\u0442\u0435\u0432\u043e\u0439 \u044d\u043a\u0440\u0430\u043d ufw, \u043e\u0442\u043a\u0440\u044b\u0442\u044c \u0442\u043e\u043b\u044c\u043a\u043e \u043f\u043e\u0440\u0442 \u0434\u043b\u044f SSH, \u0435\u0449\u0435 \u0440\u0435\u043a\u043e\u043c\u0435\u043d\u0434\u0443\u0435\u0442\u0441\u044f \u043f\u043e\u043c\u0435\u043d\u044f\u0442\u044c \u043f\u043e\u0440\u0442 SSH \u043d\u0430 \u043b\u044e\u0431\u043e\u0439 \u043e\u0442\u043b\u0438\u0447\u043d\u044b\u0439 \u043e\u0442 22, \u0430 \u0442\u0430\u043a \u0436\u0435 \u0434\u043e\u0431\u0430\u0432\u0438\u0442\u044c \u0443\u0432\u0435\u0434\u043e\u043c\u043b\u0435\u043d\u0438\u0435 \u043e \u043f\u043e\u043f\u044b\u0442\u043a\u0430\u0445 \u0430\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u0438.<\/p>\n<h2>\u041a\u043b\u044e\u0447\u0435\u0432\u0430\u044f \u0446\u0435\u043d\u043d\u043e\u0441\u0442\u044c<\/h2>\n<figure class=\"full-width\"><figcaption><\/figcaption><\/figure>\n<\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"https:\/\/habr.com\/ru\/post\/568114\/\"> https:\/\/habr.com\/ru\/post\/568114\/<\/a><br \/><\/br><\/br><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-326539","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326539","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=326539"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/326539\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=326539"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=326539"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=326539"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}