Getting Data In

How does the deployment client decide which ipv4 address (of possibly multiple) to present when phoning home?

dstaulcu
Builder

The other day I came across universal forwarder based deployment client which was not receiving deployment server apps as expected.

When looking at the HttpPubSubConnection (PhoneHome) records in the splunkd log on the deployment client I noticed that the IP address posted to the deployment server was an IP address of one of the host's network interfaces which did not have a route to the deployment server. When I restarted the splunk agent, the next phone home happened to post the correct IPv4 address having a valid route to the deployment server, and of course the apps downloaded.

How does the deployment client decide which ipv4 address (of possibly multiple) to present when phoning home?

2018-01-24: Initial submission
2018-12-09: bump1

0 Karma

rfaircloth_splu
Splunk Employee
Splunk Employee

The client IP is based on what the tcp layer of the server sees, it could be the NAT or proxy address instead of the actual client ip.

0 Karma

harsmarvania57
Ultra Champion

Hi,

To best of my knowledge it's based on Routing table present on OS.

For example: You have 2 interface eth0 and eth1, eth0 does not have route to Deployment Server on Switch/Firewall & eth1 has route present to pass traffic to Deployment Server and default route passing traffic from eth0 on OS and Deployment Server does not belong to eth0 or eth1 subnet.

In this case Forwarder will not able to fetch apps from Deployment Server because it will initiate connection from Forwarder to Deployment Server on default route which is eth0 and that subnet does not have route present to Deployment Server.

0 Karma
Get Updates on the Splunk Community!

Observability Unlocked: Kubernetes Monitoring with Splunk Observability Cloud

  Ready to master Kubernetes and cloud monitoring like the pros?Join Splunk’s Growth Engineering team for an ...

Wrapping Up Cybersecurity Awareness Month

October might be wrapping up, but for Splunk Education, cybersecurity awareness never goes out of season. ...

🌟 From Audit Chaos to Clarity: Welcoming Audit Trail v2

🗣 You Spoke, We Listened  Audit Trail v2 wasn’t written in isolation—it was shaped by your voices.  In ...