Configure IPtables to allow Plex Media Server

I could write quite a lengthy post about configuring and setting up the Plex Media Server (PMS), however I’ve decided that this post will be short and sweet. To get Plex working properly you will need to allow incoming packets on the the following ports on your server machine. I have also provided the Plex part of my IPtables configuration in case that would be useful for a reader.

TCP UDP
32400 32400
32410
32412
32414
1900

Here is the Plex part of my IPtables configuration file from CentOS6.5. It’s location on the server is: /etc/sysconfig/iptables

This configuration is confirmed working on following devices both through the Plex app or via DLNA:

  • Google Nexus 7 2013 (Android)
  • Samsung smart TV
  • Any machine with a browser

Hopefully that will save someone a few hours work trying to figure it out themselves. Happy new year! Jack. I’ve had a few requests for the entire IPtables script i use on my Plex server – So here it is:

Comments

  1. TimeSearcher says

    Fedora 20 KDE desktop users are fortunate in having the “All Applications | Administration | Firewall” configuration applet available to will let them configure the Plex ports.

  2. TimeSearcher says

    I should also mention that you use the firewall configuration applet to add these ports to both the “Public” and “Trusted” zones.

    Thanks for your article, Jack!

  3. TimeSearcher says

    You’ll need to use the command line to make firewalld changes permanent.

    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32400/tcp
    [sudo] password for michael:
    success
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32400/udp
    success
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32410/udp
    success
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32412/udp
    success
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=32414/udp
    success
    [michael@raven ~]$ sudo firewall-cmd –permanent –zone=public –add-port=1900/udp
    success

Leave a Reply

Your email address will not be published. Required fields are marked *