{"id":1149,"date":"2016-11-16T18:20:33","date_gmt":"2016-11-16T17:20:33","guid":{"rendered":"http:\/\/miroslaw.borodziuk.eu\/?p=1149"},"modified":"2017-08-03T16:44:36","modified_gmt":"2017-08-03T14:44:36","slug":"jak-korzystac-z-iptables-zamiast-firewalld-w-centos-7","status":"publish","type":"post","link":"http:\/\/miro.borodziuk.eu\/index.php\/2016\/11\/16\/jak-korzystac-z-iptables-zamiast-firewalld-w-centos-7\/","title":{"rendered":"Jak korzysta\u0107 z iptables zamiast firewalld w CentOS 7"},"content":{"rendered":"<p>W RHEL7 i CentOS 7 standardowym firewallem jest demon <em>firewalld<\/em>. Osobi\u015bcie wol\u0119 zarz\u0105dza\u0107 firewallem bezpo\u015brednio korzystaj\u0105c z regu\u0142 <em>iptables<\/em>. <em>Firewalld<\/em> w mojej opinii bardziej nadaje si\u0119 na stacje robocze ni\u017c na serwery.<!--more--><\/p>\n<p>Na pocz\u0105tek wy\u0142\u0105czamy i maskujemy <em>firewalld:<\/em><\/p>\n<pre>#\u00a0systemctl stop firewalld\r\n# systemctl mask firewalld<\/pre>\n<p>Instalujemy iptables:<\/p>\n<pre><code># yum install iptables-services<\/code><\/pre>\n<p>Dodajemy iptables do autostartu:<\/p>\n<pre># systemctl enable iptables<\/pre>\n<p>Zarz\u0105dzanie us\u0142ug\u0105:<\/p>\n<pre># systemctl [stop|start|restart] iptables<\/pre>\n<p>Uruchamiamy iptables:<\/p>\n<pre># systemctl start iptables<\/pre>\n<p>Po zmianie regu\u0142 firewalla mo\u017cemy nowe regu\u0142y zapisa\u0107 komend\u0105:<\/p>\n<pre># service iptables save<\/pre>\n<p>lub<\/p>\n<pre># \/usr\/libexec\/iptables\/iptables.init save<\/pre>\n<p>lub<\/p>\n<p>edytuj\u0105c plik <code>\/etc\/sysconfig\/iptables .<\/code><\/p>\n","protected":false},"excerpt":{"rendered":"<p>W RHEL7 i CentOS 7 standardowym firewallem jest demon firewalld. Osobi\u015bcie wol\u0119 zarz\u0105dza\u0107 firewallem bezpo\u015brednio korzystaj\u0105c z regu\u0142 iptables. Firewalld w mojej opinii bardziej nadaje si\u0119 na stacje robocze ni\u017c na serwery.<\/p>\n","protected":false},"author":1,"featured_media":1150,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[50],"tags":[],"_links":{"self":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts\/1149"}],"collection":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/comments?post=1149"}],"version-history":[{"count":2,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts\/1149\/revisions"}],"predecessor-version":[{"id":1252,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/posts\/1149\/revisions\/1252"}],"wp:featuredmedia":[{"embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/media\/1150"}],"wp:attachment":[{"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/media?parent=1149"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/categories?post=1149"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/miro.borodziuk.eu\/index.php\/wp-json\/wp\/v2\/tags?post=1149"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}