<?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>AOIP - Anything Over IP &#187; SND</title>
	<atom:link href="http://www.anythingoverip.co.za/category/tutorials/course-content/snd/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.anythingoverip.co.za</link>
	<description>Anything Over IP</description>
	<lastBuildDate>Wed, 27 Jul 2011 05:24:51 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Configuring PAT on Cisco Routers (NAT Overload)</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload/#comments</comments>
		<pubDate>Wed, 20 Jul 2011 14:06:58 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[WAN]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=732</guid>
		<description><![CDATA[PAT (Port Address Translation) is by far the most common implementation of NAT, and if you have an ADSL router at home there is a 100% chance you are using it. PAT or otherwise known as NAT overload, allows you to translate IP addresses in a many-to-one method. In my previous post on Configuring Dynamic [...]]]></description>
			<content:encoded><![CDATA[<p>PAT (Port Address Translation) is by far the most common implementation of NAT, and if you have an ADSL router at home there is a 100% chance you are using it.</p>
<p>PAT or otherwise known as NAT overload, allows you to translate IP addresses in a many-to-one method.<br />
In my previous post on <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers">Configuring Dynamic NAT</a> we saw that we can NAT many-to-many  but this was limited by the amount of public addresses that you have available. In cases such as home ADSL, your ISP will only issue you with a single public IP address but you might have 2 or more devices that need to access the Internet at any given time. This is where PAT takes over and makes this all possible.</p>
<p>As with any NAT configuration we need to first define our inside and outside interfaces. In this example I&#8217;ll use FastEthernet 0/0 as my inside, and Serial 0 as my outside.</p>
<p>AOIP.ORG (config) # interface FastEthernet 0/0<br />
AOIP.ORG (config-if) # ip nat inside<br />
AOIP.ORG (config-if) # interface Serial 0<br />
AOIP.ORG (config-if) # ip nat outside</p>
<p>The next step is to define which addresses in my inside network I want to allow to be translated. Let&#8217;s assume my inside IP address range is 10.0.1.0 /24</p>
<p>AOIP.ORG (config) # access-list 1 permit 10.0.1.0 0.0.0.255  (Using a standard access-list is the easiest way to achieve this)</p>
<p>Then I need to configure the address that will be used by my internal IP addresses for accessing the outside interface. This can be done in 2 ways.</p>
<p><strong>Option 1:</strong><br />
If I only have 1 public IP address, which is the case with home ADSL, the router will already have that IP address allocated to it by your ISP. The only thing I can do is tell the router to share that address with my internal hosts.</p>
<p>AOIP.ORG (config) # ip nat inside source list 1 Serial 0 overload (This defines my access-list 1 as the source addresses, and tell them to be translated into the same IP address that is configured on Serial 0. The overload command tells the router that it needs to keep track of all the source and destination ports so the IP address can be used multiple times, overloaded)</p>
<p><strong>Option 2:</strong><br />
If I have a second public IP address that I would like to use for Internet browsing, I can configure PAT for that IP address.</p>
<p>AOIP.ORG (config) # ip nat inside source list 1 192.168.1.1 overload (Same as the above command, but I&#8217;ve specifically told the router which IP address to translate my internal hosts into)</p>
<p>This option is fantastic if you have multiple public addresses and you want to segment your Internet browsing based on departments or geographic locations. For example<br />
Marketing &#8211; 10.1.0.0 /24<br />
Sales &#8211; 10.2.0.0 /24<br />
Technical &#8211; 10.3.0.0 /24</p>
<p>I can have each of the above departments using their own public IP address, which will make log files easier to read when tracking Internet use and for troubleshooting connection errors.</p>
<p>access-list 2 permit 10.1.0.0 0.0.0.255<br />
access-list 3 permit 10.2.0.0 0.0.0.255<br />
access-list 4 permit 10.3.0.0 0.0.0.255<br />
ip nat inside source list 2 192.168.1.2 overload<br />
ip nat inside source list 3 192.168.1.3 overload<br />
ip nat inside source list 4 192.168.1.4 overload</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers/' rel='bookmark' title='Permanent Link: Configuring Dynamic NAT on Cisco Routers'>Configuring Dynamic NAT on Cisco Routers</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers/' rel='bookmark' title='Permanent Link: Configuring Static NAT on Cisco Routers'>Configuring Static NAT on Cisco Routers</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/static-nat-overloaded/' rel='bookmark' title='Permanent Link: Static NAT overloaded???'>Static NAT overloaded???</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Dynamic NAT on Cisco Routers</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers/#comments</comments>
		<pubDate>Fri, 15 Jul 2011 04:00:58 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=725</guid>
		<description><![CDATA[In my last post Configuring Static NAT on Cisco Routers we saw how you can translate 1 IP address into another single IP address. This tutorial will cover how to translate many IP addresses into many IP addresses, otherwise referred to as many-to-many translation. Dynamic NAT allows us to translate many IP addresses into a [...]]]></description>
			<content:encoded><![CDATA[<p>In my last post <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers">Configuring Static NAT on Cisco Routers</a> we saw how you can translate 1 IP address into another single IP address. This tutorial will cover how to translate many IP addresses into many IP addresses, otherwise referred to as many-to-many translation.</p>
<p>Dynamic NAT allows us to translate many IP addresses into a pool of many IP addresses. The big thing to realize here is that the pool does not need to contain enough IP addresses to translate all the internal addresses at the same time, as would be the case if we used Static NAT. Dynamic NAT allows internal hosts to be translated into an IP address in the pool when it requires a connection. Once the internal host has finished it&#8217;s session the NAT entry is removed from the NAT table allowing another internal host to use the external IP address for it&#8217;s session.</p>
<p>Assume we have 50 hosts in our inside network but only have 5 public IP addresses available to use. With Dynamic NAT we can allow all 50 internal addresses to share the 5 public addresses as and when they need them. This of course does impose a limit of only 5 simultaneous connections to the outside world and that is where <a title="Configuring PAT on Cisco Routers (NAT Overload)" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload/">PAT</a> would come in and solve that problem.</p>
<p>On of the benefits of using Dynamic NAT vs <a title="Configuring Static NAT on Cisco Routers" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers/">Static NAT</a>, is that Dynamic NAT requires the session to originate from the inside network. No outside connections can be established to the inside network. This is obviously a more secure solution as connections from the outside won&#8217;t work; only traffic originating from the inside will be translated. Static NAT is different in the fact that the entry is added to the NAT table on a permanent basis and will allow connections in either direction.</p>
<p>Here are the steps to configure Dynamic NAT on a Cisco Router.</p>
<p><strong>Step 1 </strong>: I need to define the IP address range that will be translated (my inside IP addresses). I can do this with a standard access-list</p>
<p>AOIP.ORG (config)# access-list 1 permit 10.0.1.0 0.0.0.255    (don&#8217;t forget, access-lists use <a title="Wildcard Mask" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/wildcard-mask/">wildcard masks</a>, not subnet masks)</p>
<p><strong>Step 2</strong> : I need to configure the range of addresses that my internal network will be translated into by using a NAT pool.</p>
<p>AOIP.ORG (config) # ip nat pool MY_POOL 10.50.1.1 10.50.1.5 netmask 255.255.255.0    (There are 5 IP addresses that can be used for translation in this example)</p>
<p><strong>Step3</strong> : Define inside and outside interfaces</p>
<p>AOIP.ORG (config) # interface FastEthernet 0/0<br />
AOIP.ORG (config-if) # ip nat inside<br />
AOIP.ORG (config-if) # interface Serial 0<br />
AOIP.ORG (config-if) # ip nat outside</p>
<p><strong>Step 4</strong> : Configure the translation to take place.</p>
<p>AOIP.ORG (config) # ip nat inside source list 1 pool MY_POOL   (List 1 is my access-list that defined my inside IP addresses, MY_POOL defined the IP addresses to be used for the translation)</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload/' rel='bookmark' title='Permanent Link: Configuring PAT on Cisco Routers (NAT Overload)'>Configuring PAT on Cisco Routers (NAT Overload)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers/' rel='bookmark' title='Permanent Link: Configuring Static NAT on Cisco Routers'>Configuring Static NAT on Cisco Routers</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/nat-network-address-translation/' rel='bookmark' title='Permanent Link: NAT (Network Address Translation)'>NAT (Network Address Translation)</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mitigating SubSeven attacks</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/#comments</comments>
		<pubDate>Thu, 20 Aug 2009 14:10:47 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Intrusion Prevention]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[Access Lists]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=414</guid>
		<description><![CDATA[SubSeven – aka: Sub7 and Sub7Server is a backdoor program, in the form of a Trojan, used mostly for causing trouble on computer networks. It can be used for simple attacks such as hiding the mouse cursor and opening applications, but it can also be used for more serious attacks including retrieving all your personal [...]]]></description>
			<content:encoded><![CDATA[<p>SubSeven – aka: Sub7 and Sub7Server is a backdoor program, in the form of a Trojan, used mostly for causing trouble on computer networks. It can be used for simple attacks such as hiding the mouse cursor and opening applications, but it can also be used for more serious attacks including retrieving all your personal information stored on your machine and all computer settings.</p>
<p> </p>
<p>The name SubSeven was derived by reversing the word Netbus (also a famous backdoor program) and replacing with the world ‘ten’ with ‘seven’</p>
<p>netbus = subten = subseven</p>
<p> </p>
<p> </p>
<p>In order to mitigate this application from attacking your network the following <a href="http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/">Access-list </a>can be configured on your routers interfaces. Most Anti-Virus programs will also prevent it from attacking your machine.</p>
<p> </p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 1243 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 2773 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any range 6711 6713 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 6776 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 7000 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 7215 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 27374 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 27573 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny tcp any any eq 54283 log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 permit ip any any</strong></p>
<p><strong>AOIP.ORG(config)# interface fa0/0 </strong></p>
<p><strong>AOIP.ORG(config-if)# ip access-group 100 in</strong></p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong>AOIP.ORG(config)# interface fa0/1 </strong></p>
<p><strong>AOIP.ORG(config-if)# ip access-group 100 in</strong></p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong>AOIP.ORG(config)#</strong></p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/' rel='bookmark' title='Permanent Link: Mitigating Smurf DoS Attacks'>Mitigating Smurf DoS Attacks</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/' rel='bookmark' title='Permanent Link: IP Address Spoofing Mitigation with Access Control Lists (ACL)'>IP Address Spoofing Mitigation with Access Control Lists (ACL)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/' rel='bookmark' title='Permanent Link: DoS TCP SYN Attack Mitigation'>DoS TCP SYN Attack Mitigation</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Decrypting Type 7 Passwords (enable password)</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 09:57:39 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[IINS]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[SNRS]]></category>
		<category><![CDATA[Decryption]]></category>
		<category><![CDATA[Encyption]]></category>
		<category><![CDATA[Passwords]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=398</guid>
		<description><![CDATA[The big difference between the enable password and the enable secret is the encryption level. The enable password by default is saved in clear text so when looking at the running-configuration of the router you will be able to read the password. It is possible to encrypt this password using the service password-encryption command.   [...]]]></description>
			<content:encoded><![CDATA[<p>The big difference between the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/setting-the-enable-password-and-secret-on-a-cisco-device/">enable password </a>and the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/setting-the-enable-password-and-secret-on-a-cisco-device/">enable secret </a>is the <a href="http://www.anythingoverip.co.za/networking-101/how-encryption-works/">encryption</a> level.</p>
<p>The <strong>enable password</strong> by default is saved in clear text so when looking at the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/the-difference-between-run-and-start-and-how-to-save/">running-configuration </a>of the router you will be able to read the password. It is possible to encrypt this password using the <strong>service password-encryption</strong> command.</p>
<p> </p>
<p>The <strong>service password-encryption</strong> command will also encrypt all other clear text passwords on your router including the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-vty-access/">VTY</a>, AUX, <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-the-console-port-on-a-cisco-device/">Console</a> and <a href="http://www.anythingoverip.co.za/tutorials/course-content/snd/login-local-on-a-cisco-router/">User passwords.</a> Although the <strong>service password-encryption</strong> command encrypts your passwords so you can no longer read them in the running-configuration, the encryption algorithm is not very secure.</p>
<p> </p>
<p>If we look at the running-configuration of my router in the article <a href="http://www.anythingoverip.co.za/ciscoconf/basicconfig/setting-the-enable-password-and-secret-on-a-cisco-device/">Setting the enable password and secret on a Cisco device</a> , you will see that after the <strong>service password-encryption</strong> command was issued the password was stored in the running-configuration as</p>
<p> </p>
<p>Enable password 7  <strong>12180A1E02</strong></p>
<p> </p>
<p>The number ‘7’ tells me the type of password, the rest of the number is the password in its encrypted format.</p>
<p>Copy and paste with password without the &#8217;7&#8242; into the below form, and see just how easy it is to decrypt the enable password.</p>
<p> </p>
<p><strong>NOTE: Please only use the below form for password recovery and demonstration purposes! </strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<html>
<body>

<center>

<script language="JavaScript1.2" type="text/javascript"> 
  
<!-- 
  
// Is the character a digit? 
  
function isDigit(theDigit) 
  
{ 
  
var digitArray = new Array('0','1','2','3','4','5','6','7','8','9') 
  
  
for (j = 0; j < digitArray.length; j++) { 
  
if (theDigit == digitArray[j]) 
  
return true 
  
} 
  
return false 
  
} 
  
  
  
// Generate a config file ready for loading 
  
function crackPassword(form) 
  
{ 
  
var crypttext=form.crypttext.value.toUpperCase() 
  
var plaintext='' 
  
var xlat="dsfd;kfoA,.iyewrkldJKDHSUBsgvca69834ncxv9873254k;fg87" 
  
var seed, i, val=0 
  
  
if(crypttext.length & 1) 
  
return 
  
  
seed = (crypttext.charCodeAt(0) - 0x30) * 10 + crypttext.charCodeAt(1) - 0x30 
  
  
if (seed > 15 || !isDigit(crypttext.charAt(0)) || !isDigit(crypttext.charAt(1))) 
  
return 
  
  
for (i = 2 ; i <= crypttext.length; i++) { 
  
if(i !=2 && !(i & 1)) { 
  
plaintext+=String.fromCharCode(val ^ xlat.charCodeAt(seed++)) 
  
seed%=xlat.length 
  
val = 0; 
  
} 
  
  
val *= 16 
  
  
if(isDigit(crypttext.charAt(i))) { 
  
val += crypttext.charCodeAt(i) - 0x30 
  
continue 
  
} 
  
  
  
if(crypttext.charCodeAt(i) >= 0x41 && crypttext.charCodeAt(i) <= 0x46) { 
  
val += crypttext.charCodeAt(i) - 0x41 + 0x0a 
  
continue 
  
} 
  
  
if(crypttext.length != i) 
  
return 
  
} 
  
  
form.plaintext.value=plaintext 
  
} 
  
  
--> 
  
</script> 
  
  
  
<form name="never-you-mind" id="never-you-mind" action="#" style="width: 344px"> 
  
<table border="0"> 
  
<tr><td style="width: 334px" class="style12"> 
  
<p class="style11"> 
  
<span class="style9">Enter encrypted password:<br/> 
  
</span><span class="style8"><span class="style9"> 
  
<span class="style2"> 
  
<input name="crypttext" type="text" size="60" style="width: 167px" /></span></span></span><span class="style9"> 
  
</span> 
  
</p> 
  
<p class="style11"><span class="style9">Decrypted 
  
password is:<br/> 
  
</span><span class="style8"><span class="style9"> 
  
<span class="style2"> 
  
<input name="plaintext" type="text" size="40" style="width: 167px" /></span></span></span><span class="style9"> 
  
</span> 
  
</p> 
  
<p class="style10"> 
  
  
<input type="button" value="Show Password" onclick="crackPassword(this.form)" style="width: 118px" /></p> 
  
</td></tr></table> 
  
</form> 

</center>
</body>
</html>




<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/setting-the-enable-password-and-secret-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Setting the enable password and secret on a Cisco device'>Setting the enable password and secret on a Cisco device</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/hashing-what-is-it-and-how-does-it-work/' rel='bookmark' title='Permanent Link: Hashing, What is it and how does it work?'>Hashing, What is it and how does it work?</a></li><li><a href='http://www.anythingoverip.co.za/networking-101/how-encryption-works/' rel='bookmark' title='Permanent Link: How encryption works'>How encryption works</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/snd/decrypting-type-7-passwords-enable-password/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mitigating Smurf DoS Attacks</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/#comments</comments>
		<pubDate>Tue, 18 Aug 2009 06:00:41 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Intrusion Prevention]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[Access Lists]]></category>
		<category><![CDATA[ACL]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[Spoofing]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=393</guid>
		<description><![CDATA[Before looking at how to mitigate a Smurf attack, let’s first understand what it is and why it’s such a problem.   A Smurf works on a weakness of IP and ICMP by sending an ICMP packet to the broadcast address of a network. For example, I could send an ICMP (Ping packet) to every [...]]]></description>
			<content:encoded><![CDATA[<p>Before looking at how to mitigate a Smurf attack, let’s first understand what it is and why it’s such a problem.</p>
<p> </p>
<p>A Smurf works on a weakness of IP and ICMP by sending an ICMP packet to the broadcast address of a network. For example, I could send an ICMP (Ping packet) to every computer on the network 192.168.1.0 /24</p>
<p>I would do this by sending an ICMP packet to the address 192.168.1.255. This would result in every computer in that network (possibly 254 machines) sending me an echo-reply message. So far, this is not the end of the world, however Smurf adds <a href="http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/">ip spoofing </a>to the equation&#8230;</p>
<p> </p>
<p>When someone does a Smurf attack, the first thing that they do is an IP Spoof to make the their <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address </a>look like an <a href="http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/">internal address</a>. For example, I would spoof my address to have a source IP address of 192.168.1.10. Let’s assume that the IP address 192.168.1.10 was the Domain Controller, or perhaps the E-mail or Web server of that network. If I was to now send multiple echo packets to the destination address 192.168.1.255, every machine on that network would now send a echo-reply to the source IP of 192.168.1.10 (The internal server). This means I have just caused every machine on the target network to attack the internal target machine with echo-replies. Of course this is not the end of the world if this happens once or twice, but what if I did this a few thousand, or a few hundred thousand times? What if the target network was larger and had more than 254 machines? On a larger scale this could cause the target machine to be so over loaded with echo-replies that its network card becomes saturated to a point where its prevented from doing its job&#8230; denying it from doing it’s service&#8230; “Denial of Service” (DoS). Since this attack is not coming from me directly, and I&#8217;m forcing multiple machines to attack a single host, this now becomes a &#8220;Distributed Denial of Service&#8221; (DDos) attack.</p>
<p> </p>
<p>So in order for us to prevent Smurf attacks happening on our networks, we need to make sure we block directed broadcast traffic coming into our network.</p>
<p> </p>
<p>Below is the configuration required to stop Smurf Attacks. Use the diagram as a reference for the <a href="http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/">ACL’s</a></p>
<p> </p>
<p style="text-align: center;"> <img class="aligncenter size-full wp-image-392" title="ACL_Diagram" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/08/ACL_Diagram.jpg" alt="ACL_Diagram" width="350" height="89" /></p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 101 deny ip any host 192.168.1.255 log</strong></p>
<p>Deny the directed broadcast</p>
<p><strong>AOIP.ORG(config)# access-list 101 permit ip any 192.168.1.0 0.0.0.255 log</strong></p>
<p>Allow unicast traffic</p>
<p><strong>AOIP.ORG(config)# interface fa0/0</strong></p>
<p><strong>AOIP.ORG(config-if)# ip access-group 101 in</strong></p>
<p>Attach the ACL to the interface for inbound traffic</p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>
<p><strong>Now for the other direction&#8230;&#8230;</strong></p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 102 deny ip any host 10.0.1.255 log</strong></p>
<p>Deny the directed broadcast</p>
<p><strong>AOIP.ORG(config)# access-list 102 permit ip any 10.0.1.0 0.0.0.255 log</strong></p>
<p>Allow unicast traffic</p>
<p><strong>AOIP.ORG(config)# interface fa0/1</strong></p>
<p><strong>AOIP.ORG(config-if)# ip access-group 102 in</strong></p>
<p>Attach the ACL to the interface for inbound traffic</p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong>AOIP.ORG(config)#</strong></p>
<p> </p>
<p> </p>
<p> </p>
<p>In the above configuration we have now mitigated Smurf attacks from either network segments in either direction.</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/' rel='bookmark' title='Permanent Link: Mitigating SubSeven attacks'>Mitigating SubSeven attacks</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/' rel='bookmark' title='Permanent Link: IP Address Spoofing Mitigation with Access Control Lists (ACL)'>IP Address Spoofing Mitigation with Access Control Lists (ACL)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/' rel='bookmark' title='Permanent Link: DoS TCP SYN Attack Mitigation'>DoS TCP SYN Attack Mitigation</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>IP Address Spoofing Mitigation with Access Control Lists (ACL)</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/#comments</comments>
		<pubDate>Mon, 17 Aug 2009 14:06:29 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Intrusion Prevention]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[Access Lists]]></category>
		<category><![CDATA[ACL]]></category>
		<category><![CDATA[IP Addresses]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[SNRS]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=389</guid>
		<description><![CDATA[IP spoofing is the act of camouflaging your IP address to make it look like you are someone else. Although IP spoofing is not an attack by itself, it is the starting point of many of the most common attacks found on today’s networks.   Most, but not all, of the spoofing attacks that take [...]]]></description>
			<content:encoded><![CDATA[<p>IP spoofing is the act of camouflaging your <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP address </a>to make it look like you are someone else. Although IP spoofing is not an attack by itself, it is the starting point of many of the most common attacks found on today’s networks.</p>
<p> </p>
<p>Most, but not all, of the spoofing attacks that take place start with someone on the outside of your network spoofing their IP address to make it look like they are part of the inside of your network. Since all private networks worldwide follow the standards of <a href="http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/">RFC 1918</a>, knowing what IP addresses a company is using inside their network is not complex.</p>
<p> </p>
<p>RFC 1918 defines that the following IP addresses are usable inside private networks.</p>
<p>10.0.0.0 – 10.255.255.255</p>
<p>172.16.0.0 – 172.31.255.255</p>
<p>192.168.0.0 – 192.168.255.255</p>
<p> </p>
<p>Based on the above, the most obvious first step is to deny traffic that has a source IP address inside the RFC 1918 block that is coming into your network from the outside interface. The outside interface should have outside (public) IP addresses as their source. There would be no valid reason for an IP address on the outside of your network falling within that range.</p>
<p> </p>
<p>Further to the RFC 1918 block of addresses, we also need to block any source coming from the following:</p>
<p>local loopback (127.0.0.1)</p>
<p>network address (0.0.0.0)</p>
<p>broadcast address (255.255.255.255)</p>
<p>Private multicast range (224.0.0.0 /4 )</p>
<p> </p>
<p> </p>
<p>Here is the configuration breakdown for the above scenario</p>
<p> </p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip 10.0.0.0 0.255.255.255 any log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip 172.16.0.0 0.15.255.255 any log</strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip 192.168.0.0 0.0.255.255 any log</strong></p>
<p>The above are the RFC 1918 Unicast IP addresses</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip 127.0.0.0 0.255.255.255 any log</strong></p>
<p>Local loopback restriction</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip 0.0.0.0 0.255.255.255 any log</strong></p>
<p>Network address restriction</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip 224.0.0.0 15.255.255.255 any log</strong></p>
<p>Private multicast range restriction</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 deny ip host 255.255.255.255 any log</strong></p>
<p>Broadcast source address restriction</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# access-list 100 permit ip any 192.168.1.0 0.0.0.255</strong></p>
<p>There is an implicit deny any at the bottom of every <a href="http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/">access list</a>, so without a permit statement, NO traffic would be allowed. In the above entry I have allowed any traffic to go to the destination address 192.168.1.0 /24 (My internal network)</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# interface fa0/0</strong></p>
<p>For example purposes FastEthernet 0/0 is my outside interface</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config-if)# ip access-group 100 in</strong></p>
<p>I have applied this ACL inbound, which will also protect the router from been attacked.</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong>AOIP.ORG(config)#</strong></p>
<p> </p>
<p> </p>
<p>Not only do we want to prevent people from the outside of our network ‘pretending’ they are inside our network, we also want to prevent our inside people from spoofing to a different IP address as well. The above configuration had a focus on traffic INBOUND to our network, the below configuration is focused on preventing OUTBOUND traffic from spoofing.</p>
<p> </p>
<p><strong>AOIP.ORG(config)# access-list 105 permit ip 192.168.1.0 0.0.0.255 any</strong></p>
<p>The only range that is allowed to transmit is my internal network, in this case 192.168.1.0 /24</p>
<p> </p>
<p><strong>AOIP.ORG(config)# access-list 105 deny ip any any log</strong></p>
<p>Although there is an implicit ‘deny any’ at the end of all ACL’s, I have included this with the log statement so I can see how many attempts have been made by internal machines to spoof their address before leaving the network</p>
<p> </p>
<p><strong>AOIP.ORG(config)# interface fa0/1</strong></p>
<p>For example purposes, interface FastEthernet 0/1 is my inside interface</p>
<p> </p>
<p><strong>AOIP.ORG(config-if)# ip access-group 105 in</strong></p>
<p>I have applied this ACL inbound, which will also protect the router from been attacked.</p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config-if)# exit</strong></p>
<p><strong>AOIP.ORG(config)#</strong></p>
<p><strong> </strong></p>
<p><strong> </strong></p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-smurf-dos-attacks/' rel='bookmark' title='Permanent Link: Mitigating Smurf DoS Attacks'>Mitigating Smurf DoS Attacks</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/' rel='bookmark' title='Permanent Link: DoS TCP SYN Attack Mitigation'>DoS TCP SYN Attack Mitigation</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/' rel='bookmark' title='Permanent Link: Mitigating SubSeven attacks'>Mitigating SubSeven attacks</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Restricting access to VTY (Virtual Terminal Lines)</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/#comments</comments>
		<pubDate>Fri, 14 Aug 2009 13:50:26 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[SNRS]]></category>
		<category><![CDATA[Access Lists]]></category>
		<category><![CDATA[Maintenance]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=376</guid>
		<description><![CDATA[One of the first and most important things to configure on any Cisco device after allowing telnet or SSH, is to restrict who is allowed to access the device. Of course having a password on the lines is the first step but if telnet is the method of communication, all passwords will be sent over [...]]]></description>
			<content:encoded><![CDATA[<p>One of the first and most important things to configure on any Cisco device after allowing telnet or <a href="http://www.anythingoverip.co.za/tutorials/course-content/snd/configuring-ssh-secure-shell-on-a-cisco-device/">SSH</a>, is to restrict who is allowed to access the device. Of course having a password on the lines is the first step but if telnet is the method of communication, all passwords will be sent over the wire in clear-text. This means that if someone was to sniff the line while you logged onto a router using a telnet session, they would be able to see your password and hence gain access to the device.</p>
<p> </p>
<p>As an additional method for securing your Cisco devices, it’s a good idea to bind an ACL (<a href="http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/">Access Control List</a>) to the VTY’s (Virtual Terminal Lines). This will only allow IP addresses included in the ACL to create a connection to the device in addition to needing the password for the lines.</p>
<p> </p>
<p>If we look at the diagram below, I might want to restrict telnet access into R1 so telnet will only be allowed to take place from AOIP.ORG and not from any other device or computer.</p>
<p> </p>
<p style="text-align: center;"> <img class="size-full wp-image-178 aligncenter" title="network_diagram_with_loopbacks1" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/06/network_diagram_with_loopbacks1.jpg" alt="network_diagram_with_loopbacks1" width="350" height="355" /></p>
<p> </p>
<p> In order to achieve the above, the following commands would need to be configured.</p>
<p> </p>
<p><strong>R1# conf t</strong></p>
<p><strong> </strong></p>
<p><strong>R1(config)# access-list 1 permit host 192.168.1.10 log</strong></p>
<p>Create a standard access-list (only checks the source address) and include the ‘log’ command so I will be able to see how many times the ACL has been matched. I don’t have to include any deny statements since there is always a implicit deny any statement at the end of every ACL</p>
<p><strong>R1(config)# line vty 0 4</strong></p>
<p>Enter the Virtual lines</p>
<p><strong>R1(config-line)# access-class 1 in</strong></p>
<p>Attach the ACL to the virtual lines for traffic inbound to the router.</p>
<p> </p>
<p>Below is the live demo.</p>
<p><object type="application/x-shockwave-flash" style="width:630px;height:250px" data="http://www.anythingoverip.co.za/Live_Demos/restricting_vty.swf"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://www.anythingoverip.co.za/Live_Demos/restricting_vty.swf" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-vty-access/' rel='bookmark' title='Permanent Link: Configuring VTY Access'>Configuring VTY Access</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/' rel='bookmark' title='Permanent Link: IP Address Spoofing Mitigation with Access Control Lists (ACL)'>IP Address Spoofing Mitigation with Access Control Lists (ACL)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/mitigating-subseven-attacks/' rel='bookmark' title='Permanent Link: Mitigating SubSeven attacks'>Mitigating SubSeven attacks</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Port Security on a Cisco Switch</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/port-security-on-a-cisco-switch/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/port-security-on-a-cisco-switch/#comments</comments>
		<pubDate>Thu, 06 Aug 2009 06:00:24 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[BCMSN]]></category>
		<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=352</guid>
		<description><![CDATA[In order to control what machines are plugged into your network, Cisco introduced the “switchport port-security” command.   In this tutorial I’m going to explain how to use this command, and different options available using it.   Below is the breakdown of the commands I used in the live demo, and an explanation of each. [...]]]></description>
			<content:encoded><![CDATA[<p>In order to control what machines are plugged into your network, Cisco introduced the “<strong>switchport port-security</strong>” command.</p>
<p> </p>
<p>In this tutorial I’m going to explain how to use this command, and different options available using it.</p>
<p> </p>
<p>Below is the breakdown of the commands I used in the live demo, and an explanation of each.</p>
<p> </p>
<p> </p>
<p><strong>AOIP.ORG_Switch# terminal monitor</strong></p>
<p>Since I was connected to my switch via telnet, and I knew there were going to be messages from the switch, I needed to configure Terminal Monitor so I would have these messages sent to my telnet session. By default when connected to a Cisco device via telnet or ssh, no messages will be displayed to your terminal.</p>
<p><strong>AOIP.ORG_Switch(config)# interface fa0/6</strong></p>
<p>Enter the interface that I wish to configure the port security on</p>
<p><strong>AOIP.ORG_Switch(config-if)# switchport mode access</strong></p>
<p>In order for port security to be used, the port MUST be an <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-an-access-port-on-a-cisco-switch/">access port</a>, this command defines that</p>
<p><strong>AOIP.ORG_Switch(config-if)# switchport port-security</strong></p>
<p>This enables the port security feature, and allows me to define the commands below.</p>
<p><strong>AOIP.ORG_Switch(config-if)# switchport port-security maximum 1</strong></p>
<p>I have chosen to only allow 1 mac-address to be learned on this port. At any point if more than 1 mac address was to be discovered, the violation action I define will come into effect.</p>
<p><strong>AOIP.ORG_Switch(config-if)# switchport port-security mac-address aaaa.bbbb.cccc</strong></p>
<p>I have further secured the switch port by defining what mac address is allowed to be learned on this port. If a machine is plugged into this port that does NOT have this mac-address, the violation action will take effect.</p>
<p><strong>AOIP.ORG_Switch(config-if)# switchport port-security violation shutdown</strong></p>
<p>I have 3 choices when defining the violation action</p>
<p>                1/ protect – The switch will drop packets until the violation has been removed</p>
<p>                2/ restrict – This is the same as protect, however it also causes the Security/Violation counter to increment</p>
<p>                3/ shutdown – This will put the interface into a error-disabled state and send an SNMP trap notification</p>
<p>I have chosen the more harsh of the options, and the port will be shut if any of my conditions (more than 1 mac address is learned on the port, and if that one mac address is not aaaa.bbbb.cccc)</p>
<p><strong>AOIP.ORG_Switch(config-if)# exit</strong></p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG_Switch(config)# exit</strong></p>
<p> </p>
<p><strong>AOIP.ORG_Switch# show port-security interface f 0/6</strong></p>
<p>The first time I ran this command in the live demo, you will notice the configuration on the port that I had just made, however there are no violations recorded. Shortly afterwards, I plugged a device into port f0/6 that DID NOT have the mac address aaaa.bbbb.cccc which caused a violation. You will notice I received error messages on screen (thanks to term mon), and when I run the show port-security command again, you will notice the violation count has incremented.</p>
<p> </p>
<p>Additional commands I could have used are.</p>
<p> </p>
<p><strong>AOIP.ORG_Switch(config-if)# switchport port-security aging time 5</strong></p>
<p>If you have configured the switch to allow 5 mac addresses to be learned dynamically, those addresses will be kept in the database until the aging time has expired. This command will set the aging time to 5 minutes, which overrides my switches default value of 20 minutes.</p>
<p> </p>
<p><strong>AOIP.ORG_Switch(config-if)# no switchport port-security aging</strong></p>
<p>This will DISABLE the aging time.</p>
<p> </p>
<p> </p>
<p>In order to activate a port that has been put into ‘error-disabled’ state. Shut the port, and no shut it afterwards. If the violation has not been removed, the port will revert back to error-disabled.</p>
<p> </p>
<p><object type="application/x-shockwave-flash" style="width:630px;height:250px" data="http://www.anythingoverip.co.za/Live_Demos/port-security.swf"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://www.anythingoverip.co.za/Live_Demos/port-security.swf" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-a-trunk-port-on-a-cisco-switch/' rel='bookmark' title='Permanent Link: Configuring a Trunk port on a Cisco Switch'>Configuring a Trunk port on a Cisco Switch</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-an-access-port-on-a-cisco-switch/' rel='bookmark' title='Permanent Link: Configuring an Access port on a Cisco switch'>Configuring an Access port on a Cisco switch</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-an-ip-address-and-default-gateway-on-a-cisco-switch/' rel='bookmark' title='Permanent Link: Configuring an IP address and Default-Gateway on a Cisco Switch'>Configuring an IP address and Default-Gateway on a Cisco Switch</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/ccna/port-security-on-a-cisco-switch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configuring Syslog on Cisco Routers</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/configuring-syslog-on-cisco-routers/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/configuring-syslog-on-cisco-routers/#comments</comments>
		<pubDate>Thu, 30 Jul 2009 12:42:52 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[IINS]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[SND]]></category>
		<category><![CDATA[SNRS]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=331</guid>
		<description><![CDATA[As part of any management and audit solution for networking, Syslog is vital.   Syslog messages allow us to track system error messages, exceptions, and other information, such as device configuration changes. It allows for historical reporting, depending on the application keeping the logs, as well as help in fault finding.   Cisco devices support [...]]]></description>
			<content:encoded><![CDATA[<p>As part of any management and audit solution for networking, Syslog is vital.</p>
<p> </p>
<p>Syslog messages allow us to track system error messages, exceptions, and other information, such as device configuration changes.</p>
<p>It allows for historical reporting, depending on the application keeping the logs, as well as help in fault finding.</p>
<p> </p>
<p>Cisco devices support 8 levels of logging information from Facility level 0 through 7</p>
<table border="1" cellspacing="1" cellpadding="0" width="60%">
<tbody>
<tr>
<td>Emergency</td>
<td>0</td>
</tr>
<tr>
<td>Alert</td>
<td>1</td>
</tr>
<tr>
<td>Critical</td>
<td>2</td>
</tr>
<tr>
<td>Error</td>
<td>3</td>
</tr>
<tr>
<td>Warning</td>
<td>4</td>
</tr>
<tr>
<td>Notification</td>
<td>5</td>
</tr>
<tr>
<td>Informational</td>
<td>6</td>
</tr>
<tr>
<td>Debug</td>
<td>7</td>
</tr>
</tbody>
</table>
<p> </p>
<p>To enable Syslog 2 things are required</p>
<p>                1/ Configuration on the device to send Syslog messages</p>
<p>                2/ An application that will receive the messages and store them in a database.</p>
<p> </p>
<p>In the below live demo, you will see my putty screen with my telnet session into my router, and behind it you will see my Syslog application. There are many of these products on the market, each with its own pro’s and con’s, so use whatever you prefer. In my Live demo I am using an application called  ‘Syslog Watcher Personal Edition’, it’s a very easy to use application and is freeware. You will notice after I configured logging on the router, the log messages appear in my application.</p>
<p> </p>
<p>The command breakdown for the live demo is as follows</p>
<p> </p>
<p><strong>AOIP.ORG# conf t</strong></p>
<p><strong> </strong></p>
<p><strong>AOIP.ORG(config)# logging 192.168.1.1</strong></p>
<p>This instructs the router to send Syslog messages to my application hosted on a machine with the IP 192.168.1.1</p>
<p><strong>AOIP.ORG(config)# logging trap info</strong></p>
<p>I have chosen to have level 6 messages sent to my application.</p>
<p> </p>
<p>Additionally you could have used the <strong>‘service timestamps log datetime localtime’</strong> command to force the time on the logs.</p>
<p> </p>
<p>If you still do not see any log messages after using the above commands, make sure that logging has not been disabled on the device. To force logging on a Cisco device use the <strong>‘logging on’</strong> command.</p>
<p> </p>
<p><object type="application/x-shockwave-flash" style="width:630px;height:250px" data="http://www.anythingoverip.co.za/Live_Demos/syslog.swf"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://www.anythingoverip.co.za/Live_Demos/syslog.swf" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/cisco-router-login-lockdown/' rel='bookmark' title='Permanent Link: Cisco Router Login Lockdown'>Cisco Router Login Lockdown</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload/' rel='bookmark' title='Permanent Link: Configuring PAT on Cisco Routers (NAT Overload)'>Configuring PAT on Cisco Routers (NAT Overload)</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/topic/security-topic-tutorials/configuring-the-console-port-on-a-cisco-device/' rel='bookmark' title='Permanent Link: Configuring the Console port on a Cisco Device'>Configuring the Console port on a Cisco Device</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/configuring-syslog-on-cisco-routers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrading the IOS on a Cisco Router</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/snd/upgrading-the-ios-on-a-cisco-router/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/snd/upgrading-the-ios-on-a-cisco-router/#comments</comments>
		<pubDate>Tue, 28 Jul 2009 08:00:31 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCENT (ICND1)]]></category>
		<category><![CDATA[Maintenance]]></category>
		<category><![CDATA[SND]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=323</guid>
		<description><![CDATA[Cisco brings out new versions of the operating system quite frequently, and of course there are different versions of the operating system for each of the appliances. Different IOS’s will support different commands and different features and it’s not uncommon to have to change the IOS that your device is running to support commands you [...]]]></description>
			<content:encoded><![CDATA[<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">Cisco brings out new versions of the operating system quite frequently, and of course there are different versions of the operating system for each of the appliances. Different IOS’s will support different commands and different features and it’s not uncommon to have to change the IOS that your device is running to support commands you wish to use.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">The other major reason for IOS upgrades is to fix bugs that Cisco may have found in the software.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">The 2 most common ways to do an upgrade are</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">                </span>1/ Take the Flash card out the router, plug it into a card reader and paste the new file on the card. Replace the card in the router and reboot.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="mso-tab-count: 1;">                </span>2/ Copy the file over the network using a protocol like TFTP.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">When copying the IOS over the network, the router will check to confirm it has enough storage space to accommodate the file. It will often ask to erase the flash before copying the new image. Before erasing the flash on the router, make sure there are no other files on the flash that you might need. If there are files that you will require, make sure you have made a backup of them before erasing!</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">Here are the steps for upgrading via the network.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">1/ Run your TFTP server and confirm it’s hosting the IOS that you wish to upgrade to</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">2/ Configure the following on the router</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;"><span style="mso-spacerun: yes;"> </span><strong style="mso-bidi-font-weight: normal;">AOIP.ORG# copy tftp: flash:</strong></span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Address or name of remote host []? 192.168.1.1</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Source filename []? c1841-ipbase-mz.124-5b.bin</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Destination filename [c1841-ipbase-mz.124-5b.bin]?</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">%Warning: There is a file already existing with this name</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Do you want to over write? [confirm]</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri; font-size: small;"> </span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">In the example above, I had chosen to upgrade to the same image that was already loaded on the router. Although not a practical solution, it does show the commands to upgrade.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">Below you will see the different output when I chose a different file.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">AOIP.ORG# copy tftp: flash:</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Address or name of remote host [192.168.1.1]?</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Source filename [c1841-ipbase-mz.124-5b.bin]? c1841.bin</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Destination filename [c1841.bin]?</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Accessing tftp://192.168.1.1/c1841.bin&#8230;</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">Loading c1841.bin from 192.168.1.1 (via FastEthernet0/0): !</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">%Error copying tftp://192.168.1.1/c1841.bin (Not enough space on device)</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-family: Calibri; font-size: small;"> </span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">Again, I have received an error message, this time due to lack of free space on my flash card on the router. I would then have a chance to confirm there are no files on the flash that I need to keep before erasing the flash. If there are files I need to retain, make sure you back them up before erasing!</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">Make sure that you have already confirmed that the router physically has enough flash to be able to support the image you wish to install. You can see how much Flash is available and installed by using the <strong style="mso-bidi-font-weight: normal;">‘show flash:’</strong> and <strong style="mso-bidi-font-weight: normal;">‘show version’</strong> commands</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">Depending on the router model, you can erase the contents of the flash by typing</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">AOIP.ORG# erase flash:</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">OR</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><strong style="mso-bidi-font-weight: normal;"><span style="font-size: small;"><span style="font-family: Calibri;">AOIP.ORG# erase nvram:</span></span></strong></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-size: small;"><span style="font-family: Calibri;">After the flash has been erased, you would then be able to copy the file from the tftp server.</span></span></p>
<p class="MsoNormal" style="margin: 0cm 0cm 0pt;"><span style="font-family: Calibri; font-size: small;"> </span></p>
<p><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-language: EN-US; mso-ansi-language: EN-ZA; mso-bidi-language: AR-SA;">Below is a live demo of an upgrade.</span></p>
<p> </p>
<p><span style="font-family: &quot;Calibri&quot;,&quot;sans-serif&quot;; font-size: 11pt; mso-ascii-theme-font: minor-latin; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; mso-hansi-theme-font: minor-latin; mso-bidi-font-family: 'Times New Roman'; mso-bidi-theme-font: minor-bidi; mso-fareast-language: EN-US; mso-ansi-language: EN-ZA; mso-bidi-language: AR-SA;"><object type="application/x-shockwave-flash" style="width:630px;height:250px" data="http://www.anythingoverip.co.za/Live_Demos/upgrading_IOS.swf"><param name="allowfullscreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="quality" value="best" /><param name="wmode" value="transparent" /><param name="movie" value="http://www.anythingoverip.co.za/Live_Demos/upgrading_IOS.swf" /><param name="pluginspage" value="http://www.macromedia.com/go/getflashplayer" />If you can see this, then you might need a Flash Player upgrade or you need to install Flash Player if it's missing. Get <a href="http://get.adobe.com/flashplayer/" target="_blank">Flash Player</a> from Adobe.</object><br/>
		<!-- Valid XHTML flash object delivered by XHTML Video Embed. Get it at: http://saltwaterc.net/xhtml-video-embed -->
		</span></p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/topic/maintenance-topic-tutorials/backing-up-the-running-config-and-ios/' rel='bookmark' title='Permanent Link: Backing Up the Running-Config and IOS'>Backing Up the Running-Config and IOS</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/topic/maintenance-topic-tutorials/restoring-cisco-router-configuration/' rel='bookmark' title='Permanent Link: Restoring Cisco Router Configuration'>Restoring Cisco Router Configuration</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dhcp-on-a-cisco-router/' rel='bookmark' title='Permanent Link: Configuring DHCP on a Cisco router'>Configuring DHCP on a Cisco router</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/snd/upgrading-the-ios-on-a-cisco-router/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>

