User restriction based on ip address using rabbitMq Server - rabbitmq

We want to restrict user based on ip address while user connecting the rabbitmq server connection

Use the rabbitmq-auth-backend-ip-range plugin.
NOTE: the RabbitMQ team monitors the rabbitmq-users mailing list and only sometimes answers questions on StackOverflow.

Related

Is it possible to have a static inbound IP address for azure IoT hub

Is there any way to setup a static inbound IP for azure IoT hub? I'm not much experienced with networking. My client have a firewall, it is IP based. They need to set IP whitelisting. What should be the best way to achieve this?
The IP address prefixes of IoT hub are subject to change. These
changes are published periodically via service tags before taking
effect. It is therefore important that you develop processes to
regularly retrieve and use the latest service tags. This process can
be automated via the service tags discovery API. Note that Service
tags discovery API is still in preview and in some cases may not
produce the full list of tags and IP addresses. Until discovery API is
generally available, consider using the service tags in downloadable
JSON format.
IoT Hub IP addresses
In addition to the above, You can use IP filter to receive traffic only from a specified range of IP addresses and reject everything else.
By default, the IP Filter grid in the portal for an IoT hub is empty. This default setting means that your hub blocks connections from all IP addresses. This default setting is equivalent to a rule that blocks the 0.0.0.0/0 IP address range.
You can follow the documentation Use IP filters for more details.

Dynamic VLANs Assignment using MAB, LDAP and ACS Server

I'm new to this forum. This is my first post. Now I'm working on how to dynamically assign switch ports to their respective VLAN by using MAB with ACS server. I've LDAP database that contains greater numbers of end device 's MAC addresses. I want to use Mac address bypass feature in ACS server which will send query to LDAP database to authenticate the mac address. If the mac address is valid then i want to read a specific information which is VLAN ID that stored in LDAP and send back to the switch that end devices connected. From the reply from ACS server, the switch now can read the VLAN ID and match with its own VLAN database and set that particular ports to that vlan.
My question: Is it possible to do this in ACS server by using MAB?
Is it possible to do this in ACS server by using MAB?
If no, is there any other technology that can help to actualize my idea above?
In nutshell, can I automatically change VLAN in the switch based on the information stored in LDAP database such end device's mac address and vlan ID for that particular mac address by using ACS server?
Thanks in advance. :)

Java RabbitMQ configuration

I am new in using rabbitMQ and I am trying to sent an 'hello' message over internet,
I am implementing the example available in the rabbitMQ website Java RabbitMQ Hello world example, but in the example they use localhost, I try to change it to the IP address for the sender and receiver computer as explained at the website and put the sender code at a machine and receiver code on another, but it doesn't work.
My questions:
1) is rabbitMQ works over internet or it works just over local network?
2) in both cases, how to configure each computer and what each one should have?
3) Do I need to install rabbitMQ on both machines? or on one of them to run it a server?
Please if anyone can help me in configure them step-by-step, get me an answer with details.
It is a grant problem.
The user guest guest ( default for rabbitmq ) works only in localhost.
Please read this post:
Can't access RabbitMQ web management interface after fresh install
and also this:
RabbitMQ 3.3.1 can not login with guest/guest
To enable guest guest and/or create a new user.
The best practice is to create another user.
Let me answer your questions one by one
1) Yes. RabbitMQ should work over internet, you should be able to connect by giving the public ip of the RabbitMQ server. If you connecting to a server with username/password enabled then it should be provided while creating the connection.
ConnectionFactory factory = new ConnectionFactory();
factory.setUsername("username");
factory.setPassword("pwd");
2) One of the machines should have the RabbitMQ server(broker) installed and running. You can produce or consume messages from any of the machines using Java RabbitMQ client. If you had 3 machines then all three, the RabbitMQ server, message producer and message consumer could be on 3 machines.
3) You don't need to install RabbitMQ on both the machines. Install only on the machine which is running as server.

email forwarding, apache, cpanel, php

How does email forwarding works in cpanel (apache server)? I could not find any documentation for this on my client's cpanel itself (i dont have their hosting account only cpanel). Basically, they just want to monitor incoming and outgoing emails in one account. They have 8 email individual accounts and one person wants to monitor each accounts email (in and out) is there a way to do this using cpanel in an apache server.
thanks in advance!
Unfortunately, it's impossible to forward outgoing mail in CPanel. See this link:
http://forums.cpanel.net/f43/possible-forward-outgoing-mail-78332.html
and
http://www.linuxweblog.com/blogs/sandip/20090423/monitor-outgoing-emails-cpanel-exim
Unfortunately I don't have access to exim settings so I'd like to know if there's another solution as well.

Internal SMTP relay

internally, our organization limits what servers and applications can send emails. I would like to be able to have scripts that could be run on any server send an email when done. Is it possible to install IIS SMTP on a single server and have that relay all mail the servers send to our standard relay servers? All the advice I see on the internet talks about configuring relays for outbound connectivity, but this would be for internal use only. the flow would be something like this, I believe
[any server] --> My SMTP relay --> corporate SMTP relay --> Internal Mail system
Is this doable? if so, any links on how to configure? I have nearly zero SMTP knowledge.
Doable, you should search for "SMARTHOST SMTP" in google. If your mail server limits relaying to specific HOSTS/IP address, you'll still need to add the new server to the relay list. Setup will be a little different depending on you mail server/version (Exchange, IIS SMTP).
SMART HOST for Exchange:
http://www.dnsexit.com/support/mailrelay/exchange/setup.htm
I have a similar setup to what you have described. You might want want to check if your SMTP server allows relaying for authenticated users, since this might allow you current script to send emails using a domain/email user account.