System Administration Guide, Volume 3

How to Log the IP Addresses of All Incoming TCP Connections

  1. Become superuser.

  2. Kill the inetd daemon.

  3. Turn logging on by typing the following command:


    # /usr/sbin/inetd -t -s
    

    The t switch turns on TCP connection-tracing in inetd.

    Refer to the inetd(1M) and inetd.conf(4) man pages.

See Solaris Naming Administration Guide and Solaris Naming Setup and Configuration Guide for further information on name services.