Welcome to Pandora FMS Community!

Find answers, ask questions, and connect with our community around the world.

Welcome to Pandora FMS Community Forums Community support Which port of server listen to agent?

  • Which port of server listen to agent?

    Posted by x_vag on November 15, 2006 at 18:01

    Hi there,

    I’d like to know which port of server listen to agent.
    Is there any difference on port listening between linux and windows agents?

    Thanks,
    Vagelis.

    daniels replied 15 years, 10 months ago 5 Members · 7 Replies
  • 7 Replies
  • raul

    Member
    November 15, 2006 at 23:54
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Hi there,

    I’d like to know which port of server listen to agent.
    Is there any difference on port listening between linux and windows agents?

    Thanks,
    Vagelis.

    None.

    The communication is made using SSH.
    The agents connect to Port 22 (SSH) of the server, they don’t open any port to listen.

    Raúl

  • MACscr

    Member
    April 8, 2009 at 02:33
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Im assuming then that the agents dont have to run as root or be accessed by root? Reason i ask is that if they did, then that would be that the monitoring server would have to have root access to every server in monitors. If thats the case, then if the monitoring server was compromised, then obviously that “hacker” would have root access to every server it monitors.

  • manu

    Member
    April 8, 2009 at 03:09
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    The agents don’t need to run as root, but keep in mind that maybe some checks you might want to do are only available with root privileges. It is totally up to you.
    Anyways, how would you compromise a bash script? The agents are just a bash script so it seems pretty hard for me to hack a bash script 🙂

    On the other hand, even if the servers are running as root, the server NEVER starts the communications to the agents, the agents do. So you cannot access agents machines from the server, from the CLI I mean.

  • MACscr

    Member
    April 8, 2009 at 03:49
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    My point is that the Pandora server communicates with those bash scripts through SSH, correct? So obviously the Pandora server has that authentication info. So if the Pandora server gets compromised, they have that ssh access to the servers that are being monitored as well. Does that make sense?

  • manu

    Member
    April 8, 2009 at 03:57
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    No, it does using Tentacle.

    And even more, if you want it to connect via SSH, only the agents can access the server, so the communication is done in this way:
    Agents->Server
    Not:
    Server -> Agent

    Moreover, the agent connects to the server using “pandora” as an user, never as root.

    The user pandora is still a risk (not as big as using root) that’s why we recommend (if you decide to go for SSH instead of Tentacle) installing scponly as a shell for the Pandora user:
    http://openideas.info/wiki/index.php?title=Pandora_1.3:Documentation_en:Advanced#SSH_server_securization

  • MACscr

    Member
    April 8, 2009 at 04:05
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    ok, thanks for the clarification. Since im new, i had nothing to go on except what Raul said. I will start reading more about Tentacle

  • daniels

    Member
    April 16, 2009 at 06:42
    0 Karma points
    Community rank: tentacle-noob-1 Tentacle noob
    Like it
    Up
    0
    Down
    Drop it
    ::

    Very intersting discussion. I was busy in the last days and absent from this forum. Now I’m back 😉

    I’m using pandora agents running as pandora user. It’s working pretty good. I have only one or two checks that need root access. For they, I use a cron (as root) to write the info into a file that pandora user is allowed to read. It’s not the “best” approach, but is working very well so far.

    Some info are available for any user, but few people know. For example, the ifconfig command can be used by any user, you just need to give the full path (eg: /sbin/ifconfig).

    The only thing that I still have to fix is the startup script. It works only with root.

    Regards.