{"id":4545,"date":"2015-04-12T22:37:58","date_gmt":"2015-04-12T14:37:58","guid":{"rendered":"http:\/\/rmohan.com\/?p=4545"},"modified":"2015-04-12T22:37:58","modified_gmt":"2015-04-12T14:37:58","slug":"firewalld-add","status":"publish","type":"post","link":"https:\/\/mohan.sg\/?p=4545","title":{"rendered":"firewalld  add"},"content":{"rendered":"<p>Assuming you&#8217;re using the default zone of &#8220;public&#8221; (you may need to temporarily disable selinux (setenforce 0)):<\/p>\n<p>1. To allow everyone to access port 8080\/tcp:<span class=\"Apple-converted-space\">\u00a0<\/span><\/p>\n<p><span class=\"Apple-converted-space\">\u00a0<\/span><i>\u00a0firewall-cmd &#8211;zone=public &#8211;add-port=8080\/tcp &#8211;permanent<\/i><\/p>\n<p>2. Allow a server from the IPv4 address 192.168.1.50 to access this server on port 128 over UDP:<\/p>\n<p><i>firewall-cmd &#8211;zone=public &#8211;add-rich-rule=&#8217;rule family=&#8221;ipv4&#8243; source address=&#8221;192.168.1.50\/32&#8243; port port=&#8221;128&#8243; protocol=&#8221;udp&#8221; accept&#8217; &#8211;permanent<\/i><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Assuming you&#8217;re using the default zone of &#8220;public&#8221; (you may need to temporarily disable selinux (setenforce 0)):<\/p>\n<p>1. To allow everyone to access port 8080\/tcp: <\/p>\n<p> firewall-cmd &#8211;zone=public &#8211;add-port=8080\/tcp &#8211;permanent<\/p>\n<p>2. Allow a server from the IPv4 address 192.168.1.50 to access this server on port 128 over UDP:<\/p>\n<p>firewall-cmd &#8211;zone=public &#8211;add-rich-rule=&#8217;rule family=&#8221;ipv4&#8243; source address=&#8221;192.168.1.50\/32&#8243; [&#8230;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[73],"tags":[],"_links":{"self":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4545"}],"collection":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=4545"}],"version-history":[{"count":1,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4545\/revisions"}],"predecessor-version":[{"id":4546,"href":"https:\/\/mohan.sg\/index.php?rest_route=\/wp\/v2\/posts\/4545\/revisions\/4546"}],"wp:attachment":[{"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=4545"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=4545"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/mohan.sg\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=4545"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}