Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Routing Multicast between two networks

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
5 posts • Page 1 of 1
Author
Message
Scratalacha
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Tue Feb 24, 2004 4:39 pm

Routing Multicast between two networks

  • Quote

Post by Scratalacha » Tue Mar 15, 2005 1:12 am

I have recently gotten tired of the large amounts of broadcasting and ARP crap flying across our school network so I took the initiative and set up a router/firewall for my local boxes. So far everything is going great except for I am having trouble with accessing peoples iTunes shares. According to ethereal, the mDNS requests are not being routed through my server, as would be expected. I have been looking around for ways to controllably allow multicast through my firewall in order to identify iTunes shares and I feel that mrouted would be the answer. However, I cannot seem to grasp the idea behind it very well no matter how many tutorials I look at, as most of them are trying to encapsulate and tunnel multicasts across a unicast network, as is not the case here. Any help or suggestions would be greatly appreciated. Consider me a person with just enough knowledge to be dangerous :twisted:
Anime ate my computer
Top
R-Type
n00b
n00b
Posts: 62
Joined: Sun Sep 22, 2002 7:12 am

  • Quote

Post by R-Type » Tue Mar 15, 2005 2:36 am

IIRC, itunes multicast 'discovery' packets have TTL set to 1, so your router would not foward them even if it was set up correctly. Caveat: I have no direct experience with itunes, so I am not sure. You 'might' be able to pull off some iptables trickery to get them forwarded to your subnet anyway.
Top
Scratalacha
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Tue Feb 24, 2004 4:39 pm

  • Quote

Post by Scratalacha » Tue Mar 15, 2005 2:42 am

Is the TTL of 1 for the mDNS or the UDP data itself? Either way, there is a TTL mangle patch for iptables that would nicely do the trick it would seem.
Anime ate my computer
Top
R-Type
n00b
n00b
Posts: 62
Joined: Sun Sep 22, 2002 7:12 am

  • Quote

Post by R-Type » Sat Mar 19, 2005 8:54 pm

mDNS only I believe, but check your sniffer..or you could try explicitly connecting to a known itunes host and see if that works. The iptables 'ttl' match and target features should do the trick.

something like:
iptables -t mangle -A FORWARD -i $EXT_ETH -o $INT_ETH -m ttl --ttl-eq 1 -j TTL --ttl-inc 1

..but don't quote me on it as I'm not at a machine where I can test it. You will also want to change this syntax to suit your needs. Also, you will most likely need the 'TTL' target kernel patch from netfilter's patch-o-matic-ng. you can get that from www.netfilter.org. Get the latest 'snapshot' patch-o-matic-ng. you will also need to grab iptables and untar it so that the patch-o-matic runme script can find it (it will prompt you). It's really quite easy as long as the patch applies cleanly (it did for me last week against 2.6.11 vanilla).

Good luck dude..
Top
Scratalacha
Tux's lil' helper
Tux's lil' helper
Posts: 127
Joined: Tue Feb 24, 2004 4:39 pm

  • Quote

Post by Scratalacha » Sat Apr 23, 2005 12:08 am

Yes, I had been looking at that route and the problem it seems is that iptables doesnt filter Multicast at all. Even specifying ip ranges in that area in iptables results in an "invalid ip".
Anime ate my computer
Top
Post Reply

5 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic