using im_tcp as client (Connect mode instead of Listen Mode)

Tags:

#1 julienBourdon

Hi,

On output Module (om_tcp or om_ssl), "Listen" directives allow to configure output as a server : it will listen for incomming connection. On input Module (in_tcp or in_ssl), i don't find any "Connect" or "Listen->False" directives to configure input as a client... Why is it possible for output and not for input ?

We have a lot of server on DMZ Network and they can't connect to LAN Network for security reason.

What is the best way to do this ?

Thanks in advance, Best regards Julien.

#2 rafDeactivated Nxlog ✓
#1 julienBourdon
Hi, On output Module (om_tcp or om_ssl), "Listen" directives allow to configure output as a server : it will listen for incomming connection. On input Module (in_tcp or in_ssl), i don't find any "Connect" or "Listen->False" directives to configure input as a client... Why is it possible for output and not for input ? We have a lot of server on DMZ Network and they can't connect to LAN Network for security reason. What is the best way to do this ? Thanks in advance, Best regards Julien.

Hi Julien,

I can only guess that it would be the most common way one wants to use it - input listens for incoming data.

Quite an easy workaround would be preparing a simple script or even calling curl to get data from the resource you'd like to connect and put it into some temporary file and next, process it using im_file, and forward it to the output of your choice.

Best, Rafal