Changes between Version 11 and Version 12 of sysadminiptables


Ignore:
Timestamp:
Jun 22, 2009, 2:38:27 PM (13 years ago)
Author:
risard
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • sysadminiptables

    v11 v12  
    147147}}}
    148148
    149 Things to check in the output include:
    150   ||
     149On a typical machine running a webserver the above command should return a line like:
     150{{{
     151    tcp        0      0 0.0.0.0:5432      0.0.0.0:*               LISTEN
     152}}}
     153
     154The important things here are:
     155  1. The protocol is correct - tcp.  If tcp6 is running for example (IPv6) then the connection will not likely work.
     156  2. The service is listening on the correct ip.  If the entry was 127.0.0.1:5432 you wouldn't get a connection because it's only listening to the localhost.  0.0.0.0:5432 or the machine's public IP are acceptable.
     157  3. The service is listening for connections from where ever you're trying to connect from.  In this case it will take a connection from  anywhere (0.0.0.0:*).  It's important to ensure that the machine isn't listening for a connections from a specific machine (ie. 10.0.0.2:*) or if it is, then it's the machine you're trying to connect from.
     158  4. The port is actually in the LISTEN state.
     159
     160If netstat checks out and you still can't connect to the service you think you should be connecting to on that port, check to see if the service is in fact running with;
     161
     162{{{
     163   ps aux | grep 80
     164}}}
     165