<?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>Sun Solaris System Admin &#187; security</title>
	<atom:link href="http://www.sunsolarisadmin.com/tag/security/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.sunsolarisadmin.com</link>
	<description>Sun Solaris HowTo's Tips Tricks Tutorials</description>
	<lastBuildDate>Wed, 21 Sep 2011 19:57:59 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<image>
<link>http://www.sunsolarisadmin.com</link>
<url>http://www.sunsolarisadmin.com/wp-content/mbp-favicon/favicon.ico</url>
<title>Sun Solaris System Admin</title>
</image>
		<item>
		<title>Reduce ARP caching time in Sun Solaris using ndd</title>
		<link>http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=reduce-arp-caching-time-in-sun-solaris-using-ndd</link>
		<comments>http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/#comments</comments>
		<pubDate>Thu, 24 Apr 2008 18:02:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[ARP]]></category>
		<category><![CDATA[ARP-table]]></category>
		<category><![CDATA[attacks]]></category>
		<category><![CDATA[cache]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/</guid>
		<description><![CDATA[ARP attacks are the easiest attacks that can be launched on a network or a Server causing a Denial of Service. One of those things that can be done on the Sun Solaris Operating System is to alter the caching time for the ARP cache whch reduces the time that a rogue ARP entry stays <a href='http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div><br />
ARP attacks are the easiest attacks that can be launched on a network or a Server causing a Denial of Service. One of those things that can be done on the Sun Solaris Operating System is to alter the caching time for the ARP cache whch reduces the time that a rogue ARP entry stays in the ARP table. While this is not fool proof but can certainly make it that extra difficult to the hacker.</p>
<p>The default time that ARP entries are cached in a Sun Solaris system is 5 mins.</p>
<p><span id="more-48"></span></p>
<p>However, this can be reduced to lower level (say 3mins). This means that the number of ARP requests and ARP replies to and from the server will increase as a result. So, before modifying the caching time, check if this can cause andy congestion on your network.</p>
<p>To set the ARP cache time period</p>
<blockquote><p><strong>solaris# ndd -set /dev/arp arp_cleanup_interval 180000</strong></p></blockquote>
<p>The above command sets the interval to 3 minutes (1min is equal to 60000ms). Now, all the ARP entries are flushed at a faster rate (every 3mins)</p>
<p>For this change to persist across reboots, add this command onto the init scripts in /etc/rc2.d directory for your network interface (where all the required ndd commands are run).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/security/reduce-arp-caching-time-in-sun-solaris-using-ndd/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Disable ICMP Redirect in Sun Solaris for Security</title>
		<link>http://www.sunsolarisadmin.com/security/disable-icmp-redirect-in-sun-solaris-for-security/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-icmp-redirect-in-sun-solaris-for-security</link>
		<comments>http://www.sunsolarisadmin.com/security/disable-icmp-redirect-in-sun-solaris-for-security/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 19:48:38 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[icmp-redirect]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[nddconfig]]></category>
		<category><![CDATA[routing-table]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun-solaris]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/security/disable-icmp-redirect-in-sun-solaris-for-security/</guid>
		<description><![CDATA[Solaris Operating Environment by default is configured to both accept and send  the ICMP Redirect messages. According to RFCs, only a router or a gateway device should send an ICMP Redirect message and any other hosts should only be able to receive the ICMP Redirects. If the Solaris server is not acting as a Router <a href='http://www.sunsolarisadmin.com/security/disable-icmp-redirect-in-sun-solaris-for-security/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><div style="float: left"><script type="text/javascript"><!--
google_ad_client = "pub-6220434432369569";
/* sunsoladm_336x280_post */
google_ad_slot = "5048319182";
google_ad_width = 336;
google_ad_height = 280;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></div></p>
<p>Solaris Operating Environment by default is configured to both accept and send  the ICMP Redirect messages. According to RFCs, only a router or a gateway device should send an ICMP Redirect message and any other hosts should only be able to receive the ICMP Redirects. If the Solaris server is not acting as a Router or a Gateway then sending ICMP Redirect message should be disabled. The same applies to accepting ICMP Redirect messages if the solaris server is not required to receive ICMP Redirect messages (say a single Router/Gateway network/subnets scenario) as a malicous hacker could send fake ICMP redirect messages to modify the routing table on the host and potentialy cause a Denial of Service attack.</p>
<p><span id="more-35"></span></p>
<p><strong><u>Show and Disable ICMP Redirect message accept option</u></strong></p>
<p>To see if accepting ICMP Redirects are enabled in Solaris,</p>
<p>In <em>IPv4</em></p>
<p><strong>root@solaris# ndd -get /dev/ip ip_ignore_redirect<br />
0</strong></p>
<p>In <em>IPv6</em> then</p>
<p><strong>root@solaris# ndd -get /dev/ip ip6_ignore_redirect<br />
0</strong></p>
<p>The &#8220;0&#8243; indicates that the host is configured to accept ICMP Redirect messages and &#8220;1&#8243; indicates it is being disabled</p>
<p>To disable the ICMP Redirect accept option,</p>
<p><strong>In IPv4</strong></p>
<p><strong>root@solaris# ndd -set /dev/ip ip_ignore_redirect 1</strong></p>
<p>In <strong>IPv6</strong></p>
<p><strong>root@solaris# ndd -set /dev/ip ip6_ignore_redirect 1</strong></p>
<p><strong><u>Show and Disable ICMP Redirect message send option</u></strong></p>
<p>To see if sending ICMP Redirects are enabled in Solaris,</p>
<p>If you are using IPv4</p>
<p><strong>root@solaris# ndd -get /dev/ip ip_send_redirects<br />
1</strong></p>
<p>If you are using <strong>IPv6</strong> then</p>
<p><strong>root@solaris# ndd -get /dev/ip ip6_send_redirects<br />
1</strong></p>
<p>The &#8220;1&#8243; indicates that the host is configured to send ICMP Redirect messages and &#8220;0&#8243; indicates it is being disabled</p>
<p>To disable the option,</p>
<p><strong>In IPv4</strong></p>
<p><strong>root@solaris# ndd -set /dev/ip ip_send_redirects 0</strong></p>
<p>In IPv6</p>
<p><strong>root@solaris</strong><strong># ndd -set /dev/ip ip6_send_redirects 0</strong></p>
<p>The above ndd -set commands dynamically update the ICMP Redirect send/receive options on the host. However, to ensure that the settings are applied at the boot time (say the next time when the server reboots) then edit the startup script /etc/rc2.d/S69inet and modify values accordingly.</p>
<p>Alternatively, you can download the nddconfig script and install on your server. This script can be used to adjust most of the ndd parameters for security purpose.</p>
<p>The script can be downloaded here (need an Sunsolve account)</p>
<p><a href="http://www.sun.com/blueprints/tools/">http://www.sun.com/blueprints/tools/</a></p>
<p>To install the nddconfig script</p>
<p>Untar the downloaded nddconfig.tar file</p>
<p><strong>root@solaris# tar -xvf nddconfig.tar</strong></p>
<p>Copy the nddconfig file to /etc/init.d/ directory</p>
<p><strong>root@solaris# cp nddconfig /etc/init.d/nddconfig</strong></p>
<p>Change the file permissions to 744</p>
<p><strong>root@solaris</strong><strong># chmod 744 /etc/init.d/nddconfig</strong></p>
<p>Change the file ownership to root(user) and sys (grooup)</p>
<p><strong>root@solaris# chown root:sys /etc/init.d/nddconfig</strong></p>
<p>Create a hard link as follows:</p>
<p><strong>root@solaris</strong><strong># ln /etc/init.d/nddconfig /etc/rc2.d/S70nddconfig</strong></p>
<p>This should help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/security/disable-icmp-redirect-in-sun-solaris-for-security/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to disable IP Forwarding in Sun Solaris</title>
		<link>http://www.sunsolarisadmin.com/solaris-7/how-to-disable-ip-forwarding-in-sun-solaris/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=how-to-disable-ip-forwarding-in-sun-solaris</link>
		<comments>http://www.sunsolarisadmin.com/solaris-7/how-to-disable-ip-forwarding-in-sun-solaris/#comments</comments>
		<pubDate>Wed, 19 Mar 2008 19:36:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 7]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ndd]]></category>
		<category><![CDATA[packet]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-7/how-to-disable-ip-forwarding-in-sun-solaris/</guid>
		<description><![CDATA[IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface. While this is a job for the network router, Servers with multiple interfaces connected to different network can <a href='http://www.sunsolarisadmin.com/solaris-7/how-to-disable-ip-forwarding-in-sun-solaris/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>IP packet forwarding is the process of routing packets between network interfaces on one system. A packet arriving on one network interface and addressed to a host on a different network is forwarded to the appropriate interface. While this is a job for the network router, Servers with multiple interfaces connected to different network can perform this action as well. This behaviour as a router is a default in Sun Solaris Operating Systems.</p>
<p><span id="more-32"></span></p>
<p>If your Sun Solaris server has multiple interfaces and is not intended to route packets between the networks it is connected to, then it is advisable to disable this option. This can be a potential target for a malicious hacker as this can potentially allow the hacker access to the network at the other side.</p>
<p>To disable this packet forwarding in Solaris, simply create the file</p>
<p><strong>/etc/notrouter</strong></p>
<p>and reboot the server. However, if reboot is not an option at this time, then usee the NDD command to disble the option:</p>
<p>To display the current status</p>
<p><strong># ndd /dev/ip ip_forwarding<br />
1</strong></p>
<p><em>0 is Disabled<br />
1 is Enabled</em></p>
<p>To disable,</p>
<p><strong># ndd -set /dev/ip ip_forwarding 0</strong></p>
<p><strong>For IPv6</strong></p>
<p><strong># ndd -set /dev/ip6 ip6_forwarding 0</strong></p>
<p>This should disable. To confirm change,</p>
<p><strong><em># ndd /dev/ip ip_forwarding<br />
0</em></strong></p>
<p><strong><em># ndd /dev/ip6 ip6_forwarding<br />
0</em></strong></p>
<p>In Solaris 8 and later, IP forwarding can be enabled or disabled on a per interface basis. For example, if there are 3 hme NIC cards namely hme0,hme1,hme2 then assume, we allow IP Forwarding only from hme0 and disable on hme1 and hme2 then the following will help:</p>
<p><strong><em># ndd -set /dev/ip hme0:ip_forwarding 1<br />
# ndd -set /dev/ip hme1:ip_forwarding 0<br />
# ndd -set /dev/ip hme2:ip_forwarding 0</em></strong></p>
<p>This should help</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-7/how-to-disable-ip-forwarding-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>NFS Security &#8211; nfs_portmon to restrict client source port to privileged ports</title>
		<link>http://www.sunsolarisadmin.com/security/nfs-security-nfs_portmon-to-restrict-client-source-port-to-privileged-ports/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=nfs-security-nfs_portmon-to-restrict-client-source-port-to-privileged-ports</link>
		<comments>http://www.sunsolarisadmin.com/security/nfs-security-nfs_portmon-to-restrict-client-source-port-to-privileged-ports/#comments</comments>
		<pubDate>Thu, 24 Jan 2008 22:52:49 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[security]]></category>
		<category><![CDATA[]]></category>
		<category><![CDATA[network-file-system]]></category>
		<category><![CDATA[nfs]]></category>
		<category><![CDATA[nfs_portmon]]></category>
		<category><![CDATA[privileged-source-ports]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/security/nfs-security-nfs_portmon-to-restrict-client-source-port-to-privileged-ports/</guid>
		<description><![CDATA[Network File System (NFS) security in Sun Solaris can be enhanced by restricting the source ports for the client connections for NFS to be only privileged ports. The privileged port range is from 512 to 1023. Enabling this security feature for NFS in solaris, checks if the source ports from the clients from privilege ports. <a href='http://www.sunsolarisadmin.com/security/nfs-security-nfs_portmon-to-restrict-client-source-port-to-privileged-ports/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense--></p>
<p>Network File System (NFS) security in Sun Solaris can be enhanced by restricting the source ports for the client connections for NFS to be only privileged ports. The privileged port range is from 512 to 1023. Enabling this security feature for NFS in solaris, checks if the source ports from the clients from privilege ports. This prevents malicious users from gaining access to files exported/shared by the NFS server by preventing custom RPC based scripts or applications being used on unprivileged ports.</p>
<p><span id="more-28"></span></p>
<p>In Sun Solaris 10 this is enabled by default. In Solaris 9 and earlier, this can be enabled by simply editing the /etc/system file and adding an entry for nfs_portmon.</p>
<p><strong><u>Edit the /etc/system file</u></strong></p>
<blockquote><p><strong>sunsolaris# vi /etc/system</strong></p></blockquote>
<p>Add the following line</p>
<blockquote><p><strong><em>set nfssrv:nfs_portmon = 1</em></strong></p></blockquote>
<p>If you by any chance run Solaris 2.5 or earlier then</p>
<p><strong><em>set nfs:nfs_portmon = 1</em></strong></p>
<p>This change requires a reboot of the server for it to take effect.</p>
<p><strong><u>Reboot the server</u></strong></p>
<blockquote>
<blockquote><p><strong>sunsolaris# init 6</strong></p></blockquote>
</blockquote>
<p>When the server reboots, the changes take effect.</p>
<p>In Solaris 8 and later, run the following to confirm the change:</p>
<blockquote><p><strong>sunsolaris# adb -k</strong></p>
<p><strong>nfs_portmon /D</strong></p></blockquote>
<p>If this returns <strong>&#8220;1&#8243;</strong> indicates nfs_portmon is enabled else if it returns <strong>&#8220;0&#8243;</strong> indicates nfs_portmon is not enabled.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/security/nfs-security-nfs_portmon-to-restrict-client-source-port-to-privileged-ports/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Disable remote logging in Syslog daemon</title>
		<link>http://www.sunsolarisadmin.com/solaris-7/disable-remote-logging-in-syslog-daemon/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=disable-remote-logging-in-syslog-daemon</link>
		<comments>http://www.sunsolarisadmin.com/solaris-7/disable-remote-logging-in-syslog-daemon/#comments</comments>
		<pubDate>Thu, 10 Jan 2008 22:35:07 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Solaris 10]]></category>
		<category><![CDATA[Solaris 7]]></category>
		<category><![CDATA[Solaris 8]]></category>
		<category><![CDATA[Solaris 9]]></category>
		<category><![CDATA[denial-of-service]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[solaris]]></category>
		<category><![CDATA[svcadm]]></category>
		<category><![CDATA[syslog]]></category>

		<guid isPermaLink="false">http://www.sunsolarisadmin.com/solaris-7/disable-remote-logging-in-syslog-daemon/</guid>
		<description><![CDATA[Syslog daemon in Solaris by default is enabled for remote logging and will listen on UDP port 514 for syslog messages from remote systems. Unless, the server is acting as a remote logging server, this can be a Security issue as a malicious user can launch a Denial Of Service (DoS) attack on the server. To check if your <a href='http://www.sunsolarisadmin.com/solaris-7/disable-remote-logging-in-syslog-daemon/'>[...]</a>]]></description>
			<content:encoded><![CDATA[<p><!--adsense-->Syslog daemon in Solaris by default is enabled for remote logging and will listen on UDP port 514 for syslog messages from remote systems. Unless, the server is acting as a remote logging server, this can be a Security issue as a malicious user can launch a <strong>D</strong>enial <strong>O</strong>f <strong>S</strong>ervice (DoS) attack on the server.</p>
<p><span id="more-3"></span></p>
<p>To check if your syslog service is listening for remote logs,</p>
<blockquote><p># netstat -aP udp | grep syslog</p>
<p>*.syslog                            Idle</p></blockquote>
<p>This will show an output for syslog with status &#8220;idle&#8221;.</p>
<p>Unless a Server is as a Remote Central Logging server, it is recommended to disable Remote logging in Solaris.</p>
<p><strong><u><em>Solaris 8 &amp; Solaris 7</em></u></strong></p>
<p>In Solaris 8 and Solaris 7 edit the startup scripts to start the syslogd daemon in non-remote logging mode.</p>
<p>This can be done as follows:</p>
<p>Edit the /etc/init.d/syslog file using a editor like vi:</p>
<blockquote><p># vi /etc/init.d/syslog</p></blockquote>
<p>Replace the line,</p>
<blockquote><p>/usr/sbin/syslogd &gt;/dev/msglog 2&gt;&amp;1 &amp;</p></blockquote>
<p>with</p>
<blockquote><p>/usr/sbin/syslogd -t &gt;/dev/msglog 2&gt;&amp;1 &amp;</p></blockquote>
<p>NOTE: -t disables the Remote logging in syslogd</p>
<p>Save the file and restart the Sylogd daemon.</p>
<blockquote><p># /etc/init.d/syslog stop</p>
<p># /etc/init.d/syslog start</p></blockquote>
<p>To confirm, remote logging is disabled, try</p>
<blockquote><p># netstat -aP udp | grep syslog</p></blockquote>
<p>This should not show a line for syslog with status as &#8220;idle&#8221;.<br />
<strong><u><em>Solaris 9 </em></u></strong><br />
On Solaris 9, although the above procedure can work, this can be achieved by simply editing the /etc/default/syslogd using an editor like vi</p>
<blockquote><p># vi /etc/default/syslogd</p></blockquote>
<p>Change the line from</p>
<blockquote><p>#LOG_FROM_REMOTE=YES</p></blockquote>
<p>to</p>
<blockquote><p>LOG_FROM_REMOTE=NO</p></blockquote>
<p>Save the file and restart the Syslogd daemon</p>
<blockquote><p># /etc/init.d/syslog stop</p>
<p># /etc/init.d/syslog start</p></blockquote>
<p>Now,</p>
<blockquote><p>#netstat -aP|grep syslog</p></blockquote>
<p>should not show an entry for syslog with status &#8220;idle&#8221;<br />
<strong><u><em>Solaris 10</em></u></strong></p>
<p>In Solaris 10,</p>
<p>Repeat the above procedure to edit the /etc/default/syslogd and restart syslogd as follows:</p>
<blockquote><p># svcadm -v restart svc:/system/system-log</p>
<p>Action restart set for svc:/system/system-log:default</p></blockquote>
<p>This should help.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.sunsolarisadmin.com/solaris-7/disable-remote-logging-in-syslog-daemon/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

