System Administration Guide: IP Services

How to Use TCP Wrappers to Control Access to TCP Services

  1. Become superuser.

  2. Turn TCP Wrappers on by editing the /etc/default/inetd file by adding the following line.


    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.

  5. Configure the TCP Wrappers access control policy as described in the hosts_access(4) man page.