System Administration Guide: IP Services

How to Log the IP Addresses of All Incoming TCP Connections

  1. Become superuser.

  2. Turn logging on by editing the /etc/default/inetd file by adding the following line:


    ENABLE_CONNECTION_LOGGING=YES

    Note –

    If the previous line already exists with a comment symbol, then you can just delete the comment symbol.


  3. Kill the inetd daemon.

  4. Restart the inetd daemon.

See System Administration Guide: Naming and Directory Services (DNS, NIS, and LDAP) and System Administration Guide: Naming and Directory Services (FNS and NIS+) for further information on name services.