Iptables with media server

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
Post Reply
intersys
Posts: 3
Joined: Sun Jun 16, 2013 9:58 pm

Iptables with media server

Post by intersys »

Hello,
The media server worked perfectly untill I have rewrited my iptables rules. I have opened tcp, udp ports for 5001 and UPNP service.
Here are the rules:

Code: Select all

Chain INPUT (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  174 33160 ACCEPT     all  --  lo     *       0.0.0.0/0            0.0.0.0/0           
14333 4180K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
  320  114K LOGNDROP   all  --  *      *       0.0.0.0/0            0.0.0.0/0           

Chain FORWARD (policy DROP 0 packets, 0 bytes)
 pkts bytes target     prot opt in     out     source               destination         

Chain OUTPUT (policy DROP 660 packets, 48987 bytes)
 pkts bytes target     prot opt in     out     source               destination         
  350 41784 ACCEPT     all  --  *      lo      0.0.0.0/0            0.0.0.0/0           
14345 5597K ACCEPT     all  --  *      *       0.0.0.0/0            0.0.0.0/0            ctstate RELATED,ESTABLISHED
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:25
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:53
   52  3120 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:80
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:110
   14   840 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:443
   10   600 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:51413
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:6969
    1   328 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpts:67:68
  101  6596 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:53
    4   366 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:51413
    0     0 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:5001
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:5001
    0     0 ACCEPT     tcp  --  *      *       0.0.0.0/0            0.0.0.0/0            tcp dpt:2869
  111 28986 ACCEPT     udp  --  *      *       0.0.0.0/0            0.0.0.0/0            udp dpt:1900

Chain LOGNDROP (1 references)
 pkts bytes target     prot opt in     out     source               destination         
  320  114K LOG        all  --  *      *       0.0.0.0/0            0.0.0.0/0            LOG flags 0 level 4
  320  114K DROP       all  --  *      *       0.0.0.0/0            0.0.0.0/0          
and here is the log for the server startup:

Code: Select all

06-16 13:00:29  Starting Universal Media Server 2.6.5
06-16 13:00:29  Based on PS3 Media Server by shagrath, copyright 2008-2013
06-16 13:00:29  http://www.universalmediaserver.com
06-16 13:00:29  
06-16 13:00:29  Build: 54bd7b6d1 (2013-06-06)
06-16 13:00:29  Java: 1.7.0_21-Oracle Corporation
06-16 13:00:29  OS: Linux 64-bit 3.5.0-34-generic
06-16 13:00:29  Encoding: UTF-8
06-16 13:00:29  Memory: 682 MB
06-16 13:00:29  
06-16 13:00:29  Working directory: /:)/:)/Desktop/ums-2.6.5
06-16 13:00:29  Temp directory: /tmp/universalmediaserver
06-16 13:00:29  Logging config file: /:)/:)/Desktop/ums-2.6.5/logback.xml
06-16 13:00:29  debug.log: /:)/:)/Desktop/ums-2.6.5/debug.log
06-16 13:00:29  
06-16 13:00:29  Profile directory: /root/.config/UMS
06-16 13:00:29  Profile path: /root/.config/UMS/UMS.conf
06-16 13:00:29  Profile permissions: rw
06-16 13:00:29  Profile name: intersys
06-16 13:00:29  
06-16 13:00:29  Error loading libzen: Unable to load library 'zen': libzen.so: cannot open shared object file: No such file or directory
06-16 13:00:29  Loading MediaInfo library
06-16 13:00:29  Error loading MediaInfo library: Unable to load library 'mediainfo': libmediainfo.so: cannot open shared object file: No such file or directory
06-16 13:00:29  Make sure you have libmediainfo and libzen installed
06-16 13:00:29  The server will now use the less accurate FFmpeg parsing method
06-16 13:00:29  Loading renderer configurations from /:)/:)/Desktop/ums-2.6.5/renderers
06-16 13:00:29  Loading configuration file: VizioSmartTV.conf
06-16 13:00:29  Loading configuration file: Showtime3.conf
06-16 13:00:29  Loading configuration file: XBOX360.conf
06-16 13:00:29  Loading configuration file: FreeboxHD.conf
06-16 13:00:29  Loading configuration file: WDTVLive.conf
06-16 13:00:29  Loading configuration file: Bravia4500.conf
06-16 13:00:29  Loading configuration file: iPad-iPhone.conf
06-16 13:00:29  Loading configuration file: OPPOBDP83.conf
06-16 13:00:29  Loading configuration file: SonyBluray.conf
06-16 13:00:29  Loading configuration file: BraviaHX.conf
06-16 13:00:29  Loading configuration file: Philips.conf
06-16 13:00:29  Loading configuration file: Android.conf
06-16 13:00:29  Loading configuration file: NetgearNeoTV.conf
06-16 13:00:29  Loading configuration file: AirPlayer.conf
06-16 13:00:29  Loading configuration file: PopcornHour.conf
06-16 13:00:29  Loading configuration file: SamsungAllShare.conf
06-16 13:00:29  Loading configuration file: DLinkDSM510.conf
06-16 13:00:29  Loading configuration file: OnkyoTX-NR717.conf
06-16 13:00:29  Loading configuration file: Realtek.conf
06-16 13:00:29  Loading configuration file: SMP-N100.conf
06-16 13:00:29  Loading configuration file: WMP.conf
06-16 13:00:29  Loading configuration file: YamahaRXA1010.conf
06-16 13:00:29  Loading configuration file: BraviaEX620.conf
06-16 13:00:29  Loading configuration file: BlackBerryPlayBook-KalemSoftMP.conf
06-16 13:00:29  Loading configuration file: Showtime4.conf
06-16 13:00:29  Loading configuration file: TelstraTbox.conf
06-16 13:00:29  Loading configuration file: OPPOBDP93.conf
06-16 13:00:29  Loading configuration file: DirecTVHR.conf
06-16 13:00:29  Loading configuration file: SharpAquos.conf
06-16 13:00:29  Loading configuration file: PS3.conf
06-16 13:00:29  Loading configuration file: VideoWebTV.conf
06-16 13:00:29  Loading configuration file: YamahaRXV3900.conf
06-16 13:00:29  Loading configuration file: PhilipsPFL.conf
06-16 13:00:29  Loading configuration file: XBMC.conf
06-16 13:00:29  Loading configuration file: SamsungWiseLink.conf
06-16 13:00:29  Loading configuration file: SonyHomeTheatreSystem.conf
06-16 13:00:29  Loading configuration file: Streamium.conf
06-16 13:00:29  Loading configuration file: Panasonic.conf
06-16 13:00:29  Loading configuration file: Samsung-SMT-G7400.conf
06-16 13:00:29  Loading configuration file: Bravia5500.conf
06-16 13:00:29  Loading configuration file: Kuro.conf
06-16 13:00:29  Loading configuration file: BraviaEX.conf
06-16 13:00:29  Loading configuration file: YamahaRXV671.conf
06-16 13:00:29  Loading configuration file: N900.conf
06-16 13:00:29  Loading configuration file: LGST600.conf
06-16 13:00:29  Loading configuration file: FreecomMusicPal.conf
06-16 13:00:29  Please wait while we check the MPlayer font cache, this can take a minute or so.
06-16 13:00:29  Finished checking the MPlayer font cache.
06-16 13:00:29  Searching for plugins in /:)/:)/Desktop/ums-2.6.5/plugins
06-16 13:00:29  Found plugin: net.pms.movieinfo.MovieInfo
06-16 13:00:29  Registering transcoding engine: FFmpeg Audio
06-16 13:00:29  Registering transcoding engine: MEncoder
06-16 13:00:29  Registering transcoding engine: FFmpeg
06-16 13:00:29  Registering transcoding engine: MPlayer Audio
06-16 13:00:30  Registering transcoding engine: FFmpeg Web Video
06-16 13:00:30  Registering transcoding engine: MEncoder Web
06-16 13:00:30  Registering transcoding engine: MPlayer Video Dump
06-16 13:00:30  Registering transcoding engine: MPlayer Web
06-16 13:00:30  Registering transcoding engine: tsMuxeR
06-16 13:00:30  Registering transcoding engine: Audio High Fidelity
06-16 13:00:30  Registering transcoding engine: VLC Audio Streaming
06-16 13:00:30  Registering transcoding engine: VLC Video Streaming
06-16 13:00:30  Registering transcoding engine: dcraw Thumbnailer
06-16 13:00:30  Using address /10.100.102.3 found on network interface: name:eth0 (eth0)
06-16 13:00:30  Created socket: /10.100.102.3:5001
06-16 13:00:30  Using the following UUID configured in UMS.conf: 9a95d152-20a5-4f93-88c1-1ac10367aa6c
06-16 13:00:30  The server is now available for renderers to find
For some reason, it seems that the rules are blocking the server from working. Can somebody please help me ?
Thank you very much !
Wolfgan
Posts: 370
Joined: Fri Feb 08, 2013 12:33 am

Re: Iptables with media server

Post by Wolfgan »

IIRC discovery also need UDP:1900 port as well.
-- UMS serving PS3, WDTV, Samsung H6400 + J5500 and Kalemsoft renderers! (no video transcoding but remuxing accepted :D )
intersys
Posts: 3
Joined: Sun Jun 16, 2013 9:58 pm

Re: Iptables with media server

Post by intersys »

Wolfgan wrote:IIRC discovery also need UDP:1900 port as well.
I am sorry but I didn't understand you. What do you mean ? I have opened udp port 1900.
intersys
Posts: 3
Joined: Sun Jun 16, 2013 9:58 pm

Re: Iptables with media server

Post by intersys »

I have also added port 5001 in the input chain and it seems that the problem was solved.
Thank you.
Post Reply