Xbox360 Cannot see DLNA server?

Help
surfrock66
2013-10-19
2013-10-21
  • surfrock66

    surfrock66 - 2013-10-19

    I've used miniDLNA on Amahi for years; I recently switched to a flat Ubuntu
    Server and installed miniDLNA manually. All my media is encoded to h264
    aac. It was working; but for some reason now my Xbox360 can't see it at
    all, it doesn't show up at all in the list of servers.

    I can see the DLNA server and watch media fine from other devices
    (RaspberryPi running XBMC over ethernet, Tablets and phones running
    BubbleUPNP over Wifi) and the Xbox360 can see other DLNA devices (the
    BubbleUPNP temporary servers created when you run the app) but they just
    can't talk to each other.

    I'm suspicious it's my linux iptables rules. I've attached my
    minidlna.conf file, the log from the last time I restarted it, and my
    iptables configuration (the script that applies the rules) if they could be
    posted in the thread. I run minecraft servers and find I get attacked by
    script kiddies a lot, hence the strict firewall.

    Thoughts? Thanks!

     
    Last edit: surfrock66 2013-10-21
  • surfrock66

    surfrock66 - 2013-10-21

    Here's my files:

    /var/log/minidlna.log
    [2013/10/15 22:39:41] minidlna.c:898: warn: Starting MiniDLNA version 1.0.24 [SQLite 3.7.15.2].
    [2013/10/15 22:39:41] minidlna.c:926: warn: Creating new database...
    [2013/10/15 22:39:42] minidlna.c:1006: warn: HTTP listening on port 8200
    [2013/10/15 22:39:42] scanner.c:727: warn: Scanning /home/surfrock66/Videos
    [2013/10/15 23:15:24] scanner.c:798: warn: Scanning /home/surfrock66/Videos finished (9416 files)!
    [2013/10/15 23:15:24] scanner.c:727: warn: Scanning /home/surfrock66/Music
    [2013/10/15 23:20:31] scanner.c:798: warn: Scanning /home/surfrock66/Music finished (18055 files)!
    [2013/10/15 23:20:31] scanner.c:727: warn: Scanning /home/surfrock66/Pictures
    [2013/10/15 23:25:43] scanner.c:798: warn: Scanning /home/surfrock66/Pictures finished (45913 files)!
    [2013/10/15 23:25:45] playlist.c:125: warn: Parsing playlists...
    [2013/10/15 23:28:43] playlist.c:258: warn: Finished parsing playlists.

    iptables script:
    #!/bin/bash
    iptables -A INPUT -p icmp -j ACCEPT
    iptables -A INPUT -i lo -j ACCEPT
    iptables -A INPUT -i tun+ -j ACCEPT
    iptables -A INPUT -s 192.168.1.56 -j ACCEPT #Chromecast Office
    iptables -A INPUT -s 192.168.1.57 -j ACCEPT #Chromecast Master
    # BEGIN DDOS BANS!
    iptables -A INPUT -s 1.224.59.67 -j DROP
    iptables -A INPUT -s 1.237.57.61 -j DROP
    iptables -A INPUT -s 41.132.35.119 -j DROP
    iptables -A INPUT -s 58.225.75.154 -j DROP
    iptables -A INPUT -s 65.222.173.206 -j DROP
    iptables -A INPUT -s 66.112.91.65 -j DROP
    iptables -A INPUT -s 68.142.130.62 -j DROP
    iptables -A INPUT -s 68.147.34.128 -j DROP
    iptables -A INPUT -s 69.70.97.18 -j DROP
    iptables -A INPUT -s 74.179.96.181 -j DROP
    iptables -A INPUT -s 82.245.61.192 -j DROP
    iptables -A INPUT -s 85.111.4.136 -j DROP
    iptables -A INPUT -s 89.111.239.121 -j DROP
    iptables -A INPUT -s 91.213.8.227 -j DROP
    iptables -A INPUT -s 98.100.71.18 -j DROP
    iptables -A INPUT -s 107.206.144.69 -j DROP
    iptables -A INPUT -s 109.120.117.103 -j DROP
    iptables -A INPUT -s 112.216.59.131 -j DROP
    iptables -A INPUT -s 113.30.103.3 -j DROP
    iptables -A INPUT -s 114.207.245.115 -j DROP
    iptables -A INPUT -s 116.127.121.63 -j DROP
    iptables -A INPUT -s 119.62.128.51 -j DROP
    iptables -A INPUT -s 121.125.68.66 -j DROP
    iptables -A INPUT -s 175.120.35.133 -j DROP
    iptables -A INPUT -s 211.49.171.161 -j DROP
    iptables -A INPUT -s 213.201.143.82 -j DROP
    iptables -A INPUT -s 221.139.50.11 -j DROP
    iptables -A INPUT -s 221.141.2.48 -j DROP
    iptables -A INPUT -s 221.143.43.141 -j DROP
    iptables -A INPUT -s 222.239.255.113 -j DROP
    # END DDOS BANS!
    iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
    iptables -A INPUT -p tcp -m state --state NEW --dport 21 -j ACCEPT #FTP
    iptables -A INPUT -p tcp -m state --state NEW --dport 23 -j ACCEPT #Telnet
    iptables -A INPUT -p udp -m state --state NEW --dport 23 -j ACCEPT #Telnet
    iptables -A INPUT -p tcp -m state --state NEW --dport 50 -j ACCEPT #Remote Mail Checking Protocol
    iptables -A INPUT -p udp -m state --state NEW --dport 50 -j ACCEPT #Remote Mail Checking Protocol
    iptables -A INPUT -p tcp -m state --state NEW --dport 53 -j ACCEPT #DNS
    iptables -A INPUT -p udp -m state --state NEW --dport 53 -j ACCEPT #DNS
    iptables -A INPUT -p udp -m state --state NEW --dport 67 -j ACCEPT #DHCP
    iptables -A INPUT -p udp -m state --state NEW --dport 68 -j ACCEPT #DHCP
    iptables -A INPUT -p tcp -m state --state NEW --dport 80 -j ACCEPT #HTTP
    iptables -A INPUT -p udp -m state --state NEW --dport 80 -j ACCEPT #HTTP
    iptables -A INPUT -p tcp -m state --state NEW --dport 111 -j ACCEPT #ONC RCP
    iptables -A INPUT -p udp -m state --state NEW --dport 111 -j ACCEPT #ONC RCP
    iptables -A INPUT -p udp -m state --state NEW --dport 123 -j ACCEPT #NTP
    iptables -A INPUT -p tcp -m state --state NEW --dport 138 -j ACCEPT #NetBIOS Datagram Service
    iptables -A INPUT -p udp -m state --state NEW --dport 138 -j ACCEPT #NetBIOS Datagram Service
    iptables -A INPUT -p tcp -m state --state NEW --dport 139 -j ACCEPT #NetBIOS Session Service
    iptables -A INPUT -p udp -m state --state NEW --dport 139 -j ACCEPT #NetBIOS Session Service
    #iptables -A INPUT -p tcp -m state --state NEW --dport 229 -j ACCEPT
    #iptables -A INPUT -p tcp -m state --state NEW --dport 363 -j ACCEPT
    iptables -A INPUT -p tcp -m state --state NEW --dport 433 -j ACCEPT #Usenet
    iptables -A INPUT -p udp -m state --state NEW --dport 433 -j ACCEPT #Usenet
    iptables -A INPUT -p tcp -m state --state NEW --dport 443 -j ACCEPT #HTTPS
    iptables -A INPUT -p udp -m state --state NEW --dport 443 -j ACCEPT #HTTPS
    iptables -A INPUT -p tcp -m state --state NEW --dport 445 -j ACCEPT #Active Directory/SMB
    iptables -A INPUT -p udp -m state --state NEW --dport 500 -j ACCEPT #ISAKMP
    iptables -A INPUT -p tcp -m state --state NEW --dport 565 -j ACCEPT #WhoamI
    iptables -A INPUT -p udp -m state --state NEW --dport 565 -j ACCEPT #WhoamI
    iptables -A INPUT -p tcp -m state --state NEW --dport 631 -j ACCEPT #CUPS
    iptables -A INPUT -p udp -m state --state NEW --dport 631 -j ACCEPT #CUPS
    iptables -A INPUT -p tcp -m state --state NEW --dport 669 -j ACCEPT #SR66 Custom SSH
    iptables -A INPUT -p udp -m state --state NEW --dport 669 -j ACCEPT #SR66 Custom SSH
    iptables -A INPUT -p tcp -m state --state NEW --dport 819 -j ACCEPT
    iptables -A INPUT -p udp -m state --state NEW --dport 819 -j ACCEPT
    iptables -A INPUT -p tcp -m state --state NEW --dport 953 -j ACCEPT #DNS
    iptables -A INPUT -p udp -m state --state NEW --dport 953 -j ACCEPT #DNS
    #iptables -A INPUT -p tcp -m state --state NEW --dport 958 -j ACCEPT
    #iptables -A INPUT -p tcp -m state --state NEW --dport 1000 -j ACCEPT
    iptables -A INPUT -p tcp -m state --state NEW --dport 1755 -j ACCEPT #DLNA
    iptables -A INPUT -p udp -m state --state NEW --dport 1900 -j ACCEPT #DLNA
    iptables -A INPUT -p tcp -m state --state NEW --dport 3306 -j ACCEPT #MySQL
    iptables -A INPUT -p udp -m state --state NEW --dport 3306 -j ACCEPT #MySQL
    iptables -A INPUT -p tcp -m state --state NEW --dport 4040 -j ACCEPT #Subsonic
    iptables -A INPUT -p udp -m state --state NEW --dport 4040 -j ACCEPT #Subsonic
    iptables -A INPUT -p udp -m state --state NEW --dport 4500 -j ACCEPT #IPSec NAT Traversal
    iptables -A INPUT -p tcp -m state --state NEW --dport 5900 -j ACCEPT #VNC
    iptables -A INPUT -p udp -m state --state NEW --dport 5900 -j ACCEPT #VNC
    iptables -A INPUT -p tcp -m state --state NEW --dport 6060 -j ACCEPT #Transmission Web
    iptables -A INPUT -p tcp -m state --state NEW --dport 7634 -j ACCEPT #HDD Temp
    iptables -A INPUT -p udp -m state --state NEW --dport 8008 -j ACCEPT #Chromecast
    iptables -A INPUT -p tcp -m state --state NEW --dport 8022 -j ACCEPT #AjaxTerm
    iptables -A INPUT -p tcp -m state --state NEW --dport 8200 -j ACCEPT #GoToMyPC
    iptables -A INPUT -p tcp -m state --state NEW --dport 8333 -j ACCEPT #Bitcoin
    iptables -A INPUT -p tcp -m state --state NEW --dport 8895 -j ACCEPT #DLNA
    iptables -A INPUT -p tcp -m state --state NEW --dport 9332 -j ACCEPT #Litecoin
    #iptables -A INPUT -p tcp -m state --state NEW --dport 9412 -j ACCEPT
    iptables -A INPUT -p tcp -m state --state NEW --dport 17500 -j ACCEPT #Dropbox
    iptables -A INPUT -p udp -m state --state NEW --dport 17500 -j ACCEPT #Dropbox
    iptables -A INPUT -p tcp -m state --state NEW --dport 32976 -j ACCEPT #LogMeIn Hamachi
    #iptables -A INPUT -p tcp -m state --state NEW --dport 37148 -j ACCEPT
    #iptables -A INPUT -p tcp -m state --state NEW --dport 46491 -j ACCEPT
    #iptables -A INPUT -p tcp -m state --state NEW --dport 46603 -j ACCEPT
    #iptables -A INPUT -p tcp -m state --state NEW --dport 50996 -j ACCEPT
    iptables -A INPUT -p tcp -m state --state NEW --dport 51413 -j ACCEPT #Transmission
    #iptables -A INPUT -p tcp -m state --state NEW --dport 60081 -j ACCEPT
    #iptables -D INPUT 1
    iptables -A INPUT -j REJECT --reject-with icmp-host-prohibited
    iptables -A FORWARD -j REJECT --reject-with icmp-host-prohibited
    iptables -A INPUT -j DROP

    exit 0

    /etc/minidlna.comf
    # This is the configuration file for the MiniDLNA daemon, a DLNA/UPnP-AV media
    # server.
    #
    # Unless otherwise noted, the commented out options show their default value.
    #
    # On Debian, you can also refer to the minidlna.conf(5) man page for
    # documentation about this file.

    # Path to the directory you want scanned for media files.
    #
    # This option can be specified more than once if you want multiple directories
    # scanned.
    #
    # If you want to restrict a media_dir to a specific content type, you can
    # prepend the directory name with a letter representing the type (A, P or V),
    # followed by a comma, as so:
    # * "A" for audio (eg. media_dir=A,/var/lib/minidlna/music)
    # * "P" for pictures (eg. media_dir=P,/var/lib/minidlna/pictures)
    # * "V" for video (eg. media_dir=V,/var/lib/minidlna/videos)
    #
    # WARNING: After changing this option, you need to rebuild the database. Either
    # run minidlna with the '-R' option, or delete the 'files.db' file
    # from the db_dir directory (see below).
    # On Debian, you can run, as root, 'service minidlna force-reload' instead.
    media_dir=V,/home/surfrock66/Videos
    media_dir=A,/home/surfrock66/Music
    media_dir=P,/home/surfrock66/Pictures

    # Path to the directory that should hold the database and album art cache.
    db_dir=/var/lib/minidlna

    # Path to the directory that should hold the log file.
    log_dir=/var/log

    # Minimum level of importance of messages to be logged.
    # Must be one of "off", "fatal", "error", "warn", "info" or "debug".
    # "off" turns of logging entirely, "fatal" is the highest level of importance
    # and "debug" the lowest.
    log_level=debug

    # Use a different container as the root of the directory tree presented to
    # clients. The possible values are:
    # * "." - standard container
    # * "B" - "Browse Directory"
    # * "M" - "Music"
    # * "P" - "Pictures"
    # * "V" - "Video"
    # if you specify "B" and client device is audio-only then "Music/Folders" will be used as root
    root_container=.

    # Network interface(s) to bind to (e.g. eth0), comma delimited.
    network_interface=eth0

    # IPv4 address to listen on (e.g. 192.0.2.1).
    #listening_ip=

    # Port number for HTTP traffic (descriptions, SOAP, media transfer).
    port=8200

    # URL presented to clients.
    # The default is the IP address of the server on port 80.
    presentation_url=http://hda.surfrock66.com:8200

    # Name that the DLNA server presents to clients.
    friendly_name="Surfrock66 Media Server"

    # Serial number the server reports to clients.
    serial=12345678

    # Model name the server reports to clients.
    model_name="Surfrock66 HDA MiniDLNA"

    # Model number the server reports to clients.
    model_number=1

    # Automatic discovery of new files in the media_dir directory.
    inotify=yes

    # List of file names to look for when searching for album art. Names should be
    # delimited with a forward slash ("/").
    album_art_names=Cover.jpg/cover.jpg/AlbumArtSmall.jpg/albumartsmall.jpg/AlbumArt.jpg/albumart.jpg/Album.jpg/album.jpg/Folder.jpg/folder.jpg/Thumb.jpg/thumb.jpg

    # Strictly adhere to DLNA standards.
    # This allows server-side downscaling of very large JPEG images, which may
    # decrease JPEG serving performance on (at least) Sony DLNA products.
    strict_dlna=yes

    # Support for streaming .jpg and .mp3 files to a TiVo supporting HMO.
    #enable_tivo=no

    # Notify interval, in seconds.
    notify_interval=895

    # Path to the MiniSSDPd socket, for MiniSSDPd support.
    #minissdpdsocket=/run/minissdpd.sock

     
    Last edit: surfrock66 2013-10-21

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

JavaScript is required for this form.





No, thanks