Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I am installing OSSEC and it says that i need to open port 1514 and 514 in firewall.

Now i have added the rule for port 1514 but i still can't get coonect if i use telney like

ossec-hids-2.5]# telnet 192.168.1.95 1514
Trying 192.168.1.95...
telnet: connect to address 192.168.1.95: Connection refused
telnet: Unable to connect to remote host: Connection refused

Now i have turned off the iptables but still i can connect. Does it mean that Telent can't be used for port checking

share|improve this question

1 Answer 1

up vote 0 down vote accepted

If you get Connection refused it is likely that the firewall is opened, the problem would be that the service is not running on 192.168.1.95:1514.

If the service is actually running, please post the output of

  iptables -L -n

telnet can be used for (TCP) port checking.

share|improve this answer
    
I have turned off the firewall and hosts.aloow is also all. Also even if the service is not running should't i still get connected. –  John Oct 7 '10 at 1:33
    
No, if a service doesn't bind to the port 1514 server side, the OS will return an error that will make the client display connection refused - if you just want to test the connectivity to that port you shoul run a working service that binds to that port (or inetd.conf / xinet.d that will establish the connection then transfer to an application [eg telnetd]. The service configuration has to be changed a bit to accept connections on that port). –  ring0 Oct 7 '10 at 5:38

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.