Networking Forums

Networking Forums > Computer Networking > Linux Networking > Make multicast packets local-only?

Reply
Thread Tools Display Modes

Make multicast packets local-only?

 
 
Lance F.
Guest
Posts: n/a

 
      02-23-2007, 06:51 AM
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?

- Lance F.

 
Reply With Quote
 
 
 
 
Balwinder S \bsd\ Dheeman
Guest
Posts: n/a

 
      02-23-2007, 01:08 PM
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.

--
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/
 
Reply With Quote
 
Lance F.
Guest
Posts: n/a

 
      02-24-2007, 12:13 AM
On Feb 23, 11:08 pm, "Balwinder S \"bsd\" Dheeman"
<bsd.SANS...@cto.homelinux.net> 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.

- Lance F.

 
Reply With Quote
 
Balwinder S \bsd\ Dheeman
Guest
Posts: n/a

 
      02-25-2007, 05:33 AM
On 02/24/2007 06:43 AM, Lance F. wrote:
> On Feb 23, 11:08 pm, "Balwinder S \"bsd\" Dheeman"
> <bsd.SANS...@cto.homelinux.net> 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/
 
Reply With Quote
 
Lance F.
Guest
Posts: n/a

 
      02-28-2007, 12:44 AM
On Feb 25, 3:33 pm, "Balwinder S \"bsd\" Dheeman"
<bsd.SANS...@cto.homelinux.net> wrote:
> On 02/24/2007 06:43 AM, Lance F. wrote:
>
>
>
> > On Feb 23, 11:08 pm, "Balwinder S \"bsd\" Dheeman"
> > <bsd.SANS...@cto.homelinux.net> 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


Thank you for the response.

Unfortunately, these rules do not produce the result I had been
looking for.

However, since that time I've realized that this method would not work
for my project, anyways. Along with blocking presence advertisements,
I also have to ignore incoming 'search' packets (but not other
incoming packets); a simple routing rule would not take care of both
of these issues.

- Lance F.

 
Reply With Quote
 
 
 
Reply

Thread Tools
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
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
duplicate multicast packets jonmcallister17@gmail.com Linux Networking 0 11-20-2008 06:20 PM
Can Microsoft's RRAS be configured for multicast? Such as in cases where you want to make it a multicast rendevous point? Spin Windows Networking 0 10-26-2006 01:06 PM
Why isn't my Linux box forwarding multicast packets? Wei Linux Networking 1 05-25-2005 08:15 PM
Forwarding multicast packets in Linux, for different subnets. smshahriar@gmail.com Linux Networking 4 04-28-2005 04:34 PM
Source IP Address of Multicast Join Packets nd_no@yahoo.com Linux Networking 4 03-03-2005 10:35 AM



1 2 3 4 5 6 7 8 9 10 11