VMware Cloud Community
loki74
Contributor
Contributor

Force IP Address for sending traffic outward

We have a secure environment, and need the agent to communicate on one of the two IP addresses that are bound to a single machine. The primary IP Is used for alternate traffic. We have the agent listening on the correct IP, but all outgoing traffic uses the primary IP, not the secondary. Is there a way to force the agent to send outgoing traffic with the secondary IP (Source IP)?
0 Kudos
4 Replies
bcm1
Contributor
Contributor

Hi,

I think what you are looking for is the variable agent.setup.agentIP in the agent.properties file

http://support.hyperic.com/display/DOC/HQ+Agent+Configuration
#agent.setup.agentIP The agent IP the server should use to contact the agent.


Cheers
Ben
0 Kudos
loki74
Contributor
Contributor

Thanks for the reply. I have tried that. The problem is that I have four IP's on the box, and the firewall rules only allow one specific IP to communicate to the Hyperic Server. When the Hyperic Agent attempts to send the traffic it sends with the Main IP of the box.

Any other suggestions?
0 Kudos
admin
Immortal
Immortal

loki74,

Could it be a port issue? For example, is the firewall or vhost config on server catching traffic on port 7080 and routing to the main IP?

The agent listens on 2144, the server listens on 7080 (or 7443 if you said yes to secure connections). Can you set your firewall to allow server_IP:7080 and agent_IP:2144?

--jeremy
0 Kudos
cwitt_hyperic
Hot Shot
Hot Shot

Interesting problem. Is the IP that is allowed to talk to the HQ Server and the IP(s) that is (are) not all on the same subnet? If not, would expect a static route to HQ Server subnet for the "correct" interface to work in addressing the problem.

Bottom-line, I expect the OS is going to determine which interface to use heading outbound, and HQ is going to let it. HQ has properties to set the IP for listening for incoming connections, but do not think there are configuration options to guarantee the outbound IP.
0 Kudos