[zeromq-dev] receive message and examine source IP?

Martin Sustrik sustrik at fastmq.com
Wed Mar 11 10:07:44 CET 2009


The primary use case for 0MQ is inside the datacenter, so the security 
is not a priority. However, if you want to contribute security-related 
code to 0MQ you are welcome.


Aamir M wrote:
> How do you ensure security of the system? Just a firewall?
> On Tue, Mar 10, 2009 at 4:51 PM, Martin Sustrik <sustrik at fastmq.com> wrote:
>> Hi Aamir,
>>> I have declared a global queue that is receiving messages from remote
>>> clients. Is there some way to know the source of those messages?
>>> Specifically I am interested in knowing the IP addresses.
>> No, currently there's no such functionality. Within business messaging
>> domain applications are normally interested only in which queue the message
>> came from and that info is already available.
>> In case you need a pointer to the sending application, it's mostly done by
>> passing symbolic name of the application in the message itself. Optionally,
>> you can pass the IP address of the sender in each message. Given that IP
>> address is 4 bytes long it wouldn't introduce any considerable overhead.
>> Martin

More information about the zeromq-dev mailing list