<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: CentOS 6 iptables blocking universal forwarder communication to deployment server &amp;quot;Couldn't complete HTTP request: Connection timed out&amp;quot; in Getting Data In</title>
    <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480108#M82336</link>
    <description>&lt;P&gt;Thanks FrankVI - given that if I disable iptables on the problem machine(s) then the set deploy-poll command works straight away it seems clear that iptables is at fault on the servers running UF not the deployment server. I don't have access to the console on the deployment server to check netstat etc but can get one of my colleagues to do so monday.&lt;/P&gt;

&lt;P&gt;I had added logging too using this command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo iptables -I INPUT 1 -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when checking the logs post another run of set deploy-poll command there is nothing ref dropped packets... nothing in logs at all come to that.&lt;/P&gt;

&lt;P&gt;cheers Tom&lt;/P&gt;</description>
    <pubDate>Fri, 08 Nov 2019 17:15:24 GMT</pubDate>
    <dc:creator>tfallon</dc:creator>
    <dc:date>2019-11-08T17:15:24Z</dc:date>
    <item>
      <title>CentOS 6 iptables blocking universal forwarder communication to deployment server "Couldn't complete HTTP request: Connection timed out"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480106#M82334</link>
      <description>&lt;P&gt;On a number of CentOS 6 machines which have long iptables rules with multiple chains (details can be provided if required) the UF can be installed ok however when running this command:&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/bin/splunk set deploy-poll &amp;lt;splunkdeploymentserver.fqdn:8089&amp;gt;
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;The command times out and eventually throws this warning/error&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Couldn't complete HTTP request: Connection timed out
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;On other CentOS 6 boxes still with iptables enabled but without the number of chains, the command works as expected. I've parsed the malfunctioning iptables rules and cannot see any conflict or reason for this to fail. Additionally adding specific rules for all ports both tcp and udp to the top of both the INPUT and OUTPUT chains makes no difference.&lt;/P&gt;

&lt;P&gt;And even more bizarrely I can telnet to the splunk deployment server over port 8089 successfully.....&lt;/P&gt;

&lt;P&gt;Runnin nmap from one of the affected clients shows ports open on the deployment server as follows&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;Starting Nmap 5.51 ( &lt;A href="http://nmap.org" target="test_blank"&gt;http://nmap.org&lt;/A&gt; ) at 2019-11-08 13:41 GMT
Nmap scan report for splunkdeployment.fqdn (ip-address)
Host is up (0.0017s latency).
Not shown: 65533 closed ports
PORT     STATE SERVICE
443/tcp  open  https
8089/tcp open  unknown
9997/tcp open  unknown
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;As soon as I disable iptables however i can run the set deploy-poll command successfully.&lt;/P&gt;

&lt;P&gt;Has anyone encountered this sort of behaviour before? &lt;/P&gt;

&lt;P&gt;cheers Tom&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 14:06:47 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480106#M82334</guid>
      <dc:creator>tfallon</dc:creator>
      <dc:date>2019-11-08T14:06:47Z</dc:date>
    </item>
    <item>
      <title>Re: CentOS 6 iptables blocking universal forwarder communication to deployment server "Couldn't complete HTTP request: Connection timed out"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480107#M82335</link>
      <description>&lt;P&gt;Sounds like your iptables somehow does allow the connection to be established (SYN/ACK packets), but does not allow data to be sent/returned? Perhaps check with netstat and tcpdump on the deploymentserver whether you do see connections getting established and see what happens after that.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 15:03:04 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480107#M82335</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-11-08T15:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: CentOS 6 iptables blocking universal forwarder communication to deployment server "Couldn't complete HTTP request: Connection timed out"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480108#M82336</link>
      <description>&lt;P&gt;Thanks FrankVI - given that if I disable iptables on the problem machine(s) then the set deploy-poll command works straight away it seems clear that iptables is at fault on the servers running UF not the deployment server. I don't have access to the console on the deployment server to check netstat etc but can get one of my colleagues to do so monday.&lt;/P&gt;

&lt;P&gt;I had added logging too using this command&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;sudo iptables -I INPUT 1 -m limit --limit 5/min -j LOG --log-prefix "iptables denied: " --log-level 7
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;But when checking the logs post another run of set deploy-poll command there is nothing ref dropped packets... nothing in logs at all come to that.&lt;/P&gt;

&lt;P&gt;cheers Tom&lt;/P&gt;</description>
      <pubDate>Fri, 08 Nov 2019 17:15:24 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480108#M82336</guid>
      <dc:creator>tfallon</dc:creator>
      <dc:date>2019-11-08T17:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: CentOS 6 iptables blocking universal forwarder communication to deployment server "Couldn't complete HTTP request: Connection timed out"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480109#M82337</link>
      <description>&lt;P&gt;You could check netstat/tcpdump also on the affected deployment clients if that is easier. Without having the actual ruleset it is a bit difficult to give any solutions other than suggestions on how to troubleshoot in more detail.&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2019 09:14:30 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480109#M82337</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-11-11T09:14:30Z</dc:date>
    </item>
    <item>
      <title>Re: CentOS 6 iptables blocking universal forwarder communication to deployment server "Couldn't complete HTTP request: Connection timed out"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480110#M82338</link>
      <description>&lt;P&gt;Hi FrankVI&lt;/P&gt;

&lt;P&gt;I tried the tcpdump approach and could not see any traffic at all to the deployment server either with iptables enabled or disabled. I tried pinpointing just port 8089 and there were no packets captured at all. So I think there is something else at play here possibly. &lt;/P&gt;

&lt;P&gt;All the deploy-poll commands failed not just the set command. I'd expect the set to fail if there was communication being blocked by the iptables rule but the show command also failed (and still does) if iptables is enabled.&lt;/P&gt;

&lt;P&gt;As a workaround I manually created this file&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;/opt/splunkforwarder/etc/system/local/deploymentclient.conf
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;With the following contents&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;[target-broker:deploymentServer]
targetUri = splunkdeployment.mydomain.com:8089
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;And the deployment client is now showing up on the deployment server as managed. I'm going to try the above workaround on the remaining problem machines and see how far that gets me - not ideal but if it works it works (and may help someone else finding this potentially).&lt;/P&gt;

&lt;P&gt;cheers Tom&lt;/P&gt;</description>
      <pubDate>Tue, 19 Nov 2019 23:15:34 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480110#M82338</guid>
      <dc:creator>tfallon</dc:creator>
      <dc:date>2019-11-19T23:15:34Z</dc:date>
    </item>
    <item>
      <title>Re: CentOS 6 iptables blocking universal forwarder communication to deployment server "Couldn't complete HTTP request: Connection timed out"</title>
      <link>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480111#M82339</link>
      <description>&lt;P&gt;Interesting. So it seems it is the splunk cli commands that are failing, not the actual DC -&amp;gt; DS communication. Could it be that the cli command, under the hood, performs some local rest call to the splunk daemon or so, which gets blocked by iptables (just wildly thinking out loud here)? Might be something to check with Splunk Support.&lt;/P&gt;

&lt;P&gt;Using config files instead of cli may not be a bad idea anyway for configuring the deployment client. By putting this config into a small app, you can even manage it from the DS later on, in case you want to tune the phone home interval, or even move clients to a different deployment server.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Nov 2019 08:16:49 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Getting-Data-In/CentOS-6-iptables-blocking-universal-forwarder-communication-to/m-p/480111#M82339</guid>
      <dc:creator>FrankVl</dc:creator>
      <dc:date>2019-11-20T08:16:49Z</dc:date>
    </item>
  </channel>
</rss>

