{"id":365,"date":"2016-12-29T22:45:43","date_gmt":"2016-12-29T20:45:43","guid":{"rendered":"http:\/\/itsimple.info\/?p=365"},"modified":"2016-12-29T22:45:43","modified_gmt":"2016-12-29T20:45:43","slug":"how-to-block-ip-address-in-centos-7","status":"publish","type":"post","link":"https:\/\/itsimple.info\/?p=365","title":{"rendered":"How to block ip address in centOS 7"},"content":{"rendered":"<p>There is two option:<\/p>\n<p>1.rich rule &#8211;<\/p>\n<pre><span style=\"color: blue;\">firewall-cmd --permanent --add-rich-rule='rule family=\"ipv4\" source address=\"192.168.X.X\" reject\u2019<\/span><\/pre>\n<p>2.First in the chain &#8211;<\/p>\n<pre><span style=\"color: blue;\">firewall-cmd --direct --add-rule ipv4 filter INPUT_direct 0 -s 192.168.X.X\/32 -j DROP<\/span><\/pre>\n","protected":false},"excerpt":{"rendered":"<p>There is two option: 1.rich rule &#8211; firewall-cmd &#8211;permanent &#8211;add-rich-rule=&#8217;rule family=&#8221;ipv4&#8243; source address=&#8221;192.168.X.X&#8221; reject\u2019 2.First in the chain &#8211; firewall-cmd &#8211;direct &#8211;add-rule ipv4 filter INPUT_direct 0 -s 192.168.X.X\/32 -j DROP<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16,21,22],"tags":[],"class_list":["post-365","post","type-post","status-publish","format-standard","hentry","category-centos","category-operating-systems","category-security"],"_links":{"self":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/365","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=365"}],"version-history":[{"count":0,"href":"https:\/\/itsimple.info\/index.php?rest_route=\/wp\/v2\/posts\/365\/revisions"}],"wp:attachment":[{"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=365"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=365"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itsimple.info\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=365"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}