<?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>ItsyourIP.com &#187; Solaris</title>
	<atom:link href="http://www.itsyourip.com/category/solaris/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.itsyourip.com</link>
	<description>Your gateway to Internet</description>
	<lastBuildDate>Sat, 24 Jan 2009 16:48:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
<image>
<link>http://www.itsyourip.com</link>
<url>http://www.itsyourip.com/wp-content/mbp-favicon/Internet-Alt.ico</url>
<title>ItsyourIP.com</title>
</image>
		<item>
		<title>Solaris Security &#8211; Disable ICMP Redirect in Sun Solaris</title>
		<link>http://www.itsyourip.com/Security/solaris-security-disable-icmp-redirect-in-sun-solaris/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=solaris-security-disable-icmp-redirect-in-sun-solaris</link>
		<comments>http://www.itsyourip.com/Security/solaris-security-disable-icmp-redirect-in-sun-solaris/#comments</comments>
		<pubDate>Wed, 12 Dec 2007 22:34:05 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Solaris]]></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[sun-solaris]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/Security/solaris-security-disable-icmp-redirect-in-sun-solaris/</guid>
		<description><![CDATA[Solaris Operating Environment by default is configured to both accept and send&#160; 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 [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>Solaris Operating Environment by default is configured to both accept and send&nbsp; 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-127"></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 &quot;0&quot; indicates that the host is configured to accept ICMP Redirect messages and &quot;1&quot; 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 &quot;1&quot; indicates that the host is configured to send ICMP Redirect messages and &quot;0&quot; 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>
<p>Did you like it? Why not leave us a comment??</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2FSecurity%2Fsolaris-security-disable-icmp-redirect-in-sun-solaris%2F';
  addthis_title  = 'Solaris+Security+%26%238211%3B+Disable+ICMP+Redirect+in+Sun+Solaris';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/Security/solaris-security-disable-icmp-redirect-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Add or Edit the DNS servers in Sun Solaris</title>
		<link>http://www.itsyourip.com/dns/howto-add-or-edit-the-dns-servers-in-sun-solaris/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=howto-add-or-edit-the-dns-servers-in-sun-solaris</link>
		<comments>http://www.itsyourip.com/dns/howto-add-or-edit-the-dns-servers-in-sun-solaris/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 20:46:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[DNS]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[domain]]></category>
		<category><![CDATA[nameserver]]></category>
		<category><![CDATA[resolver]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/dns/howto-add-or-edit-the-dns-servers-in-sun-solaris/</guid>
		<description><![CDATA[Domain Name Service (DNS) is a system which translates the meaningful Hostnames and Domain Names into valid IP Addresses. A DNS Client or a Resolver is a host or a network device which queries the DNS servers for various resource records like the IP Address for a host like a Mail Server. If you configure [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>Domain Name Service (DNS) is a system which translates the meaningful Hostnames and Domain Names into valid IP Addresses. A DNS Client or a Resolver is a host or a network device which queries the DNS servers for various resource records like the IP Address for a host like a Mail Server.</p>
<p><span id="more-110"></span></p>
<p>If you configure your Solaris Server as a DNS client then you need to add the DNS servers which the resolver on the server query for various DNS records in the file</p>
<p><strong>/etc/resolv.conf</strong></p>
<p>The following is an example of a sample <em>/etc/resolv.conf</em></p>
<p><strong>$ cat /etc/resolv.conf</strong></p>
<p><font color="#339900">domain example.com<br /> nameserver 10.10.10.1<br /> nameserver 10.10.10.2<br /> nameserver 10.10.10.3</font></p>
<p><font color="#339900">search example.com example.co.uk example.net</font></p>
<p>where</p>
<p><strong>domain</strong> &#8211; specifies the local domain. A search for a host in the domain can simply be done with the hostname without the Domain suffix.</p>
<p><strong>nameserver</strong> &#8211; specifies the IP Address to it as a DNS server. There can be more than one DNS server specified by the nameserver keyword (one per line) listed in the file.</p>
<p><strong>search</strong> &#8211; specifies a list of local domains to search for the hosts. This process is slow and generates a lot of traffic.</p>
<p>This is the most commonly found configuration on DNS clients or Resolvers. More advanced configurations include</p>
<p><strong>sortlist</strong> &#8211; Sort the IP Addresses returned to the resolver<br /> <strong>options</strong> -&nbsp; Allows additional configurations to modify resolver variables.</p>
<p>For a detailed man page, <a href="http://docs.sun.com/app/docs/doc/816-1058/6m7gjuj5k?a=view" target="_blank" title="Sun Solaris /etc/resolv.conf Man page">click here</a></p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fdns%2Fhowto-add-or-edit-the-dns-servers-in-sun-solaris%2F';
  addthis_title  = 'HowTo%3A+Add+or+Edit+the+DNS+servers+in+Sun+Solaris';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/dns/howto-add-or-edit-the-dns-servers-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HowTo: Change Default Gateway or Default Router in Sun Solaris</title>
		<link>http://www.itsyourip.com/networking/howto-change-the-default-gateway-or-default-router-in-sun-solaris/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=howto-change-the-default-gateway-or-default-router-in-sun-solaris</link>
		<comments>http://www.itsyourip.com/networking/howto-change-the-default-gateway-or-default-router-in-sun-solaris/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 19:06:21 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[default-gateway]]></category>
		<category><![CDATA[default-router]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/networking/howto-change-the-default-gateway-or-default-router-in-sun-solaris/</guid>
		<description><![CDATA[The Default Gateway or the Default Router is the IP address (IPv4) to which all the traffic to any target destination(s) which does not have a route in the Routing Table of the server will be forwarded. This Default Gateway is maintained in the file /etc/defaultrouter [IPv4 only] This IP Address should be in the [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>The Default Gateway or the Default Router is the IP address (IPv4) to which all the traffic to any target destination(s) which does not have a route in the Routing Table of the server will be forwarded.</p>
<p>This Default Gateway is maintained in the file</p>
<p><strong>/etc/defaultrouter</strong> [IPv4 only]</p>
<p><span id="more-109"></span></p>
<p>This IP Address should be in the same network or the subnet as that of the server itself.</p>
<p>If you wish to add or edit the Default Gateway or the Default Router in Sun Solaris, edit /etc/defaultrouter file and update the IP Address. One entry per line for one or more default gateways (very unlikely to have muktiple default gateways).</p>
<p>This file is read at the boot time and hence the server needs to be rebooted for the changes to take effect.</p>
<p>Instead of rebooting the server, update the Kernel IP Routing table first by deleting the existing Default Gateway or Default Router (if any) and then adding the new IP address.</p>
<p>To view the existing Kernel IP Routing table,</p>
<p><strong># netstat -rn</strong></p>
<p><font color="#336666">Routing Table: IPv4<br /> &nbsp; Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags&nbsp; Ref&nbsp;&nbsp;&nbsp;&nbsp; Use&nbsp;&nbsp;&nbsp;&nbsp; Interface<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212;&#8212;- &#8212;&#8212;&#8212;<br /> 192.168.1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 195 hme0<br /> 224.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.10&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 hme0<br /> default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 325<br /> 127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UH&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 5&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 92 lo0</font></p>
<p>Now, remove the dexisting default gateway;</p>
<p><strong># route delete default 172.1.1.1</strong></p>
<p>Add the new Default Gateway using:</p>
<p><strong># route add default 192.168.1.1</strong></p>
<p>This should help. For a detailed Man Page for /etc/defaultrouter <a href="http://docs.sun.com/app/docs/doc/819-2251/defaultrouter-4?l=en&amp;a=view&amp;q=defaultrouter" target="_blank" title="Sun Solaris /etc/defaultrouter Man Page">click here</a>.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fnetworking%2Fhowto-change-the-default-gateway-or-default-router-in-sun-solaris%2F';
  addthis_title  = 'HowTo%3A+Change+Default+Gateway+or+Default+Router+in+Sun+Solaris';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/networking/howto-change-the-default-gateway-or-default-router-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>HowTo: Change IP Address in Solaris 10 without reboot</title>
		<link>http://www.itsyourip.com/networking/howto-change-ip-address-in-solaris-10/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=howto-change-ip-address-in-solaris-10</link>
		<comments>http://www.itsyourip.com/networking/howto-change-ip-address-in-solaris-10/#comments</comments>
		<pubDate>Tue, 20 Nov 2007 14:13:44 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[ip-address]]></category>
		<category><![CDATA[solaris-10]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/networking/howto-change-ip-address-in-solaris-10/</guid>
		<description><![CDATA[Adding or editing the IP address on a Solaris 10 server is different from the previous versions of the OS (Solaris 9, Solaris 8 etc). In the previous versions of the Solaris Operating System, you need to edit the /etc/hosts file and add/edit the entry for the IP address and the hostname. Example: 192.168.1.1&#160;&#160; sun1 [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>Adding or editing the IP address on a Solaris 10 server is different from the previous versions of the OS (Solaris 9, Solaris 8 etc).</p>
<p>In the previous versions of the Solaris Operating System, you need to edit the <strong>/etc/hosts</strong> file and add/edit the entry for the IP address and the hostname.</p>
<p><span id="more-108"></span> </p>
<p><strong><u>Example:</u></strong></p>
<blockquote><p><em><font color="#990000">192.168.1.1&nbsp;&nbsp; sun1</font></em></p>
</blockquote>
<p>However, in Solaris 10, you should edit the <strong>/etc/hosts</strong> file (a symlink to <strong>/etc/inet/hosts file</strong>) and the&nbsp; <strong>/etc/inet/ipnodes</strong> file and add an entry for IP address and hostname.</p>
<p>Once done, restart the Network service using</p>
<blockquote><p><strong># svcadm restart network/physical</strong></p>
</blockquote>
<p>or reboot the server for the changes to take effect.</p>
<p>Although, the /etc/inet/ipnodes files is primarily for IPv6 only, without adding an entry to the file, the IP address (IPv4) doesn&#39;t become active. This seems to be a known problem but the good news is this is now fixed in the Solaris 10 U4 (08/07 build).</p>
<p>Also, ensure that the /etc/netmasks file with the network ID and the netmask.</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fnetworking%2Fhowto-change-ip-address-in-solaris-10%2F';
  addthis_title  = 'HowTo%3A+Change+IP+Address+in+Solaris+10+without+reboot';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/networking/howto-change-ip-address-in-solaris-10/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>HowTo: Add a Static Route (persistent) in Sun Solaris</title>
		<link>http://www.itsyourip.com/networking/howto-add-a-static-route-persistent-in-sun-solaris/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=howto-add-a-static-route-persistent-in-sun-solaris</link>
		<comments>http://www.itsyourip.com/networking/howto-add-a-static-route-persistent-in-sun-solaris/#comments</comments>
		<pubDate>Wed, 07 Nov 2007 18:03:58 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[route]]></category>
		<category><![CDATA[static]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/networking/howto-add-a-static-route-persistent-in-sun-solaris/</guid>
		<description><![CDATA[To add a Static Route in Sun Solaris operating system, you can use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening, add a startup script S76static-routes with all the route commands for the static route [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#content_336_280-->
<p>To add a Static Route in Sun Solaris operating system, you can use the route command. This will dynamically update the Kernel IP Routing table. However, when a server is restarted, these routes will be lost. To prevent this from happening, add a startup script S76static-routes with all the route commands for the static route that needs to persist. This will ensure that the route gets added at boot time.</p>
<p><span id="more-92"></span></p>
<p>To use the <strong>route</strong> command,</p>
<p><strong>Syntax:</strong></p>
<blockquote><p><strong># route add [net|host] &lt;Addr&gt; netmask &lt;Mask&gt; [GatewayAddr|-interface ] &lt;metric&gt;</strong></p>
</blockquote>
<p><strong>Example:</strong></p>
<p>Add a network</p>
<blockquote><p><strong># route add net 10.10.10.0 netmask 255.255.255.0 192.168.1.1 1</strong></p>
</blockquote>
<p>same as</p>
<blockquote><p><strong># route add 10.10.10.0/24 192.168.1.1 1</strong></p>
</blockquote>
<p>Add a host</p>
<blockquote><p><strong># route add host 1.1.1.1 netmask 255.255.255.0 192.168.1.1 1</strong></p>
</blockquote>
<p>same as</p>
<blockquote><p><strong># route add 1.1.1.1/24 192.168.1.1 1</strong></p>
</blockquote>
<p>To route the traffic through an interface instead of an IP Gateway</p>
<blockquote><p><strong># route add 1.1.1.1/24 -interface hme0</strong></p>
</blockquote>
<p>To check that the roots are added to Kernel IP Routing table,</p>
<blockquote><p><strong># netstat -rn</strong></p>
<p>Routing Table: IPv4<br /> &nbsp; Destination&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Gateway&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Flags&nbsp; Ref&nbsp;&nbsp; Use&nbsp;&nbsp; Interface<br /> &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; &#8212;&#8211; &#8212;&#8211; &#8212;&#8212; &#8212;&#8212;&#8212;<br /> 192.168.1.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; U&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; 273&nbsp; hme0<br /> 224.0.0.0&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp; U&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0&nbsp;&nbsp; hme0<br /> default&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 192.168.1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; UG&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 1&nbsp;&nbsp;&nbsp; 196</p>
</blockquote>
<p><strong><u>Static Routes at boot time</u></strong></p>
<p>To make the routes available at boot time so the next time when the server reboots, the routes are still available. Add a startup script named as</p>
<blockquote><p><strong>/etc/rc2.d/S76static-routes</strong></p>
</blockquote>
<p>and add the required route commands as above.</p>
<p>Change the permissions for the file so that the file is executable by root.</p>
<blockquote><p><strong># chmod 744 /etc/rc2.d/S76static-routes</strong></p>
</blockquote>
<p>This should help.</p>
<p>Have I missed something? Have I made a mistake? please let me know by leaving a comment!</p>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fnetworking%2Fhowto-add-a-static-route-persistent-in-sun-solaris%2F';
  addthis_title  = 'HowTo%3A+Add+a+Static+Route+%28persistent%29+in+Sun+Solaris';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/networking/howto-add-a-static-route-persistent-in-sun-solaris/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Disable IP Forwarding in Solaris Operating System</title>
		<link>http://www.itsyourip.com/networking/disable-ip-forwarding-in-solaris-operating-system/?utm_source=rss&amp;utm_medium=rss&amp;utm_campaign=disable-ip-forwarding-in-solaris-operating-system</link>
		<comments>http://www.itsyourip.com/networking/disable-ip-forwarding-in-solaris-operating-system/#comments</comments>
		<pubDate>Mon, 29 Oct 2007 18:40:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[forwarding]]></category>
		<category><![CDATA[ip]]></category>
		<category><![CDATA[ndd]]></category>
		<category><![CDATA[packet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[sun]]></category>

		<guid isPermaLink="false">http://www.itsyourip.com/networking/disable-ip-forwarding-in-solaris-operating-system/</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 [...]]]></description>
			<content:encoded><![CDATA[<div class="KonaBody"><p><!--adsense#Referral-->
<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-86"></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>
<script type="text/javascript">
  addthis_url    = 'http%3A%2F%2Fwww.itsyourip.com%2Fnetworking%2Fdisable-ip-forwarding-in-solaris-operating-system%2F';
  addthis_title  = 'Disable+IP+Forwarding+in+Solaris+Operating+System';
  addthis_pub    = '';
</script><script type="text/javascript" src="http://s7.addthis.com/js/addthis_widget.php?v=12" ></script>
</div><!-- KonaBody -->]]></content:encoded>
			<wfw:commentRss>http://www.itsyourip.com/networking/disable-ip-forwarding-in-solaris-operating-system/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
