<?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; IINS</title>
	<atom:link href="http://www.anythingoverip.co.za/category/tutorials/course-content/iins/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>Static NAT overloaded???</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/static-nat-overloaded/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/static-nat-overloaded/#comments</comments>
		<pubDate>Wed, 27 Jul 2011 05:24:51 +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[Routing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[SNRS]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=736</guid>
		<description><![CDATA[So we have already looked at all 3 possible NAT configurations, however there is one more trick that is always useful to know. How to overload a Static NAT. Let&#8217;s assume the following for this example We have 2 public IP addresses (192.168.1.1 &#38; 192.168.1.2) The IP address on the outside interface has been configured [...]]]></description>
			<content:encoded><![CDATA[<p>So we have already looked at all 3 possible NAT configurations, however there is one more trick that is always useful to know. How to overload a Static NAT.</p>
<p>Let&#8217;s assume the following for this example</p>
<ul>
<li> We have 2 <a title="Useable IP addresses in private networks" href="http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/">public IP addresses</a> (192.168.1.1 &amp; 192.168.1.2)</li>
<li>The IP address on the outside interface has been configured to use <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-pat-on-cisco-routers-nat-overload">PAT</a> for all internal IP addresses for Internet access (192.168.1.1)</li>
<li>I have a DMZ with 3 servers, FTP, E-mail, and Web Server (10.0.1.1, 10.0.1.2 &amp; 10.0.1.3 respectively)</li>
<li>I need my 3 DMZ servers to be reachable from the Internet.</li>
</ul>
<p>The above scenario poses a slight problem. If I have already used one of my public addresses for PAT to allow all internal hosts to access the Internet, I only have one IP address left but I require 3 <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers">static NAT</a> entries to be created. In my post on <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers">Static NAT</a> we saw that we configure NAT to map on a one-to-one basis, so in this scenario I would require 3 IP addresses, one for each of my DMZ servers.</p>
<p>The nice thing about the above scenario, is that each of the three servers is hosting a totally different service and therefore each requires different <a title="Ports and their use." href="http://www.anythingoverip.co.za/networking-101/ports-and-their-use/">ports</a> to be accessible from the Internet. This allows me to create static NAT&#8217;s that specify the ports, a type of overload function.</p>
<p>FTP would require ports 20,21 to be allowed<br />
E-mail would require port 25 to be opened, and possibly 143 and 110 if you are using IMAP or POP<br />
Web Server will require port 80, and possibly 443 if there is any SSL been used (https).</p>
<p>The above can be configured in the following way (interfaces would need to be configured as inside and outside as well, as seen <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers">here</a>)</p>
<p>AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.1 192.168.1.2 20<br />
AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.1 192.168.1.2 21</p>
<p>AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.2 192.168.1.2 25<br />
AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.2 192.168.1.2 143<br />
AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.2 192.168.1.2 110</p>
<p>AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.3 192.168.1.2 80<br />
AOIP.ORG (config) # ip nat inside source static tcp 10.0.1.3 192.168.1.2 443</p>


<p>Related posts:<ol><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/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/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/static-nat-overloaded/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>Configuring Static NAT on Cisco Routers</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers/#comments</comments>
		<pubDate>Thu, 07 Jul 2011 09:00:44 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[IINS]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[WAN]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=722</guid>
		<description><![CDATA[In my previous post on NAT, I explained the difference between the 3 different types of NAT that can be configured. In this tutorial I&#8217;m going to cover the configuration steps to configure static NAT. Static NAT is a one-to-one mapping. It allows us to translate a single IP address into a different single IP [...]]]></description>
			<content:encoded><![CDATA[<p>In my previous post on <a title="NAT (Network Address Translation)" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/nat-network-address-translation/">NAT</a>, I explained the difference between the 3 different types of NAT that can be configured. In this tutorial I&#8217;m going to cover the configuration steps to configure static NAT.</p>
<p>Static NAT is a one-to-one mapping. It allows us to translate a single IP address into a different single IP address. This is most commonly found when you have a server inside your DMZ that you would like to allow the outside world (The Internet) to connect to, such as E-mail servers, FTP servers and Web servers (if you&#8217;re hosting your own).</p>
<p>The first step in configuration static NAT, is to define which interfaces on your router are involved in the NAT process and then configuring your Cisco router to know which interface is on which side of the network. Your Cisco router needs to know which interface is the inside interface and which is the outside interface to allow the translation to take place.</p>
<p>For example purposes let&#8217;s assume that FastEthernet 0/0 is the inside interface, and Serial 0 is my outside.</p>
<p><a title="AOIP" href="http://www.aoip.org">AOIP.ORG</a> &gt; en<br />
AOIP.ORG # conf t<br />
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>So we have just informed our Cisco router of the inside and the outside, the next step is to tell your Router how to translate and what to translate.</p>
<p>Let&#8217;s assume that I have a server in my DMZ that has an IP address of 10.0.1.1 and I have a public IP address of 192.168.1.1 (yes I know this a private range part of <a title="Useable IP addresses in private networks" href="http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/">RFC 1918</a>, but for example purposes, let&#8217;s assume it&#8217;s not).</p>
<p>AOIP.ORG (config)# ip nat inside source static 10.0.1.1 192.168.1.1</p>
<p>That&#8217;s it, your done. When your server 10.0.1.1 connects to anything on Serial 0 and beyond, the source IP address will be translated into 192.168.1.1. Similarly, when someone from the Internet connects to the IP address 192.168.1.1 it will be translated into a destination IP address of 10.0.1.1 and hence connect to our server in the DMZ (Access-list permitting).</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-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/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-static-nat-on-cisco-routers/feed/</wfw:commentRss>
		<slash:comments>0</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>
	</channel>
</rss>

