<?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; Security</title>
	<atom:link href="http://www.anythingoverip.co.za/category/tutorials/topic/security-topic-tutorials/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 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>NAT (Network Address Translation)</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/ccna/nat-network-address-translation/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/ccna/nat-network-address-translation/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 11:31:44 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[Management]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[WAN]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=698</guid>
		<description><![CDATA[NAT or Network Address Translation is a key function required in every organisations network. Since all organisation use RFC 1918 IP addressing, and these IP addresses are not allowed to exist on the internet, before we send packets to the internet we need to translate the internal IP address into a useable public IP address. [...]]]></description>
			<content:encoded><![CDATA[<p>NAT or Network Address Translation is a key function required in every organisations network.<br />
Since all organisation use <a href="http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/">RFC 1918 </a>IP addressing, and these <a href="http://www.anythingoverip.co.za/networking-101/what-is-an-ip-address/">IP addresses </a>are not allowed to exist on the internet, before we send packets to the internet we need to translate the <a href="http://www.anythingoverip.co.za/networking-101/useable-ip-addresses-in-private-networks/">internal IP address </a>into a useable public IP address.</p>
<p>There are 3 ways to configure NAT on a Cisco Router<br />
1/ <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><br />
2/ <a title="Configuring Dynamic NAT on Cisco Routers" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers/">Dynamic NAT</a><br />
3/ <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/">NAT overload</a> (PAT – Port Address translation)</p>
<p><a title="Configuring Static NAT on Cisco Routers" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-static-nat-on-cisco-routers/"><strong>Static NAT</strong></a> is a one-to-one mapping. This is usually only required when you have a server inside your network (ie: Webserver, FTP, E-mail) that needs to be accessed from the internet. Users on the internet will access a public IP address that you have statically and permanently linked to your servers internal IP address. Of course any time your internal server sends packet to the internet, it’s source IP address will be translated into a public IP address configured with static NAT.</p>
<p><a title="Configuring Dynamic NAT on Cisco Routers" href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-dynamic-nat-on-cisco-routers/"><strong>Dynamic NAT</strong></a> is used for many-to-many mapping. This will allow all your internal computers to be translated into a pool of public IP addresses, however if you only have 10 public IP addresses available in the NAT pool, only 10 computers will be able to access the public network at a time. Each computer will consume one public address at a time which makes this very limited for public internet access. The main purpose for dynamic NAT is to fix overlap IP addresses often experienced after a merger or acquisition. Since all companies use RFC 1918 for internal addresses, it’s not uncommon for 2 companies to be using the exact same internal IP addresses. When a merger or acquisition takes place there are issues with the IP addresses conflicting. Dynamic NAT allows us to translate the internal IP addresses from company ‘A’ into something unique that company ‘B’ does not use, and similarly translate all the internal IP addresses in company ‘B’ into something unique that company ‘A’ does not use. In most cases the ‘public’ address that the two companies will be translated into, will be part of RFC 1918 and will be used purely to resolve IP address overlaps, and NOT internet access.</p>
<p><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/"><strong>NAT overload</strong></a>, or otherwise known as <strong>PAT (Port Address Translation),</strong> allows us to create a many-to-one mapping. Every computer in your network will be translated into a single Public IP address. This allows us to save on public addresses but still allows each computer in our organisation to access the internet at the same time. PAT identifies each session based on the source port number used in the communication flow. Since each session uses a random source port number, each session in theory should have a different number which allows PAT to associate a session with the single public IP addresses been shared. In the occurrence of two computers randomly choosing the same source port number, PAT will translate the port number and keep a record of the original as well as the new translated port to maintain the session. PAT will not allow internet users to access your internal servers as there is no mapping from outside to inside. The maximum theoretical limit for sharing a single IP address is 64,513 however the practical limit is dependent on the router or firewall doing the PAT and is usually limited to no more than 4,000 sessions to a single IP address.</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/networking-101/useable-ip-addresses-in-private-networks/' rel='bookmark' title='Permanent Link: Useable IP addresses in private networks'>Useable IP addresses in private networks</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/ccna/nat-network-address-translation/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>DoS TCP SYN Attack Mitigation</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 14:22:40 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[Intrusion Prevention]]></category>
		<category><![CDATA[IPS]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Access Lists]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=525</guid>
		<description><![CDATA[TCP SYN flooding is often used in conjunction with IP spoofing. The main aim of a TCP SYN flood is to send a TCP SYN packet to a host inside your network from a spoofed IP address. The TCP SYN ACK is then sent to a machine that is not expecting one, or a machine [...]]]></description>
			<content:encoded><![CDATA[<p>TCP SYN flooding is often used in conjunction with <a href="http://www.anythingoverip.co.za/tutorials/course-content/iscw/ip-address-spoofing-mitigation-with-access-control-lists-acl/">IP spoofing</a>.</p>
<p>The main aim of a TCP SYN flood is to send a TCP SYN packet to a host inside your network from a spoofed IP address. The TCP SYN ACK is then sent to a machine that is not expecting one, or a machine that doesn’t exist. This causes a ‘half-opened’ connection (Embryonic Connection) to exist since the 3-way handshake has not completed with a ACK.</p>
<p> </p>
<p>A Cisco router is only capable of having a certain amount of connections open to it (This is different depending on the router model) so if an attacker was to send thousands of spoofed TCP SYN packets the router would reach maximum allowed connections, even though the connections are not complete. This would prevent the router from allowing legitimate connections been created.</p>
<p> </p>
<p>In order to completely fix this problem, a firewall that supports dynamic embryonic connections would need to be installed, however a router can prevent the flood of TCP SYN packets by disallowing connections from the outside coming into your network.</p>
<p> </p>
<p>This means that only connections that were created from inside your network would work and all connections from the outside would be denied.</p>
<p> </p>
<p>Here is the configuration breakdown. (FastEthernet 0/0 is the outside network)</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>AOIP.ORG(config)# access-list 101 permit tcp any 192.168.1.0 0.0.0.255 established</strong></p>
<p><strong>AOIP.ORG(config)# access-list 101 deny ip any any log</strong></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><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/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><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></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/dos-tcp-syn-attack-mitigation/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>Introduction to ACLs (Access Control List)</title>
		<link>http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/</link>
		<comments>http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/#comments</comments>
		<pubDate>Thu, 13 Aug 2009 12:31:13 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[CCNA (ICND2)]]></category>
		<category><![CDATA[Networking 101]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Access Lists]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=371</guid>
		<description><![CDATA[Before looking into the configuration of ACL (Access Control Lists), it’s important to get some of the concepts and understanding of how they work and what they are used for. Firstly, most people believe that ACL’s are used purely for denying or allowing traffic, although this is certainly one of the functions of a ACL [...]]]></description>
			<content:encoded><![CDATA[<p>Before looking into the configuration of ACL (Access Control Lists), it’s important to get some of the concepts and understanding of how they work and what they are used for.</p>
<p>Firstly, most people believe that ACL’s are used purely for denying or allowing traffic, although this is certainly one of the functions of a ACL it certainly not the only function. ACL’s can be used for</p>
<p> </p>
<p>1/ Permitting or denying packets moving THROUGH the router.</p>
<p>2/ Permitting or denying packet TO or FROM the router.</p>
<p>3/ QOS (Quality of Service)</p>
<p>4/ DDR (Dial-on Demand Routing)</p>
<p>5/ Route filtering</p>
<p> </p>
<p>So let’s break down each of the above to see its use.</p>
<p> </p>
<p>1/ When you want to restrict traffic from flowing THROUGH a router, you can attach a ACL to an interface of the router. This can be done on a INBOUND or OUTBOUND direction. The direction of the traffic is vitally important and how the router processes the information differs depending on direction of the ACL. If the ACL is bound to an interface INBOUND the ACL will take effect before any processing is done by the router. If the ACL is bound to an interface in a OUTBOUND direction, the router would have already processed the packet entirely before possibly dropping it. This could increase the processing on the router unnecessarily.</p>
<p> </p>
<p>2/ Attaching an ACL to an interface however does NOT stop traffic that is going TO or FROM the router. This means that if I’m trying to telnet to the router, the ACL on the interface will NOT APPLY. In order to restrict traffic TO or FROM the router we need to attach the ACL to the Virtual Interfaces of the router (<a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/">VTY</a> lines).</p>
<p> </p>
<p>3/ QOS uses ACL to define traffic that you wish to prioritise. The ACL are not bound to interfaces but are used in modular QOS</p>
<p> </p>
<p>4/ When using dial-up interfaces such as modems or <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-basic-isdn-with-interesting-traffic/">ISDN</a> you don’t want to allow any traffic to cause the interfaces to dial. If all traffic was allowed to cause the lines to dial then every time a broadcast message took place the lines would dial. This would result in the lines constantly been connected and result in a large phone bill. With ACL for DDR we define what traffic is allowed to make the modem or ISDN lines dial and create a connection. It is important to understand that when the line is active ALL traffic is allowed to flow through the line. These ACL do not restrict traffic from flowing, they restrict traffic from causing the lines to dial!</p>
<p> </p>
<p>5/ Route filtering is used when we wish to re-distribute routes learnt from one routing protocol into another one. This is most commonly seen when you have an EGP (Exterior Gateway Protocol) like BGP and you wish to insert some of the routes learnt from BGP into your IGP (Interior Gateway Protocol) such as <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-ospf-on-a-cisco-router/">OSPF</a>. You cannot re-distribute the entire BGP routing table into OSPF as OSPF cannot handle a routing table of that size, so we can restrict which entries that will be re-distributed using an ACL.</p>
<p> </p>
<p>Now that we understand the different uses of Access Control List we now need to see the 3 different types of ACL’s. STANDARD, EXTENDED and NAMED</p>
<p> </p>
<p><strong>Standard ACL</strong> only check the source address of the packet and can either permit or deny the entire protocol suite. It will have a number between 1-99 and 1300-1999</p>
<p><strong>Extended ACL</strong> can check the source and destination addresses, the source and destination port numbers, and specific protocols. It will have a number between 100-199 and 2000-2699</p>
<p><strong>Named ACL</strong> can be either standard or extended ACL, however we can associate a name to the ACL instead of using numbers.</p>
<p> </p>
<p><strong>Guidelines:</strong></p>
<p>- One ACL per interface, per protocol, per direction</p>
<p>- The order of ACL statements is important. Once  match has been made no further testing is done.</p>
<p>- The most restrictive statements go at the top of the list</p>
<p>- The last statement in an ACL is ALWAYS an implicit deny any, so every ACL needs at least one permit statement</p>
<p>- ACL must be configured before applying them to interfaces</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/ccna/restricting-access-to-vty-virtual-terminal-lines/' rel='bookmark' title='Permanent Link: Restricting access to VTY (Virtual Terminal Lines)'>Restricting access to VTY (Virtual Terminal Lines)</a></li><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/ccna/configuring-vty-access/' rel='bookmark' title='Permanent Link: Configuring VTY Access'>Configuring VTY Access</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

