Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Security and Privacy
FedoraForum Search

Forgot Password? Join Us!

Security and Privacy Sadly, malware, spyware, hackers and privacy threats abound in today's world. Let's be paranoid and secure our penguins, and slam the doors on privacy exploits.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 24th June 2012, 05:52 AM
osce0 Offline
Registered User
 
Join Date: May 2011
Posts: 34
linuxfirefox
allowing xbmc to discover upnp mediatomb through iptables firewall

I find that xbmc upnp client needs to receive a udp reply after broadcasting ssdp to search for upnp devices. How do I limit the reply udp port or let the firewall allow it without opening all the udp ports?

I have iptables firewall on the xbmc client machine set up to only allow udp port 30000-59999:
Code:
-A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT
-A INPUT -p icmp -j ACCEPT
-A INPUT -m state --state NEW -m udp -p udp --dport 30000:59999 -j ACCEPT
... other rules ...
-A INPUT -j DROP
But xbmc seems to connect with source port anywhere in 1025-1999 (at least that's what I found in a few instances). I'm guessing the ESTABLISHED,RELATED doesn't work with broadcast packets.

The upnp mediatomb discovery works perfectly if I open up all udp ports on the client, but I'd rather limit it, otherwise what's the point of a firewall. And the server itself has no problem working with other non-Linux upnp clients.

So, how do I let xbmc discover upnp servers without opening up all udp ports in iptables? Is there a setting somewhere I can limit xbmc to use certain source port when broadcasting ssdp?

Is there something like a iptable module similar to samba discovery netbios connection tracking that I can use for upnp discovery?

---------- Post added at 09:52 PM ---------- Previous post was at 09:38 PM ----------

Never mind, I decided to just open up all udp ports for that particular upnp server. It looked like an overkill to try to come up with special firewall rules.
Reply With Quote
Reply

Tags
allowing, discover, firewall, iptables, mediatomb, upnp, xbmc

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] upnp client with firewall osce0 Servers & Networking 0 29th August 2011 06:53 AM
UPnP blocked by Fedora 12 firewall SiriusStarr Servers & Networking 6 3rd December 2010 01:26 PM
UPnP firewall port Seeker Using Fedora 1 22nd October 2009 11:08 PM
firewall question, allowing everything.. evolotion Servers & Networking 2 21st December 2005 11:39 PM
Allowing accessing through Firewall for CVS Sunrunner Using Fedora 3 28th September 2005 04:18 AM


Current GMT-time: 03:43 (Sunday, 19-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat