{"id":67588,"date":"2021-07-25T21:30:07","date_gmt":"2021-07-26T01:30:07","guid":{"rendered":"http:\/\/bangla.salearningschool.com\/recent-posts\/experiment-with-firewalls-in-linux-centos-redhat-devops-rhcsa\/"},"modified":"2021-07-25T21:30:07","modified_gmt":"2021-07-26T01:30:07","slug":"experiment-with-firewalls-in-linux-centos-redhat-devops-rhcsa","status":"publish","type":"post","link":"http:\/\/bangla.sitestree.com\/?p=67588","title":{"rendered":"Experiment with Firewalls in Linux (CentOS\/RedHat) #DevOps #RHCSA"},"content":{"rendered":"<p>44 firewall-cmd &#8211;state<br \/>\n45 systemctl status firewalld<br \/>\n46 firewall-cmd &#8211;reload<br \/>\n47 systemctl restart firewalld.service<\/p>\n<p>systemctl restart firewalld<\/p>\n<p>48 firewall-cmd &#8211;get-default-zone<br \/>\n49 firewall-cmd &#8211;get-active-zones<br \/>\n50 firewall-cmd &#8211;get-zones<br \/>\n51 firewall-cmd &#8211;get-zone-of-interface=ens33<br \/>\n52 firewall-cmd &#8211;list-all<br \/>\n53 firewall-cmd &#8211;list-all-zones<br \/>\n54 firewall-cmd &#8211;get-default-zone<br \/>\n55 firewall-cmd &#8211;get-active-zones<br \/>\n56 firewall-cmd &#8211;list-all<br \/>\n57 firewall-cmd &#8211;get-zones<br \/>\n58 firewall-cmd &#8211;list-all-zones<br \/>\n59 firewall-cmd &#8211;list-all &#8211;zone external<br \/>\n60 firewall-cmd &#8211;new-zone testzone &#8211;perm<br \/>\n61 firewall-cmd &#8211;delete-zone testzone &#8211;perm<br \/>\n62 firewall-cmd &#8211;get-zones<br \/>\n63 firewall-cmd &#8211;new-zone testzone &#8211;perm<br \/>\n64 firewall-cmd &#8211;get-zones<br \/>\n65 cat \/etc\/firewalld\/zones\/testzone.xml<br \/>\n66 cat \/etc\/firewalld\/zones\/<br \/>\n67 ll \/etc\/firewalld\/zones\/<br \/>\n68 cat \/etc\/firewalld\/firewalld.conf<br \/>\n69 firewall-cmd &#8211;get-services<br \/>\n70 firewall-cmd &#8211;list-services<br \/>\n71 firewall-cmd &#8211;list-services &#8211;zone internal<br \/>\n72 firewall-cmd &#8211;query-service tftp<br \/>\n73 firewall-cmd &#8211;query-service ftp<\/p>\n<p>76 firewall-cmd &#8211;query-service ssh<br \/>\n77 firewall-cmd &#8211;new-service testservice &#8211;perm<br \/>\n78 ll \/etc\/firewalld\/services\/testservice.xml<br \/>\n79 firewall-cmd &#8211;add-service testservice testservice &#8211;zone work &#8211;perm<br \/>\n80 firewall-cmd &#8211;permanent &#8211;add-service testservice &#8211;zone work<br \/>\n81 firewall-cmd &#8211;list-services &#8211;zone work<br \/>\n82 firewall-cmd &#8211;list-ports<br \/>\n83 firewall-cmd &#8211;query-port 53\/tcp &#8211;zone dmz<br \/>\n84 firewall-cmd &#8211;permanent &#8211;add-port 53\/tcp<br \/>\n85 firewall-cmd &#8211;list-ports<br \/>\n86 firewall-cmd &#8211;query-port 53\/tcp &#8211;zone dmz<br \/>\n87 firewall-cmd &#8211;query-port 53\/tcp From: http:\/\/sitestree.com\/?p=11980<br \/> Categories:DevOps, RHCSA<br \/>Tags:<br \/> Post Data:2017-12-15 12:47:48<\/p>\n<p>\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com\/' target='new' rel=\"noopener\">https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\t(Big Data, Cloud, Security, Machine Learning): Courses: <a href='http:\/\/Training.SitesTree.com' target='new' rel=\"noopener\"> http:\/\/Training.SitesTree.com<\/a><br \/>\n\t\tIn Bengali: <a href='http:\/\/Bangla.SaLearningSchool.com' target='new' rel=\"noopener\">http:\/\/Bangla.SaLearningSchool.com<\/a><br \/>\n\t\t<a href='http:\/\/SitesTree.com' target='new' rel=\"noopener\">http:\/\/SitesTree.com<\/a><br \/>\n\t\t8112223 Canada Inc.\/JustEtc: <a href='http:\/\/JustEtc.net' target='new' rel=\"noopener\">http:\/\/JustEtc.net (Software\/Web\/Mobile\/Big-Data\/Machine Learning) <\/a><br \/>\n\t\tShop Online: <a href='https:\/\/www.ShopForSoul.com'> https:\/\/www.ShopForSoul.com\/<\/a><br \/>\n\t\tMedium: <a href='https:\/\/medium.com\/@SayedAhmedCanada' target='new' rel=\"noopener\"> https:\/\/medium.com\/@SayedAhmedCanada <\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>44 firewall-cmd &#8211;state 45 systemctl status firewalld 46 firewall-cmd &#8211;reload 47 systemctl restart firewalld.service systemctl restart firewalld 48 firewall-cmd &#8211;get-default-zone 49 firewall-cmd &#8211;get-active-zones 50 firewall-cmd &#8211;get-zones 51 firewall-cmd &#8211;get-zone-of-interface=ens33 52 firewall-cmd &#8211;list-all 53 firewall-cmd &#8211;list-all-zones 54 firewall-cmd &#8211;get-default-zone 55 firewall-cmd &#8211;get-active-zones 56 firewall-cmd &#8211;list-all 57 firewall-cmd &#8211;get-zones 58 firewall-cmd &#8211;list-all-zones 59 firewall-cmd &#8211;list-all &#8211;zone external &hellip; <\/p>\n<p><a class=\"more-link btn\" href=\"http:\/\/bangla.sitestree.com\/?p=67588\">Continue reading<\/a><\/p>\n","protected":false},"author":8,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1917],"tags":[],"class_list":["post-67588","post","type-post","status-publish","format-standard","hentry","category-fromsitestree-com","item-wrap"],"jetpack_featured_media_url":"","jetpack_sharing_enabled":true,"jetpack-related-posts":[{"id":67586,"url":"http:\/\/bangla.sitestree.com\/?p=67586","url_meta":{"origin":67588,"position":0},"title":"Create your own yum repo in Centos\/Redhat #DevOps #RHCSA","author":"Author-Check- Article-or-Video","date":"July 25, 2021","format":false,"excerpt":"Yum is a software installation manager for Redhat Linux and Related. yum is a better tool than rpm. Here, we will take the rpm packages as come with Redhat\/Centos and then we will host those packages on our own Repo Server for yum. i.e. yum will use this Repo to\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":14013,"url":"http:\/\/bangla.sitestree.com\/?p=14013","url_meta":{"origin":67588,"position":1},"title":"Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8","author":"Sayed","date":"December 7, 2017","format":false,"excerpt":"Centos\/Redhat \u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f yum \u0987\u09a8\u09cd\u09b8\u099f\u09b2\u09be\u09b0 \u09b8\u09be\u09b0\u09cd\u09ad\u09be\u09b0 \u0995\u09bf\u09ad\u09be\u09ac\u09c7 \u0995\u09a8\u09ab\u09bf\u0997\u09be\u09b0 \u0995\u09b0\u09ac\u09c7\u09a8 Mount Installer ISO mkdir \/mnt\/dvd1 mount \/dev\/sr0 \/mnt\/dvd1 Check if FTP server is installed systemctl status vsftpd systemctl start vsftpd Install ftp Server. Using rpm as yum is not available yet [default yum needs the internet, kindof] cd \/mnt\/dvd1\/Packages\/ rpm -ivh\u2026","rel":"","context":"In &quot;\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix&quot;","block_context":{"text":"\u09b2\u09bf\u09a8\u09be\u0995\u09cd\u09b8 \u098f\u09ac\u0982 \u0989\u09a8\u09bf\u0995\u09cd\u09b8 \u0964 Linux and Unix","link":"http:\/\/bangla.sitestree.com\/?cat=1231"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20401,"url":"http:\/\/bangla.sitestree.com\/?p=20401","url_meta":{"origin":67588,"position":2},"title":"Learn some Centos\/Redhat Linux: RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS","author":"Author-Check- Article-or-Video","date":"February 20, 2021","format":false,"excerpt":"RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS Check if mariaDB is installed or not 130 yum list installed | grep ^mariadb mariaDB originated from MySQL - after MySQL Got Bought by Oracle 133 yum list installed | grep ^mariadb I see - installed though not completely Output: mariadb-libs.x86_64 1:5.5.52-1.el7 @anaconda There are\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20403,"url":"http:\/\/bangla.sitestree.com\/?p=20403","url_meta":{"origin":67588,"position":3},"title":"Learn some Centos\/Redhat Linux: RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS","author":"Author-Check- Article-or-Video","date":"February 20, 2021","format":false,"excerpt":"The author is: the_authornRHCE: MariaDB Administration on Redhat\/Fedora\/CentOS Check if mariaDB is installed or not 130 yum list installed | grep ^mariadb mariaDB originated from MySQL - after MySQL Got Bought by Oracle 133 yum list installed | grep ^mariadb I see - installed though not completely Output: mariadb-libs.x86_64 1:5.5.52-1.el7\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20405,"url":"http:\/\/bangla.sitestree.com\/?p=20405","url_meta":{"origin":67588,"position":4},"title":"Learn some Centos\/Redhat Linux: RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS","author":"Author-Check- Article-or-Video","date":"February 20, 2021","format":false,"excerpt":"The author is: the_authornRHCE: MariaDB Administration on Redhat\/Fedora\/CentOS Check if mariaDB is installed or not 130 yum list installed | grep ^mariadb mariaDB originated from MySQL - after MySQL Got Bought by Oracle 133 yum list installed | grep ^mariadb I see - installed though not completely Output: mariadb-libs.x86_64 1:5.5.52-1.el7\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]},{"id":20409,"url":"http:\/\/bangla.sitestree.com\/?p=20409","url_meta":{"origin":67588,"position":5},"title":"Learn some Centos\/Redhat Linux: RHCE: MariaDB Administration on Redhat\/Fedora\/CentOS","author":"Author-Check- Article-or-Video","date":"February 20, 2021","format":false,"excerpt":"The author is: the_authornRHCE: MariaDB Administration on Redhat\/Fedora\/CentOS Check if mariaDB is installed or not 130 yum list installed | grep ^mariadb mariaDB originated from MySQL - after MySQL Got Bought by Oracle 133 yum list installed | grep ^mariadb I see - installed though not completely Output: mariadb-libs.x86_64 1:5.5.52-1.el7\u2026","rel":"","context":"In &quot;FromSitesTree.com&quot;","block_context":{"text":"FromSitesTree.com","link":"http:\/\/bangla.sitestree.com\/?cat=1917"},"img":{"alt_text":"","src":"","width":0,"height":0},"classes":[]}],"_links":{"self":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67588","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/users\/8"}],"replies":[{"embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=67588"}],"version-history":[{"count":0,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=\/wp\/v2\/posts\/67588\/revisions"}],"wp:attachment":[{"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=67588"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=67588"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/bangla.sitestree.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=67588"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}