<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Running UNIX &#187; auditing</title>
	<atom:link href="http://www.runningunix.com/tag/auditing/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.runningunix.com</link>
	<description>UNIX/Solaris tips, tricks, and advice</description>
	<lastBuildDate>Mon, 01 Aug 2011 17:37:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Solaris Security Tip: inetd Connection Logging</title>
		<link>http://www.runningunix.com/2009/01/solaris-security-tip-inetd-connection-logging/</link>
		<comments>http://www.runningunix.com/2009/01/solaris-security-tip-inetd-connection-logging/#comments</comments>
		<pubDate>Wed, 14 Jan 2009 05:30:55 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris]]></category>
		<category><![CDATA[UNIX]]></category>
		<category><![CDATA[auditing]]></category>
		<category><![CDATA[inetd]]></category>
		<category><![CDATA[logging]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://www.runningunix.com/?p=151</guid>
		<description><![CDATA[It&#8217;s maybe not the first thing I&#8217;d do to lock down a server, but this is a worthwhile bit to change if you use any inetd services (ftp, telnet, remsh, finger, talk, etc). In addition to the OS-related inetd services mentioned, many applications will add their own, broadening your exposure to vulnerabilities across different vendor [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s maybe not the first thing I&#8217;d do to lock down a server, but this is a worthwhile bit to change if you use any inetd services (ftp, telnet, remsh, finger, talk, etc). In addition to the OS-related inetd services mentioned, many applications will add their own, broadening your exposure to vulnerabilities across different vendor products.</p>
<p>When any type of network connection is made to your servers, it&#8217;s important to know the source of the connection &#8211; where that connection originated. Yes, many hackers will use a proxy or bounce host or hosts to hide their true IP, but at least this information can give you a place to start if you needed to track them. This becomes even more useful in company-internal incidents where users are less able to hide.</p>
<p>TCP Wrappers has been around for ages. It&#8217;s a mechanism to allow or deny access to any inetd service, based upon the connecting IP address or host name. It used to be a more difficult to use &#8211; one had to download source, compile, install, configure, etc. But these days it&#8217;s built into many inetd variants, including Solaris.</p>
<p>Just for connection logging, we don&#8217;t necessarily need to set up TCP Wrappers to deny/allow hosts to connect based on IP or host name, so we&#8217;ll skip that part. If you want to go the extra mile and set this up, you configure the hosts.allow and hosts.deny files in /etc. Google around, it&#8217;s easy to find a howto.</p>
<p>With the SMF-based inetd in Solaris 10, it&#8217;s easy to turn on TCP wrappers for just one service or all services at once. If you just wanted to enable wrappers/logging for the FTP service, you&#8217;d change the properties of the FTP inetd service with inetadm:</p>
<blockquote><p># inetadm -m ftp tcp_wrappers=true</p></blockquote>
<p>Or, to change the default value for ALL inetd services, you&#8217;d use the -M option:</p>
<blockquote><p># inetadm -M tcp_wrappers=true</p></blockquote>
<p>When this change is made, a log entry will be made, usually in /var/log/syslog, unless you&#8217;ve changed your syslog configuration:</p>
<blockquote><p>Jan 13 08:56:52 waters vnetd[26111]: [ID 927837 daemon.info] connect from rocky<br />
Jan 13 09:00:26 waters in.rshd[28426]: [ID 927837 daemon.info] connect from hungryhippo<br />
Jan 13 09:17:25 waters in.rshd[8174]: [ID 927837 daemon.info] connect from penta<br />
Jan 13 09:24:19 waters in.telnetd[12414]: [ID 927837 daemon.info] connect from 192.168.151.95<br />
Jan 13 09:35:17 waters in.ftpd[23954]: [ID 927837 daemon.info] connect from mercury</p></blockquote>
<p>In Solaris 8, you&#8217;d accomplish this same goal by altering your inetd start script, /etc/init.d/inetsvc:<br />
just add the -t option to the last line:</p>
<blockquote><p>/usr/sbin/inetd -s -t &amp;</p></blockquote>
<p><a class="a2a_dd a2a_target addtoany_share_save" href="http://www.addtoany.com/share_save#url=http%3A%2F%2Fwww.runningunix.com%2F2009%2F01%2Fsolaris-security-tip-inetd-connection-logging%2F&amp;title=Solaris%20Security%20Tip%3A%20inetd%20Connection%20Logging" id="wpa2a_2"><img src="http://www.runningunix.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share"/></a></p>]]></content:encoded>
			<wfw:commentRss>http://www.runningunix.com/2009/01/solaris-security-tip-inetd-connection-logging/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>

