{"id":1749,"date":"2022-01-27T07:11:00","date_gmt":"2022-01-27T07:11:00","guid":{"rendered":"https:\/\/www.qworqs.com\/?p=1749"},"modified":"2022-09-30T17:47:17","modified_gmt":"2022-09-30T17:47:17","slug":"firewalld-cheat-sheet","status":"publish","type":"post","link":"https:\/\/www.voodoo.business\/blog\/2022\/01\/27\/firewalld-cheat-sheet\/","title":{"rendered":"firewallD cheat sheet"},"content":{"rendered":"\n<p>Reload<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"><code>firewall-cmd --reload<\/code><\/pre>\n\n\n\n<p>Dealing with zones<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">* firewall-cmd --get-zones &lt;- Show all zone names\n* firewall-cmd --list-all-zones &lt;- Detailed info about all zones\n* firewall-cmd --zone=zone-name --list-all &lt;- show everything about a certain zone\n* firewall-cmd --get-default-zone &lt;- What is the current default zone\n* firewall-cmd --set-default-zone zone-name &lt;- set new default zone\n* firewall-cmd --get-active-zones &lt;- List the active zones and the interfaces assigned to them\n* firewall-cmd --permanent --zone=public --change-interface=enp1s0 &lt;- connect the public zone to eth0, <strong>REQUIERS RELOAD<\/strong><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>Reload firewall-cmd &#8211;reload Dealing with zones * firewall-cmd &#8211;get-zones &lt;- Show all zone names * firewall-cmd &#8211;list-all-zones &lt;- Detailed info about all zones * firewall-cmd &#8211;zone=zone-name &#8211;list-all &lt;- show everything about a certain zone * firewall-cmd &#8211;get-default-zone &lt;- What is the current default zone * firewall-cmd &#8211;set-default-zone zone-name &lt;- set new default zone * firewall-cmd [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-1749","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1749","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/comments?post=1749"}],"version-history":[{"count":3,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1749\/revisions"}],"predecessor-version":[{"id":1753,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/posts\/1749\/revisions\/1753"}],"wp:attachment":[{"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/media?parent=1749"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/categories?post=1749"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.voodoo.business\/blog\/wp-json\/wp\/v2\/tags?post=1749"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}