PaXa
02-02-2010, 12:56
Hello,
There is a need to determine from agentd that remote host:port is
1) Open
2) Closed (host is not listening)
3) Blocked (on the way by Firewall)
All these conditions should be checked using single item. Item 3) is a challenge at the moment. I know this can be determined using exit code of *NIX telnet (as I recall if Connection is refused - port is simply closed and if Timeout - blocked, etc)
I had difficulties with net.tcp.port and net.tcp.service - they simply does not return any value for port that I know is blocked.
I appreciate your feedback. Thanks.
There is a need to determine from agentd that remote host:port is
1) Open
2) Closed (host is not listening)
3) Blocked (on the way by Firewall)
All these conditions should be checked using single item. Item 3) is a challenge at the moment. I know this can be determined using exit code of *NIX telnet (as I recall if Connection is refused - port is simply closed and if Timeout - blocked, etc)
I had difficulties with net.tcp.port and net.tcp.service - they simply does not return any value for port that I know is blocked.
I appreciate your feedback. Thanks.