Rejecting Network MSMQ messages

J

joker

Ok, I'm starting to pull my hair out on this one. It's probably
obvious, but not to me.

I have a CE device networked. I'm using MSMQ for inter-process
communications and I've set up private queues.

At times I want to be able to send messages from a development host.
This is working fine.

But, I also want to be able to ignore messages from the network for
security reasons. I can't figure out a way to tell msmq to ignore
these messages.

I tried changing the "UntrustedNetwork" setting from "Yes" to "No" and
back to "Yes", but I still receive the external messages.

I tried looking for some property in the System.Messaging.Message
object that would tell me that the message is from a different
computer/machine, that way I could just ignore those messages, but I
cannot find anything.

Any help would be appreciated,

Thanks,
 
P

Paul G. Tobey [eMVP]

I can't think of any way to do that, other than incorporating an identity in
each message that everyone agrees will be put into the queue, and ignoring
those messages with certain identities manually.

All UntrustedNetwork does is prevent the device from routing network
messages, it doesn't prevent them from arriving at your queue, as they don't
have to be routed to get there.

The only other thing I can think of to try is to set the DefaultQuota to a
very small value, or maybe even zero.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top