- 论坛徽章:
- 0
|
By default , the solaris inetd deamon does not log the IP address of the machines that are connecting to Solaris Server . To enable the logging of all the IP addresses of machines connecting to the server and the connection time the following changes can be incorporated\r\n\r\n1. cd /etc/init.d\r\n2. vi inetsvc\r\n3. Change the last line in the file, ie\r\n/usr/sbin/inetd -s &\r\nto /usr/sbin/inetd -s -t &\r\n\r\n4. Stop and Start that script\r\n\r\n./inetsvc stop\r\n./inetsvc start\r\n\r\n5. vi /etc/syslog.conf\r\n6 . Add the following line\r\ndeamon.notice /var/adm/name_of_log_file ( the two fields should be seperated by tabs )\r\n\r\n7. touch /var/adm/name_of_log_file\r\n8. kill -HUP syslogd\r\n\r\nAfter these changes are made all connections that are started through the inetd deamon ( Telnet , FTP ) etc will be logged to the new file created\r\n\r\nThis is also very useful for auditing purposes with NTP protocol enabled which gives us a consistent time throughout the enterprise, accountability can be implemented in the organisation. |
|