Quantcast
Viewing all articles
Browse latest Browse all 7311

Easy firewalld config

So, I was playing around with fixing my firewall once and for all on my Fedora 20 and Fedora 21 boxes.  Both of these use Firewalld to setup iptables.  CentOS 7, uses the same tool.

 

The easy setup (on that I hope the developers take notice on and implement in the RPM):

 

Create /usr/lib/firewalld/services/plexmediaserver.xml

Fill it with this:

<?xml version="1.0" encoding="utf-8"?>
<service>
  <short>Plex Media Server</short>
  <description>This opens up PlexMediaServer for http (32400), upnp, and autodiscovery.</description>
  <port protocol="tcp" port="32469"/>
  <port protocol="udp" port="32413"/>
  <port protocol="udp" port="1900"/>
  <port protocol="tcp" port="32400"/>
  <port protocol="udp" port="32412"/>
  <port protocol="udp" port="32410"/>
  <port protocol="udp" port="32414"/>
</service>

Now a user can do to open the firewall:

firewall-cmd --permanent --zone=public --add-service=plexmediaserver

As well as remove it if they no longer want to use it.


Viewing all articles
Browse latest Browse all 7311

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>