{"id":102,"date":"2021-01-06T14:12:14","date_gmt":"2021-01-06T13:12:14","guid":{"rendered":"https:\/\/192.168.100.14\/?p=102"},"modified":"2021-01-06T14:12:14","modified_gmt":"2021-01-06T13:12:14","slug":"otwarcie-portu-centos-7","status":"publish","type":"post","link":"https:\/\/sztab.eu\/?p=102","title":{"rendered":"Otwarcie portu CentOS 7"},"content":{"rendered":"\n<p>Sprawdzenie w jakiej Zonie pracuje CentOS:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>firewall-cmd --get-active-zones<\/code><\/pre><\/div>\n\n\n\n<p>public<br>interfaces: enp6s0<\/p>\n\n\n\n<p>Dodanie regu\u0142y otwieraj\u0105cej port (5900)<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>firewall-cmd --zone=public --add-port=5900\/tcp --permanent<\/code><\/pre><\/div>\n\n\n\n<p>lub serwis (http)<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>firewall-cmd --permanent --zone=public --add-service=http <\/code><\/pre><\/div>\n\n\n\n<p>Prze\u0142adowanie Firewall-a:<\/p>\n\n\n\n<div class=\"hcb_wrap\"><pre class=\"prism line-numbers lang-bash\" data-lang=\"Bash\"><code>firewall-cmd --reload<\/code><\/pre><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Sprawdzenie w jakiej Zonie pracuje CentOS: publicinterfaces: enp6s0 Dodanie regu\u0142y otwieraj\u0105cej port (5900) lub serwis (http) Prze\u0142adowanie Firewall-a:<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-102","post","type-post","status-publish","format-standard","hentry","category-linux"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/sztab.eu\/index.php?rest_route=\/wp\/v2\/posts\/102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/sztab.eu\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/sztab.eu\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/sztab.eu\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/sztab.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=102"}],"version-history":[{"count":1,"href":"https:\/\/sztab.eu\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions"}],"predecessor-version":[{"id":103,"href":"https:\/\/sztab.eu\/index.php?rest_route=\/wp\/v2\/posts\/102\/revisions\/103"}],"wp:attachment":[{"href":"https:\/\/sztab.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/sztab.eu\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/sztab.eu\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}