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
Got questions? Get answers!

Join the Splunk Community Slack to learn, troubleshoot, and make connections with fellow Splunk practitioners in real time!

Meet up IRL or virtually!

Join Splunk User Groups to connect and learn in-person by region or remotely by topic or industry.

Get Updates on the Splunk Community!

Index This | What travels the world but is also stuck in place?

April 2026 Edition  Hayyy Splunk Education Enthusiasts and the Eternally Curious!   We’re back with this ...

Discover New Use Cases: Unlock Greater Value from Your Existing Splunk Data

Realizing the full potential of your Splunk investment requires more than just understanding current usage; it ...

Continue Your Journey: Join Session 2 of the Data Management and Federation Bootcamp ...

As data volumes continue to grow and environments become more distributed, managing and optimizing data ...