Re: Make multicast packets local-only?



On 02/24/2007 06:43 AM, Lance F. wrote:
On Feb 23, 11:08 pm, "Balwinder S \"bsd\" Dheeman"
<bsd.SANS...@xxxxxxxxxxxxxxxxx> wrote:
On 02/23/2007 01:21 PM, Lance F. wrote:

The situation:
I have two computers, PC1 and PC2, each running multiple multicast-
utilizing applications (specifically, UPNP). Each app multicasts its
presence via SSDP (239.255.255.250), allowing other applications on
PC1 and PC2 to discover it.
My goal:
What I want to do is to prevent PC2 (and PC3, PC4, etc.) from
detecting multicast applications running on PC1. The PC1 apps must
still be able to detect each other, and also be able to detect
multicast apps on PC2.
Is this possible?
Yes, sure.

My second question, then, is how?

I've tried settings a rule with iptables, such as:

iptables -D OUTPUT -s <local ip> -d 239.255.255.250/32 -j DROP

... but then local applications can't see the packets, either.

I've also looked into mrouted, smcroute and pimd, but it looked like
they are used for a different purpose (routing between two different
interfaces).

Any suggestions on what software to use, what steps to take, etc.,
would be greatly appreciated.

Try these rules in the following sequence and, or order:

iptables -D OUTPUT -s <ip.add.ress.PC1> -d 239.255.255.250 -j ACCEPT
iptables -D OUTPUT -s <ip.add.ress.PC2> -d 239.255.255.250 -j ACCEPT
iptables -D OUTPUT -s <ur.lo.cal.net/work> -d 239.255.255.250 -j DROP

Cheers!
--
Dr Balwinder S "bsd" Dheeman Registered Linux User: #229709
Anu'z Linux@HOME Machines: #168573, 170593, 259192
Chandigarh, UT, 160062, India Gentoo, Fedora, Knoppix/FreeBSD/XP
Home: http://cto.homelinux.net/~bsd/ Visit: http://counter.li.org/
.



Relevant Pages

  • Re: Make multicast packets local-only?
    ... utilizing applications. ... PC1 and PC2 to discover it. ... detecting multicast applications running on PC1. ... multicast apps on PC2. ...
    (comp.os.linux.networking)
  • Re: Make multicast packets local-only?
    ... utilizing applications. ... PC1 and PC2 to discover it. ... detecting multicast applications running on PC1. ... multicast apps on PC2. ...
    (comp.os.linux.networking)
  • Make multicast packets local-only?
    ... utilizing applications. ... PC1 and PC2 to discover it. ... detecting multicast applications running on PC1. ... multicast apps on PC2. ...
    (comp.os.linux.networking)
  • Re: Make multicast packets local-only?
    ... utilizing applications. ... PC1 and PC2 to discover it. ... detecting multicast applications running on PC1. ... multicast apps on PC2. ...
    (comp.os.linux.networking)
  • Re: The Dock through the years
    ... They being apple. ... I can either put the applications where I want ... What I do, as I've said, is leave the Apple apps where the installer ... So I don't know in what way you think the Launcher fails to perform ...
    (uk.comp.sys.mac)