Is it possible to chain more than one proxy?
The answer is yes.
We just need to configure the proxies pointing to the next proxy. Here are the parameters that should be used for its configuration.
server_ip: IP of the Pandora FMS Server.
proxy_mode: Enabled (1) or diabled (0).
proxy_max_connection: Maximum number of simultaneous connections for the proxy. The default value is ’10’.
proxy_timeout: Proxy timemout. The default value is ‘1’ (in seconds).
proxy_address: Address in which the proxy listens.
proxy_port: Port in which the proxy listens.
Let’s take an example:
We want our software agents (that are not proxies) to point to our Pandora FMS server, but just there are 2 or more networks between our network, which will cut us the connection but we can have a couple of proxy agents in those networks to make a bridge between the software agents and our server.
Diagram:
Software Agents –> Proxy 1 –> Proxy 2 –> Pandora FMS Server.
The software agents will point to the Proxy 1 with IP 192.168.20.40.
Proxy agent 1 will point to Proxy 2 with IP 192.168.60.120.
Finally the Proxy agent 2 will point to Pandora FMS server with IP 192.168.100.230.
Configurations of both proxies (according to our example).
Proxy 1:
server_ip 192.168.60.120
proxy_mode 1
proxy_max_connection 20
proxy_timeout 3
proxy_address 0.0.0.0
proxy_port 41121
Proxy 2:
server_ip 192.168.100.230
proxy_mode 1
proxy_max_connection 20
proxy_timeout 3
proxy_address 0.0.0.0
proxy_port 41121
(!) Both proxies will listen on IP 0.0.0.0.0 and port 41121.