<?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; Access-Lists</title>
	<atom:link href="http://www.anythingoverip.co.za/category/tutorials/topic/access-lists-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 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 Basic ISDN with Interesting Traffic</title>
		<link>http://www.anythingoverip.co.za/tutorials/course-content/iscw/configuring-basic-isdn-with-interesting-traffic/</link>
		<comments>http://www.anythingoverip.co.za/tutorials/course-content/iscw/configuring-basic-isdn-with-interesting-traffic/#comments</comments>
		<pubDate>Tue, 25 Aug 2009 14:10:17 +0000</pubDate>
		<dc:creator>Jay</dc:creator>
				<category><![CDATA[Access-Lists]]></category>
		<category><![CDATA[ISCW]]></category>
		<category><![CDATA[Routing]]></category>
		<category><![CDATA[WAN]]></category>
		<category><![CDATA[ISDN]]></category>

		<guid isPermaLink="false">http://www.anythingoverip.co.za/?p=537</guid>
		<description><![CDATA[When configuring ISDN with interesting traffic, it’s important to first understand how Cisco defines ‘interesting’ and what this means in terms of the connection been formed. Interesting traffic is traffic that we define in the form of an access-list that is allowed to cause the ISDN to dial. This does NOT mean it is the [...]]]></description>
			<content:encoded><![CDATA[<p>When configuring ISDN with interesting traffic, it’s important to first understand how Cisco defines ‘interesting’ and what this means in terms of the connection been formed. Interesting traffic is traffic that we define in the form of an <a href="http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/">access-list </a>that is allowed to cause the ISDN to dial. This does NOT mean it is the only traffic allowed to use the link but this does tie in directly with the idle-timeout value that we need to set on the ISDN interface.</p>
<p> </p>
<p>For example: If I define an access-list that allows telnet and denies everything else, then telnet is the only traffic that will cause my ISDN interface to dial the remote router. Once the line has connected, ANY traffic may flow over the ISDN line. The router is looking purely for ‘interesting traffic’ so if no telnet traffic is sent over the line for the idle-timeout value, the line will drop.</p>
<p> </p>
<p>This type of installation of ISDN is fantastic for very small branch offices that do not need to be connected to HQ permanently and you only need the link to be established for short periods of time. This however is not a good link backup solution.</p>
<p> </p>
<p>In the below configuration we have created an <a href="http://www.anythingoverip.co.za/networking-101/introduction-to-acls-access-control-list/">access-list </a>that will allow telnet traffic to cause the link to be established.</p>
<p> </p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-539" title="isdn" src="http://www.anythingoverip.co.za/wp-content/uploads/2009/08/isdn.jpg" alt="isdn" width="350" height="79" /></p>
<p> </p>
<p><strong>AOIP.ORG(config)# access-list 102 permit tcp any any eq telnet</strong></p>
<p>Create the Access-list to be used to specify interesting traffic</p>
<p> </p>
<p><strong>AOIP.ORG(config)# dialer-list 2 protocol ip list 102    </strong></p>
<p>The dialer-list defines what traffic is interesting, in this case – Access list 102</p>
<p> </p>
<p><strong>AOIP.ORG(config)# isdn switch-type basic-net3</strong></p>
<p>Define the <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/isdn-switch-type/">switch-type </a>needed for ISDN, This is the settings for BRI interfaces in Europe and Africa</p>
<p> </p>
<p><strong>AOIP.ORG(config)# int bri 2/0</strong></p>
<p>Enter the BRI interface you wish to configure</p>
<p><strong>AOIP.ORG(config-if)# ip address 10.0.1.1</strong></p>
<p>Set an IP address on the ISDN interface</p>
<p><strong>AOIP.ORG(config-if)# encapsulation ppp</strong></p>
<p>Define <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/configuring-ppp-encapsulation/">PPP as the encapsulation </a>method</p>
<p><strong>AOIP.ORG(config-if)# ppp authentication chap</strong></p>
<p>Authentication for PPP has been set to CHAP</p>
<p><strong>AOIP.ORG(config-if)# dialer-group 2 </strong></p>
<p>This tells our ISDN interface to use Dialer-list 2, you will notice the numbers for ‘dialer-group’ and ‘dialer-list’ match</p>
<p><strong>AOIP.ORG(config-if)# dialer idle-timeout 180</strong></p>
<p>If no interesting traffic is sent for 180 seconds, the line will drop</p>
<p><strong>AOIP.ORG(config-if)# dialer map ip 10.0.1.2 name Router2 5551234   </strong></p>
<p>If you need to connect to the IP address 10.0.1.2 (The remote routers ISDN interface), The remote router is name “Router2” and the telephone number to dial is “5551234”</p>
<p><strong>AOIP.ORG(config-if)# no shut</strong></p>
<p> </p>
<p><strong>AOIP.ORG(config)# ip route 192.168.2.0 255.255.255.0 10.0.1.2</strong></p>
<p>Create a <a href="http://www.anythingoverip.co.za/tutorials/course-content/ccna/static-routing/">static route </a>for the remote subnet with a next hop of Router2’s ISDN interface.</p>
<p> </p>
<p><strong>AOIP.ORG(config)# username Router2 password aoip</strong></p>
<p>The remote routers hostname and a password that will be used for PPP authentication</p>


<p>Related posts:<ol><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/isdn-and-multilink-with-load-threshold/' rel='bookmark' title='Permanent Link: ISDN and Multilink with load-threshold'>ISDN and Multilink with load-threshold</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/isdn-switch-type/' rel='bookmark' title='Permanent Link: ISDN Switch-type'>ISDN Switch-type</a></li><li><a href='http://www.anythingoverip.co.za/tutorials/course-content/iscw/floating-static-routes/' rel='bookmark' title='Permanent Link: Floating Static Routes'>Floating Static Routes</a></li></ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.anythingoverip.co.za/tutorials/course-content/iscw/configuring-basic-isdn-with-interesting-traffic/feed/</wfw:commentRss>
		<slash:comments>9</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>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>

