<?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>Tech 21 Century &#187; Cisco ASA Configuration</title>
	<atom:link href="http://www.tech21century.com/category/cisco/cisco-asa-firewall/cisco-asa-configuration/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.tech21century.com</link>
	<description>Technology in the 21st Century</description>
	<lastBuildDate>Sat, 04 Feb 2012 15:17:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Site to Site VPN between Cisco ASA and Router</title>
		<link>http://www.tech21century.com/site-to-site-vpn-between-cisco-asa-and-router/</link>
		<comments>http://www.tech21century.com/site-to-site-vpn-between-cisco-asa-and-router/#comments</comments>
		<pubDate>Wed, 25 May 2011 15:33:48 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1761</guid>
		<description><![CDATA[In this post we will configure Site-to-Site IPSEC VPN between a Cisco IOS Router and ASA Firewall. ASA configuration is not much different from Cisco IOS with regards to IPSEC VPN since the fundamental concepts are the same. Let’s start our LAB example and we’ll see how it’s done. Consider the following diagram. The first [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/cisco-router-with-cisco-asa-for-internet-access/' rel='bookmark' title='Cisco Router with Cisco ASA for Internet Access'>Cisco Router with Cisco ASA for Internet Access</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-anyconnect-ssl-vpn-on-cisco-asa-5500/' rel='bookmark' title='How To Configure AnyConnect SSL VPN on Cisco ASA 5500'>How To Configure AnyConnect SSL VPN on Cisco ASA 5500</a></li>
<li><a href='http://www.tech21century.com/vpn-client-error-syslog-id-305006/' rel='bookmark' title='VPN client Error -Syslog ID 305006'>VPN client Error -Syslog ID 305006</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>In this post we will configure Site-to-Site IPSEC VPN between a Cisco IOS Router and ASA Firewall. ASA configuration is not much different from Cisco IOS with regards to IPSEC VPN since the fundamental concepts are the same. Let’s start our LAB example and we’ll see how it’s done.</p>
<p>Consider the following diagram. The first site (Remote1) is equipped with a Cisco ASA firewall (any model) and the second site (Remote2) is equipped with a Cisco Router. Remember that a Cisco ASA firewall is by default capable to support IPSEC VPN but a Cisco Router must have the proper IOS software type in order to support encrypted VPN tunnels.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-1762" title="site-to-site-VPN-Between-ASA-and-router" src="http://www.tech21century.com/wp-content/uploads/2011/05/site-to-site-VPN-Between-ASA-and-router.jpg" alt="" width="550" height="300" /></p>
<p><span style="text-decoration: underline;">Equipment Used in this LAB:</span></p>
<ul>
<li>ASA 5510 &#8211; Cisco Adaptive Security Appliance Software Version 8.0(3)</li>
</ul>
<ul>
<li> Cisco Router 2801 &#8211;  C2801-ADVIPSERVICESK9-M  Version 12.4(9)T4</li>
</ul>
<p><span style="text-decoration: underline;">Scenario: </span></p>
<p>LAN of Remote1 must be connected to LAN of Remote2 via VPN Tunnel. The most usual scenario is that the WAN cloud is the Internet, so secure connectivity shall be provided between the two LAN networks over the Internet.</p>
<p>First of all we shall make sure that the outside interfaces of ASA and router must be reachable over the WAN. Now let’s start IPSEC VPN configuration.</p>
<p><span style="text-decoration: underline;"><strong>Cisco ASA Configuration</strong></span></p>
<p>First I started ASA configuration.</p>
<p>I’ve created an Access list, which will match the interesting traffic which is the traffic to be encrypted. If source is 192.168.3.0/24 and destination is 192.168.4.0/24, then traffic will be matched by the access list as “interesting traffic” and will be encrypted and pass through the tunnel.</p>
<p><strong>ASA(config)# access-list vpn extended permit ip 192.168.3.0 255.255.255.0 192.168.4.0 255.255.255.0</strong></p>
<p><em>!IKE PHASE #1<br /> ! I’ve created a phase1 policy. This policy provides secured process of exchanging Keys.</em><br /> <strong>ASA(config)# crypto isakmp policy 1 </strong></p>
<p><em>! For authentication I used Pre-shared. This method is most frequently used today.</em><br /> <strong>ASA(config)#  authentication pre-share</strong></p>
<p><em>!For encryption I used 3des.</em><br /> <strong>ASA(config)#  encryption 3des</strong></p>
<p><em>! Hashing md5</em>.<br /> <strong>ASA(config)#  hash md5</strong></p>
<p><em>! I used second group of diffie-hellman. Group1 is used by default. The most secured is Group5.</em><br /> <strong>ASA(config)#  group 2</strong></p>
<p><em>! configure crypto key. The keys must match to each other between peers. Otherwise Phase1 will  not be completed.</em><br /> <strong>ASA(config)#  crypto  isakmp secretsharedkey  address 192.168.2.2</strong></p>
<p>NOTE:   Crypto key is hidden in ASA configuration. If we look at configuration, it will be shown in following way.<br /> <strong>tunnel-group 192.168.2.2 ipsec-attributes<br /> pre-shared-key *</strong></p>
<p><em>! Activate policy on Outside interface.</em><br /> <strong>ASA(config)#  crypto isakmp enable outside</strong></p>
<p><em>! IKE PHASE #2- VPN Tunnel is established during this phase and the traffic between VPN Peers is encrypted according to the security parameters of this phase. </em></p>
<p><em>! I created Transform-set, by which the traffic will be encrypted and hashed between VPN peers.</em><br /> <strong>ASA(config)#  crypto ipsec transform-set ts esp-3des esp-md5-hmac</strong></p>
<p><em>! Apply the access list created earlier for matching the interesting traffic.</em><br /> <strong>ASA(config)#  crypto map vpn 10 match address vpn</strong></p>
<p><em>! I indicated address of Remote2 peer public outside interface.</em><br /> <strong>ASA(config)#  crypto map vpn 10 set peer 192.168.2.2</strong></p>
<p><em>! Apply also the transform-set.</em><br /> <strong>ASA(config)#  crypto map vpn 10 set transform-set ts</strong></p>
<p><em>! Attach the already created Crypto-map and VPN to outside interface.</em><br /> <strong>ASA(config)#  crypto map vpn interface outside</strong></p>
<p>ASA configuration is completed here (regarding the VPN config of course). Now let’s start Router Configuration below.</p>
<p><span style="text-decoration: underline;"><strong>Cisco Router Configuration</strong></span></p>
<p><em>ISAKMP Phase 1</em></p>
<p><em>! Enter crypto-isakmp policy configuration mode for configuring crypto isakmp policy.</em><br /> <strong>Router(config)# crypto isakmp policy 10</strong></p>
<p><em>! Turn on 3des as an encryption type.</em><br /> <strong>Router(config)# encr 3des</strong></p>
<p><em>! I indicated MD5 as a hashing type.</em><br /> <strong>Router(config)# hash md5</strong></p>
<p><em>! I indicated pre-share authentication.</em><br /> <strong>Router(config)# authentication pre-share</strong></p>
<p><em>! I used second group of diffie-hellman.  group1 is used by default.</em><br /> <strong>Router(config)# group 2</strong></p>
<p><em>! I defined peer key same as ASA site.</em><br /> <strong>Router(config)# crypto isakmp secretsharedkey address 192.168.1.2</strong></p>
<p>It’s not necessary to match policy numbers. The most important is to match corresponding parameters of policy. Otherwise negotiation of Phase1 will not be successful.</p>
<p><em>! Access list for matching interesting traffic.</em><br /> <strong>Router(config)# ip access-list extended vpn<br /> Router(config)# permit ip 192.168.4.0 0.0.0.255 192.168.3.0 0.0.0.255</strong></p>
<p><em>ISAKMP PHASE 2</em><br /> !<br /> <em>! Create IPSEC transform-set, by which the mechanism of hashing and encryption is determined, by which the traffic will be hashed/encrypted in VPN tunnel later.</em><br /> <strong>Router(config)# crypto ipsec transform-set ts esp-3des esp-md5-hmac</strong></p>
<p><em>! Enter into crypto-map configuration mode.</em><br /> <strong>Router(config)# crypto map vpn 10 ipsec-isakmp</strong></p>
<p><em>! Indicate IP address of peer.</em><br /> <strong>Router(config)# set peer 192.168.1.2</strong></p>
<p><em>! Indicate IPsec transform-set created above.</em><br /> <strong>Router(config)# set transform-set ts</strong></p>
<p><em>! Apply access list created above.</em><br /> <strong>Router(config)# match address vpn</strong></p>
<p><em>! Apply crypto-map to interface.</em><br /> <strong>Router(config)# interface FastEthernet0/0<br /> Router(config)# crypto map vpn</strong></p>
<p>With this, VPN configuration is completed so let’s start verification.</p>
<p><em>! In the output below it is shown that ISAKMP PHASE1 is active, which means that negotiation of PHASE1 is completed successfully. </em></p>
<p><strong>ASA# show crypto isakmp sa</strong></p>
<p>Active SA: 1<br /> Rekey SA: 0 (A tunnel will report 1 Active and 1 Rekey SA during rekey)<br /> Total IKE SA: 1</p>
<p>1   IKE Peer: 192.168.2.2<br /> Type    : L2L             Role    : initiator<br /> Rekey   : no <span style="color: #ff0000;"> State   : MM_ACTIVE</span></p>
<p><strong>Router# show crypto isakmp sa</strong><br /> dst             src             state          conn-id slot<br /> <span style="color: #ff0000;">192.168.1.2     192.168.2.2     MM_ACTIVE              1    0</span></p>
<p>! Checking ISAKMP PHASE2. Here we see that IPSec is working and the interesting traffic flows in VPN Tunnel.</p>
<p><strong>ASA# show crypto ipsec sa</strong><br /> interface: outside<br /> Crypto map tag: vpn, seq num: 10, local addr: 192.168.1.2</p>
<p>access-list vpn permit ip 192.168.3.0 255.255.255.0 192.168.4.0 255.255.255.0<br /> local ident (addr/mask/prot/port): (192.168.3.0/255.255.255.0/0/0)<br /> remote ident (addr/mask/prot/port): (192.168.4.0/255.255.255.0/0/0)<br /> current_peer: 192.168.2.2</p>
<p><span style="color: #ff0000;">#pkts encaps: 344, #pkts encrypt: 344, #pkts digest: 344<br /> #pkts decaps: 344, #pkts decrypt: 344, #pkts verify: 344</span><br /> #pkts compressed: 0, #pkts decompressed: 0<br /> #pkts not compressed: 344, #pkts comp failed: 0, #pkts decomp failed: 0<br /> #pre-frag successes: 0, #pre-frag failures: 0, #framents created: 0<br /> #PMTUs sent: 0, #PMTUs rcvd: 0, #decapsulated frgs needing reassembly: 0<br /> #send errors: 0, #recv errors: 0</p>
<p><strong>Router# show crypto ipsec sa</strong></p>
<p>interface: FastEthernet0/0<br /> Crypto map tag: vpn, local addr 192.168.2.2</p>
<p>protected vrf: (none)<br /> local  ident (addr/mask/prot/port): (192.168.4.0/255.255.255.0/0/0)<br /> remote ident (addr/mask/prot/port): (192.168.3.0/255.255.255.0/0/0)<br /> current_peer 192.168.1.2 port 500<br /> PERMIT, flags={origin_is_acl,}<br /> <span style="color: #ff0000;">#pkts encaps: 344, #pkts encrypt: 344, #pkts digest: 344<br /> #pkts decaps: 344, #pkts decrypt: 344, #pkts verify: 344</span><br /> #pkts compressed: 0, #pkts decompressed: 0<br /> #pkts not compressed: 0, #pkts compr. failed: 0<br /> #pkts not decompressed: 0, #pkts decompress failed: 0<br /> #send errors 0, #recv errors 0</p>
<p>VPN Tunnel is established and works.</p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/cisco-router-with-cisco-asa-for-internet-access/' rel='bookmark' title='Cisco Router with Cisco ASA for Internet Access'>Cisco Router with Cisco ASA for Internet Access</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-anyconnect-ssl-vpn-on-cisco-asa-5500/' rel='bookmark' title='How To Configure AnyConnect SSL VPN on Cisco ASA 5500'>How To Configure AnyConnect SSL VPN on Cisco ASA 5500</a></li>
<li><a href='http://www.tech21century.com/vpn-client-error-syslog-id-305006/' rel='bookmark' title='VPN client Error -Syslog ID 305006'>VPN client Error -Syslog ID 305006</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/site-to-site-vpn-between-cisco-asa-and-router/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Preventing SQL Injection Attacks with Cisco ASA Firewall</title>
		<link>http://www.tech21century.com/preventing-sql-injection-attacks-with-cisco-asa-firewall/</link>
		<comments>http://www.tech21century.com/preventing-sql-injection-attacks-with-cisco-asa-firewall/#comments</comments>
		<pubDate>Sat, 16 Apr 2011 10:47:15 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1713</guid>
		<description><![CDATA[Today I have stumbled upon an interesting technique from the Cisco Blog and Cisco Support Forum which is about defending an SQL injection using IPS, ASA or IOS firewall. I will concentrate on the ASA here to show you what you can do with this great device. Ofcourse what I will show works only for [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/traffic-rate-limiting-on-cisco-asa/' rel='bookmark' title='Traffic Rate Limiting on Cisco ASA'>Traffic Rate Limiting on Cisco ASA</a></li>
<li><a href='http://www.tech21century.com/block-attacks-with-a-cisco-asa-firewall-and-ids-using-the-shun-command/' rel='bookmark' title='Block Attacks with a Cisco ASA Firewall and IDS using the shun command'>Block Attacks with a Cisco ASA Firewall and IDS using the shun command</a></li>
<li><a href='http://www.tech21century.com/dns-security-protection-parameters/' rel='bookmark' title='DNS Security Protection Parameters'>DNS Security Protection Parameters</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Today I have stumbled upon an interesting technique from the Cisco Blog and Cisco Support Forum which is about defending an SQL injection using IPS, ASA or IOS firewall. I will concentrate on the ASA here to show you what you can do with this great device. Ofcourse what I will show works only for specific SQL attacks and is not an “ALL IN ONE” mechanism for preventing all SQL attacks. You should have a web application firewall in addition to ASA in my opinion if you want to have a full blown SQL and Web Application protection.</p>
<p>So basically the ASA uses regular expressions (regex) together with Modular Policy Framework to inspect specific HTTP data patterns in order to detect the SQL injection attack. It will basically check for the SQL command “UNION ALL SELECT”.</p>
<p>Below is the configuration as described on the Cisco support forum:</p>
<p><strong>regex SQL_regex_1 &#8220;[uU][nN][iI][oO][nN]([%]2[0bB]|[+])([aA][lL][lL]([%]2[0bB]|[+]))?[sS][eE][lL][eE][cC][tT]&#8220;<br /> regex SQL_regex_2 &#8220;[Ss][Ee][Ll][Ee][Cc][Tt](%2[0bB]|+)[^\r\x00-\x19\x7f-\xff]+(%2[0bB]|+)[Ff][Rr][Oo][Mm](%2[0bB]|+)&#8221;<br /> !<br /> class-map WebServers<br /> match port tcp eq www<br /> class-map type inspect http match-any SQL-map<br /> match request body regex SQL_regex_1<br /> match request body regex SQL_regex_2<br /> !<br /> policy-map type inspect http drop-SQL<br /> parameters<br /> body-match-maximum 3000<br /> class SQL-map<br /> drop-connection log<br /> policy-map SQL-traffic<br /> class WebServers<br /> inspect http drop-SQL<br /> !<br /> service-policy SQL-traffic interface outside</strong></p>
<p>We assume that our webserver is protected on a DMZ zone on the ASA. Traffic is coming from the outside so the service policy (SQL-traffic) is applied on the outside. Upon a regular expression match, the ASA will drop the HTTP connection and generate a log.  The above is a just a starting point for SQL attack protection and can not defend against all attacks. For example if the SQL statement is Hex encoded or url encoded by the attacker, the regex will not detect it. Here is the link from Cisco forum for more information:</p>
<p><a rel="nofollow" href="https://supportforums.cisco.com/docs/DOC-14890" target="_blank">https://supportforums.cisco.com/docs/DOC-14890</a></p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/traffic-rate-limiting-on-cisco-asa/' rel='bookmark' title='Traffic Rate Limiting on Cisco ASA'>Traffic Rate Limiting on Cisco ASA</a></li>
<li><a href='http://www.tech21century.com/block-attacks-with-a-cisco-asa-firewall-and-ids-using-the-shun-command/' rel='bookmark' title='Block Attacks with a Cisco ASA Firewall and IDS using the shun command'>Block Attacks with a Cisco ASA Firewall and IDS using the shun command</a></li>
<li><a href='http://www.tech21century.com/dns-security-protection-parameters/' rel='bookmark' title='DNS Security Protection Parameters'>DNS Security Protection Parameters</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/preventing-sql-injection-attacks-with-cisco-asa-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to configure DHCP Relay on Cisco ASA Firewall</title>
		<link>http://www.tech21century.com/how-to-configure-dhcp-relay-on-cisco-asa-firewall/</link>
		<comments>http://www.tech21century.com/how-to-configure-dhcp-relay-on-cisco-asa-firewall/#comments</comments>
		<pubDate>Tue, 20 Jul 2010 19:31:33 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1095</guid>
		<description><![CDATA[The ASA 5500 series firewall can work as DHCP relay agent which means that it receives DHCP requests from clients on one interface and forwards the requests to a DHCP server on another interface. Usually the DHCP server is located in the same layer 3 subnet with its clients. There are situations however where we [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-snmp-on-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure SNMP on Cisco ASA 5500 Firewall'>How to Configure SNMP on Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/configure-static-routing-on-cisco-asa-firewall/' rel='bookmark' title='Configure Static Routing on Cisco ASA Firewall'>Configure Static Routing on Cisco ASA Firewall</a></li>
<li><a href='http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/' rel='bookmark' title='Configure Cisco ASA 5505 to allow Remote Desktop access from Internet'>Configure Cisco ASA 5505 to allow Remote Desktop access from Internet</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The ASA 5500 series firewall can work as DHCP relay agent which means that it receives DHCP requests from clients on one interface and forwards the requests to a DHCP server on another interface. Usually the DHCP server is located in the same layer 3 subnet with its clients. There are situations however where we have only one DHCP server but several layer 3 networks exist (on different security zones on a Cisco ASA) and dynamic IP allocation is required for those networks as well. With the DHCP relay feature, we can connect the DHCP server on one network zone and have the firewall forward all DHCP requests from the other network zones to the DHCP server.</p>
<div>
<div style="float: left;">[ad#embedded-square]</div>
<p>The diagram below illustrates a simple network scenario with three security zones (network interfaces) and a single DHCP server. The three network zones are inside, outside and DMZ. The DHCP clients are connected to the inside network and the DHCP server on the DMZ network. The DHCP requests from the clients on the inside network will be relayed to the server on the DMZ network. The server will assign IP addresses in the range 192.168.1.0/24 to the clients.</p>
</div>
<p style="text-align: center;"><img class="alignnone" title="cisco asa dhcp relay" src="http://www.tech21century.com/images/cisco-asa-dhcp-relay.jpg" alt="" width="480" height="450" /></p>
<p><span style="text-decoration: underline;"><strong>Configuration</strong></span></p>
<p>!<em>First identify the DHCP server and the interface it Is connected to</em><br /> <strong>ciscoasa# conf t<br /> ciscoasa(config)# dhcprelay server 10.1.1.100 DMZ<br /> ciscoasa(config)# dhcprelay timeout 90</strong></p>
<p>!<em>Now enable the DHCP relay on the inside interface</em><br /> <strong>ciscoasa(config)# dhcprelay enable inside</strong></p>
<p>!<em>Assign the ASA inside interface IP as default gateway for the clients</em><br /> <strong>ciscoasa(config)# dhcprelay setroute inside</strong></p>
<p><span style="text-decoration: underline;"><strong>Usage Guidelines</strong></span></p>
<p>You can add up to four DHCP relay servers per interface. You must add at least one dhcprelay server command to the ASA Firewall configuration before you can enter the dhcprelay enable command. You cannot configure a DHCP client on an interface that has a DHCP relay server configured.</p>
<p>You cannot enable DHCP relay under the following conditions:<br /> • You cannot enable DHCP relay and the DHCP relay server on the same interface.<br /> • You cannot enable DCHP relay and a DHCP server (dhcpd enable) on the same interface.</p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-snmp-on-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure SNMP on Cisco ASA 5500 Firewall'>How to Configure SNMP on Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/configure-static-routing-on-cisco-asa-firewall/' rel='bookmark' title='Configure Static Routing on Cisco ASA Firewall'>Configure Static Routing on Cisco ASA Firewall</a></li>
<li><a href='http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/' rel='bookmark' title='Configure Cisco ASA 5505 to allow Remote Desktop access from Internet'>Configure Cisco ASA 5505 to allow Remote Desktop access from Internet</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/how-to-configure-dhcp-relay-on-cisco-asa-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco ASA 5500 Firewall Configuration-User Interface and Access Modes</title>
		<link>http://www.tech21century.com/cisco-asa-5500-firewall-configuration-user-interface-and-access-modes/</link>
		<comments>http://www.tech21century.com/cisco-asa-5500-firewall-configuration-user-interface-and-access-modes/#comments</comments>
		<pubDate>Tue, 06 Jul 2010 14:12:42 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1085</guid>
		<description><![CDATA[This article describes the user interface and access modes and commands associated with the operation of Cisco ASA 5500 firewall appliances. We assume that you know how to connect to the appliance using a console cable (the blue flat cable with RJ-45 on one end, and DB-9 Serial on the other end) and a Terminal [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/password-recovery-for-the-cisco-asa-5500-firewall/' rel='bookmark' title='Password Recovery for the Cisco ASA 5500 Firewall'>Password Recovery for the Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>This article describes the user interface and access modes and commands associated with the operation of Cisco ASA 5500 firewall appliances. We assume that you know how to connect to the appliance using a console cable (the blue flat cable with RJ-45 on one end, and DB-9 Serial on the other end) and a Terminal Emulation software (e.g HyperTerminal), and how to use basic Command Line Interface.</p>
<p><span style="text-decoration: underline;"><strong>SECURITY APPLIANCE ACCESS MODES</strong></span><br /> A Cisco ASA security appliance has four main administrative access modes:</p>
<p>•	<strong><span style="text-decoration: underline;">Monitor Mode</span></strong>: Displays the <strong>monitor&gt;</strong> prompt. A special mode that enables you to update the image over the network or to perform password recovery. While in the monitor mode, you can enter commands to specify the location of a TFTP server and the location of the software image or password recovery binary image file to download. You access this mode by pressing the “Break” or “ESC” keys immediately after powering up the appliance.<br /> •	<strong><span style="text-decoration: underline;">Unprivileged Mode</span></strong>: Displays the <strong>&gt; </strong>prompt. Available when you first access the appliance. If the appliance is a Cisco PIX 500 series, the prompt for unprivileged mode is <strong>pixfirewall&gt;</strong> and if the appliance is the new Cisco ASA 5500 Series, the prompt is <strong>ciscoasa&gt;</strong></p>
<p>This mode provides restricted view of the security appliance. You cannot configure anything from this mode. To get started with configuration, the first command you need to know is the enable command. Type enable and hit Enter. The initial password is empty, so hit Enter again to move on the next access mode (Privileged Mode).</p>
<table border="0" align="center">
<tbody>
<tr>
<td><strong>ciscoasa&gt; enable</strong></td>
<td>&lt;&#8211;<span style="color: #0000ff;">Unprivileged Mode</span></td>
</tr>
<tr>
<td><strong>password:</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Enter a password here (initially its blank</span>)</td>
</tr>
<tr>
<td><strong>ciscoasa#</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Privileged Mode</span></td>
</tr>
</tbody>
</table>
<div>
<div style="float: left;">[ad#embedded-square]</div>
<p>•	<strong><span style="text-decoration: underline;">Privileged Mode</span></strong>: Displays the <strong>#</strong> prompt. Enables you to change the current settings. Any unprivileged command also works in this mode. From this mode you can see the current configuration by using &#8220;show running-config&#8221;. Still, you cannot configure anything yet until you go to Configuration Mode. You access the Configuration Mode using the configure terminal command from the Privileged Mode.</p>
</div>
<p>•	<strong><span style="text-decoration: underline;">Configuration Mode</span></strong>: This mode displays the <strong>(config)#</strong> prompt. Enables you to change all system configuration settings. Use exit from each mode to return to the previous mode.</p>
<table border="0" align="center">
<tbody>
<tr>
<td><strong>ciscoasa&gt; enable</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Unprivileged Mode</span></td>
</tr>
<tr>
<td><strong>password:</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Enter a password here (initially its blank)</span></td>
</tr>
<tr>
<td><strong>ciscoasa# configure terminal</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Privileged Mode</span></td>
</tr>
<tr>
<td><strong>ciscoasa(config)#</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Configuration Mode</span></td>
</tr>
<tr>
<td><strong>ciscoasa(config)# exit</strong></td>
<td></td>
</tr>
<tr>
<td><strong>ciscoasa# exit</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Back to Privileged Mode</span></td>
</tr>
<tr>
<td><strong>ciscoasa&gt;</strong></td>
<td>&lt;&#8211; <span style="color: #0000ff;">Back to Unprivileged Mode</span></td>
</tr>
</tbody>
</table>
<p>The <strong>(config)#</strong> mode is sometimes called Global Configuration Mode. Some configuration commands from this mode enter a command-specific mode and the prompt changes accordingly. For example the interface command enters interface configuration mode as shown below:</p>
<p><strong>ciscoasa(config)#</strong> interface GigabitEthernet0/1<br /> <strong>ciscoasa(config-if)#</strong> &lt;&#8211; <span style="color: #0000ff;">Configure Interface specific parameters </span></p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/password-recovery-for-the-cisco-asa-5500-firewall/' rel='bookmark' title='Password Recovery for the Cisco ASA 5500 Firewall'>Password Recovery for the Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/cisco-asa-5500-firewall-configuration-user-interface-and-access-modes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco ASA Firewall in Transparent Layer2 Mode</title>
		<link>http://www.tech21century.com/cisco-asa-firewall-in-transparent-layer2-mode/</link>
		<comments>http://www.tech21century.com/cisco-asa-firewall-in-transparent-layer2-mode/#comments</comments>
		<pubDate>Tue, 08 Jun 2010 14:30:04 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>
		<category><![CDATA[transparent firewall mode]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1071</guid>
		<description><![CDATA[Traditionally, a network firewall is a routed hop that acts as a default gateway for hosts that connect to one of its screened subnets. A transparent firewall (or Layer 2 firewall), on the other hand, acts like a &#8220;stealth firewall&#8221; and is not seen as a Layer 3 hop to connected devices. The appliance connects [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-dhcp-relay-on-cisco-asa-firewall/' rel='bookmark' title='How to configure DHCP Relay on Cisco ASA Firewall'>How to configure DHCP Relay on Cisco ASA Firewall</a></li>
<li><a href='http://www.tech21century.com/cisco-asa-multiple-context-mode-%e2%80%93-configuring-virtual-firewalls-on-same-chassis/' rel='bookmark' title='Cisco ASA Multiple Context Mode – Configuring Virtual Firewalls on Same Chassis'>Cisco ASA Multiple Context Mode – Configuring Virtual Firewalls on Same Chassis</a></li>
<li><a href='http://www.tech21century.com/configure-static-routing-on-cisco-asa-firewall/' rel='bookmark' title='Configure Static Routing on Cisco ASA Firewall'>Configure Static Routing on Cisco ASA Firewall</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Traditionally, a network firewall is a routed hop that acts as a default gateway for hosts that connect to one of its screened subnets. A transparent firewall (or Layer 2 firewall), on the other hand, acts like a &#8220;stealth firewall&#8221; and is not seen as a Layer 3 hop to connected devices. The appliance connects the same Layer 3 network subnet on its inside and outside ports, but each interface of the firewall resides in a different Layer 2 Vlan. The Cisco ASA firewall can operate both in Routed Firewall Mode (default mode) or in Transparent Firewall Mode.</p>
<p><span style="text-decoration: underline;">Routed Firewall Mode:</span></p>
<p>See the diagram below for a common network topology of a Cisco ASA firewall working in Routed Mode.</p>
<p style="text-align: center;"><img class="alignnone" title="cisco asa in routed mode" src="http://www.tech21century.com/images/asa-routed-mode.jpg" alt="" width="350" height="500" /></p>
<p>As you can see, there are two different network subnets. Inside network (10.20.20.0/24) and Outside Network (10.10.10.0/24). There must be also two different layer2 vlans (Vlan20 for inside network and Vlan10 for outside network). All hosts residing in internal network must belong to subnet 10.20.20.0 and must have default gateway the internal IP of the ASA (10.20.20.1).</p>
<p><span style="text-decoration: underline;">Transparent Firewall Mode:</span></p>
<p>The diagram below shows an example topology using a Cisco ASA in Layer 2 transparent mode.</p>
<p style="text-align: center;"><img class="alignnone" title="cisco asa transparent mode" src="http://www.tech21century.com/images/asa-transparent-mode.jpg" alt="" width="350" height="500" /></p>
<p>As you can see, there is only one Layer 3 network (10.10.10.0/24) BUT there MUST be two different Layer 2 Vlans (Vlan20 for inside zone and Vlan10 for outside zone). All hosts must reside in network range 10.10.10.0 and the devices must have as default gateway the IP address of the outside router (10.10.10.2). Also, a management IP address MUST be configured on the ASA firewall (again within the range of 10.10.10.0). DO NOT specify the management IP address of the ASA as the default gateway for connected devices.</p>
<div>
<div style="float: left;">[ad#embedded-square]</div>
<p><span style="text-decoration: underline;">Characteristics of Transparent Mode</span></p>
<p>•	Transparent firewall mode supports only two interfaces (inside and outside)<br /> •	The firewall bridges packets from one VLAN to the other instead of routing them.<br /> •	MAC lookups are performed instead of routing table lookups.<br /> •	Can run in single firewall context or in multiple firewall contexts.<br /> •	A management IP address is required on the ASA.<br /> •	The management IP address must be in the same subnet as the connected network.<br /> •	Each interface of the ASA must be a different VLAN interface.<br /> •	Even though the appliance acts as a Layer 2 bridge, Layer 3 traffic cannot pass through the security appliance from a lower security level to a higher security level interface.<br /> •	The firewall can allow any traffic through by using normal extended Access Control Lists (ACL).</p>
</div>
<p><span style="text-decoration: underline;">Initial Configuration</span></p>
<p>Asa(config)# firewall transparent</p>
<p>!<em>Configure management IP below</em><br /> Asa(config)# ip address 10.10.10.1 255.255.255.0</p>
<p>Asa(config)# interface Ethernet0/0<br /> Asa(config-if)# nameif outside<br /> Asa(config-if)#  security-level 0<br /> !<br /> Asa(config)# interface Ethernet0/1<br /> Asa(config-if)# nameif inside<br /> Asa(config-if)# security-level 100</p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-dhcp-relay-on-cisco-asa-firewall/' rel='bookmark' title='How to configure DHCP Relay on Cisco ASA Firewall'>How to configure DHCP Relay on Cisco ASA Firewall</a></li>
<li><a href='http://www.tech21century.com/cisco-asa-multiple-context-mode-%e2%80%93-configuring-virtual-firewalls-on-same-chassis/' rel='bookmark' title='Cisco ASA Multiple Context Mode – Configuring Virtual Firewalls on Same Chassis'>Cisco ASA Multiple Context Mode – Configuring Virtual Firewalls on Same Chassis</a></li>
<li><a href='http://www.tech21century.com/configure-static-routing-on-cisco-asa-firewall/' rel='bookmark' title='Configure Static Routing on Cisco ASA Firewall'>Configure Static Routing on Cisco ASA Firewall</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/cisco-asa-firewall-in-transparent-layer2-mode/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</title>
		<link>http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/</link>
		<comments>http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 13:47:45 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1069</guid>
		<description><![CDATA[The Cisco ASA 5500 is the new Cisco firewall model series which followed the successful Cisco PIX firewall appliance. Cisco calls the ASA 5500 a “security appliance” instead of just a “hardware firewall”, because the ASA is not just a firewall. This device combines several security functionalities, such as Intrusion Detection, Intrusion Prevention, Content Inspection, [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/' rel='bookmark' title='How to Create and Manage Access Control Lists on Cisco ASA'>How to Create and Manage Access Control Lists on Cisco ASA</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The Cisco ASA 5500 is the new Cisco firewall model series which followed the successful Cisco PIX firewall appliance. Cisco calls the ASA 5500 a “security appliance” instead of just a “hardware firewall”, because the ASA is not just a firewall. This device combines several security functionalities, such as Intrusion Detection, Intrusion Prevention, Content Inspection, Botnet Inspection, in addition to the firewall functionality.</p>
<p>However, the core ASA functionality is to work as a high performance firewall. All the other security features are just complimentary services on top of the firewall functionality. Having said that, the purpose of a network firewall is to protect computer and IT resources from malicious sources by blocking and controlling traffic flow. The Cisco ASA firewall achieves this traffic control using Access Control Lists (ACL).</p>
<div>
<div style="float: left;">[ad#embedded-square]</div>
<p>An ACL is a list of rules with permit or deny statements. Basically an Access Control List enforces the security policy on the network. The ACL (list of policy rules) is then applied to a firewall interface, either on the inbound or on the outbound traffic direction. If the ACL is applied on the inbound traffic direction (in), then the ACL is applied to traffic entering a firewall interface. The opposite happens for ACL applied to the outbound (out) direction.</p>
</div>
<p>The ACL permit or deny statements basically consist of source and destination IP addresses and ports. A permit ACL statement allows the specified source IP address/network to access the specified destination IP address/network. The opposite happens for deny ACL statements. At the end of the ACL, the firewall inserts by default an implicit DENY ALL statement rule which is not visible in the configuration.</p>
<p>Enough theory so far. Let us see some examples below to clarify what we have said above.</p>
<p>The basic command format of the Access Control List is the following:</p>
<p><strong>ciscoasa(config)# access-list &#8220;access_list_name&#8221; extended {deny | permit} protocol &#8220;source_address&#8221; &#8220;mask&#8221; [source_port] &#8220;dest_address&#8221; &#8220;mask&#8221; [ dest_port]</strong></p>
<p>To apply the ACL on a specific interface use the access-group command as below:</p>
<p><strong>ciscoasa(config)# access-group &#8220;access_list_name&#8221; [in|out] interface &#8220;interface_name&#8221; </strong></p>
<p><span style="text-decoration: underline;">Example1:</span></p>
<p>Allow only http traffic from inside network 10.0.0.0/24 to outside internet</p>
<p><strong>ciscoasa(config)# access-list HTTP-ONLY extended permit tcp 10.0.0.0 255.255.255.0 any eq 80</strong></p>
<p><strong>ciscoasa(config)# access-group HTTP-ONLY in interface inside</strong></p>
<p>The name “HTTP-ONLY” is the Access Control List itself, which in our example contains only one permit rule statement. Remember that there is an implicit DENY ALL rule at the end of the ACL which is not shown by default.</p>
<p><span style="text-decoration: underline;">Example2:</span></p>
<p>Deny telnet traffic from host 10.1.1.1 to host 10.2.2.2 and allow everything else.</p>
<p><strong><br /> ciscoasa(config)# access-list DENY-TELNET extended deny tcp host 10.1.1.1 host 10.2.2.2 eq 23 </strong></p>
<p><strong> ciscoasa(config)# access-list DENY-TELNET extended permit ip host 10.1.1.1 host 10.2.2.2 </strong></p>
<p><strong> ciscoasa(config)# access-group DENY-TELNET in interface inside </strong></p>
<p>The above example ACL (DENY-TELNET) contains two rule statements, one deny and one permit. As we mentioned above, the &#8220;access-group&#8221; command applies the ACL to an interface (either to an inbound or to an outbound direction).</p>
<p><span style="text-decoration: underline;">Example3: </span></p>
<p>The example below will deny ALL TCP traffic from our internal network 192.168.1.0/24 towards the external network 200.1.1.0/24. Also, it will deny HTTP traffic (port 80) from our internal network to the external host 210.1.1.1. All other traffic will be permitted from inside.</p>
<p><strong><br /> ciscoasa(config)# access-list INSIDE_IN extended deny tcp 192.168.1.0 255.255.255.0 200.1.1.0 255.255.255.0 </strong></p>
<p><strong> ciscoasa(config)# access-list INSIDE_IN extended deny tcp 192.168.1.0 255.255.255.0 host 210.1.1.1 eq 80 </strong></p>
<p><strong> ciscoasa(config)# access-list INSIDE_IN extended permit ip any any </strong></p>
<p><strong> ciscoasa(config)# access-group INSIDE_IN in interface inside </strong></p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/' rel='bookmark' title='How to Create and Manage Access Control Lists on Cisco ASA'>How to Create and Manage Access Control Lists on Cisco ASA</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using Object Groups with Cisco ASA</title>
		<link>http://www.tech21century.com/using-object-groups-with-cisco-asa/</link>
		<comments>http://www.tech21century.com/using-object-groups-with-cisco-asa/#comments</comments>
		<pubDate>Fri, 30 Apr 2010 10:42:54 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>
		<category><![CDATA[network object group]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=1030</guid>
		<description><![CDATA[The usage of object groups (network objects, service object etc) is becoming more popular on Cisco ASA firewalls especially with the new OS version 8.3(x). In this version, network object groups are used extensively for the configuration of NAT mechanisms in addition to other uses. In this post I will show a quick example of [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/cisco-router-with-cisco-asa-for-internet-access/' rel='bookmark' title='Cisco Router with Cisco ASA for Internet Access'>Cisco Router with Cisco ASA for Internet Access</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
<li><a href='http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/' rel='bookmark' title='Configure Cisco ASA 5505 to allow Remote Desktop access from Internet'>Configure Cisco ASA 5505 to allow Remote Desktop access from Internet</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The usage of object groups (network objects, service object etc) is becoming more popular on Cisco ASA firewalls especially with the new OS version 8.3(x). In this version, network object groups are used extensively for the configuration of NAT mechanisms in addition to other uses. In this post I will show a quick example of using network objects with access lists. In another post I will expand this to show how object groups are used with NAT as well.</p>
<p>Suppose we have a few Web servers located on a DMZ which are accessed from the Internet. We want to enable http (80) and https (443) access from internet towards these web servers.</p>
<p>Assume that we have configured static NAT for those web servers and translated their real private IP addresses to the following Public IP addresses:</p>
<p>Web Server1: 50.50.50.1<br />Web Server2: 50.50.50.2<br />Web Server3: 50.50.50.3</p>
<p><strong><span style="text-decoration: underline;">Configuration of access list using object groups</span></strong>:</p>
<p><em>! create a service group for the http and https protocols</em><br />object-group service <span style="color: #0000ff;">http-protocols</span> tcp<br />port-object eq 80<br />port-object eq 443</p>
<p><em>! create a network object group for the web servers</em><br />object-group network <span style="color: #ff0000;">webservers</span><br />network-object host 50.50.50.1<br />network-object host 50.50.50.2<br />network-object host 50.50.50.3</p>
<p><em>! create the access list applied inbound on the outside interface<br /></em>access-list OUTSIDE-IN extended permit tcp any object-group <span style="color: #ff0000;">webservers</span> object-group <span style="color: #0000ff;">http-protocols</span></p>
<p>access-group OUTSIDE-IN in interface outside</p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/cisco-router-with-cisco-asa-for-internet-access/' rel='bookmark' title='Cisco Router with Cisco ASA for Internet Access'>Cisco Router with Cisco ASA for Internet Access</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
<li><a href='http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/' rel='bookmark' title='Configure Cisco ASA 5505 to allow Remote Desktop access from Internet'>Configure Cisco ASA 5505 to allow Remote Desktop access from Internet</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/using-object-groups-with-cisco-asa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</title>
		<link>http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/</link>
		<comments>http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/#comments</comments>
		<pubDate>Sun, 04 Apr 2010 19:12:04 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=997</guid>
		<description><![CDATA[The following article describes how to configure Access Control Lists (ACL) on Cisco ASA 5500 firewalls. An ACL is the central configuration feature to enforce security rules on your network. The Cisco ASA 5500 is the new Cisco firewall model series which followed the successful Cisco PIX firewall appliance. Cisco calls the ASA 5500 a [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/' rel='bookmark' title='How to Create and Manage Access Control Lists on Cisco ASA'>How to Create and Manage Access Control Lists on Cisco ASA</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>The following article describes how to configure Access Control Lists (ACL) on Cisco ASA 5500 firewalls. An ACL is the central configuration feature to enforce security rules on your network.</p>
<p>The Cisco ASA 5500 is the new Cisco firewall model series which followed the successful Cisco PIX firewall appliance. Cisco calls the ASA 5500 a &#8220;security appliance&#8221; instead of just a &#8220;hardware firewall&#8221;, because the ASA is not just a firewall. This device combines several security functionalities, such as Intrusion Detection, Intrusion Prevention, Content Inspection, Botnet Inspection, in addition to the firewall functionality.</p>
<p>However, the core ASA functionality is to work as a high performance firewall. All the other security features are just complimentary services on top of the firewall functionality. Having said that, the purpose of a network firewall is to protect computer and IT resources from malicious sources by blocking and controlling traffic flow. The Cisco ASA firewall achieves this traffic control using Access Control Lists (ACL).</p>
<p>An ACL is a list of rules with permit or deny statements. Basically an Access Control List enforces the security policy on the network. The ACL (list of policy rules) is then applied to a firewall interface, either on the inbound or on the outbound traffic direction. If the ACL is applied on the inbound traffic direction (in), then the ACL is applied to traffic entering a firewall interface. The opposite happens for ACL applied to the outbound (out) direction.</p>
<p>The ACL permit or deny statements basically consist of source and destination IP addresses and ports. A permit ACL statement allows the specified source IP address/network to access the specified destination IP address/network. The opposite happens for deny ACL statements. At the end of the ACL, the firewall inserts by default an implicit DENY ALL statement rule which is not visible in the configuration.</p>
<p>Enough theory so far. Let us see some examples below to clarify what we have said above.</p>
<p>The basic command format of the Access Control List is the following:</p>
<p><strong><em>ciscoasa(config)# access-list &#8220;access_list_name&#8221; extended {deny | permit} protocol &#8220;source_address&#8221; &#8220;mask&#8221; [source_port] &#8220;dest_address&#8221; &#8220;mask&#8221; [ dest_port]</em></strong></p>
<p>To apply the ACL on a specific interface use the access-group command as below:</p>
<p><strong><em>ciscoasa(config)# access-group &#8220;access_list_name&#8221; [in|out] interface &#8220;interface_name&#8221;</em></strong></p>
<p><span style="text-decoration: underline;">Example 1:</span></p>
<p>Allow only http traffic from inside network 10.0.0.0/24 to outside internet</p>
<p><strong><em>ciscoasa(config)# access-list HTTP-ONLY extended permit tcp 10.0.0.0 255.255.255.0 any eq 80</em></strong></p>
<p><strong><em>ciscoasa(config)# access-group HTTP-ONLY in interface inside</em></strong></p>
<p>The name &#8220;HTTP-ONLY&#8221; is the Access Control List itself, which in our example contains only one permit rule statement. Remember that there is an implicit DENY ALL rule at the end of the ACL which is not shown by default.</p>
<p><span style="text-decoration: underline;">Example 2:</span></p>
<p>Deny telnet traffic from host 10.1.1.1 to host 10.2.2.2 and allow everything else.</p>
<p><strong><em>ciscoasa(config)# access-list DENY-TELNET extended deny tcp host 10.1.1.1 host 10.2.2.2 eq 23</em></strong></p>
<p><strong><em>ciscoasa(config)# access-list DENY-TELNET extended permit ip host 10.1.1.1 host 10.2.2.2</em></strong></p>
<p><strong><em>ciscoasa(config)# access-group DENY-TELNET in interface inside</em></strong></p>
<p>The above example ACL (DENY-TELNET) contains two rule statements, one deny and one permit. As we mentioned above, the &#8220;access-group&#8221; command applies the ACL to an interface (either to an inbound or to an outbound direction).</p>
<p><span style="text-decoration: underline;">Example 3:</span></p>
<p>The example below will deny ALL TCP traffic from our internal network 192.168.1.0/24 towards the external network 200.1.1.0/24. Also, it will deny HTTP traffic (port 80) from our internal network to the external host 210.1.1.1. All other traffic will be permitted from inside.</p>
<p><strong><em>ciscoasa(config)# access-list INSIDE_IN extended deny tcp 192.168.1.0 255.255.255.0 200.1.1.0 255.255.255.0</em></strong></p>
<p><strong><em>ciscoasa(config)# access-list INSIDE_IN extended deny tcp 192.168.1.0 255.255.255.0 host 210.1.1.1 eq 80</em></strong></p>
<p><strong><em>ciscoasa(config)# access-list INSIDE_IN extended permit ip any any</em></strong></p>
<p><strong><em>ciscoasa(config)# access-group INSIDE_IN in interface inside</em></strong></p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/' rel='bookmark' title='How to Create and Manage Access Control Lists on Cisco ASA'>How to Create and Manage Access Control Lists on Cisco ASA</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Configure Cisco ASA 5505 to allow Remote Desktop access from Internet</title>
		<link>http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/</link>
		<comments>http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/#comments</comments>
		<pubDate>Sun, 21 Mar 2010 12:33:40 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>
		<category><![CDATA[cisco asa remote desktop]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=969</guid>
		<description><![CDATA[A very popular scenario for small networks is to have a Cisco ASA 5505 as border firewall connecting the LAN to the Internet. Administrators in such networks are usually encountered with requests from their users that are not very security conscious. Such a request could be to allow Remote Desktop access from the Internet to [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/cisco-router-with-cisco-asa-for-internet-access/' rel='bookmark' title='Cisco Router with Cisco ASA for Internet Access'>Cisco Router with Cisco ASA for Internet Access</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>A very popular scenario for small networks is to have a Cisco ASA 5505 as border firewall connecting the LAN to the Internet. Administrators in such networks are usually encountered with requests from their users that are not very security conscious. Such a request could be to allow Remote Desktop access from the Internet to an internal Windows server. This might be very helpful for users who want to work from home but I would not recommend it. If you have to implement such a scenario, I suggest that you put the Remote Desktop server in a DMZ and not directly in the internal network. However, companies with limited budget might have purchased a Cisco ASA 5505 with basic license which restricts the creation of a DMZ Vlan (although you can create 3 Vlans, the third Vlan can only communicate with one of the other two Vlans but not both). So, let’s see a typical network topology with ASA 5505 basic license and an internal Remote Desktop server.</p>
<p style="text-align: center;"><img class="alignnone" title="cisco asa 5505 for remote desktop access" src="http://www.tech21century.com/images/asa-5505-remote-desktop.jpg" alt="" width="400" height="300" /></p>
<p>Again, I don’t recommend such a network topology as shown above. Remote Desktop machines are very prone to attacks, especially brute-force password attacks. In windows, the administrator account does not get locked-out by default. So a brute force administrator password attack on the RDP server from remote attackers can be successful especially if the administrator password is weak. In any case, if you are “forced” to implement such a scenario, here is the configuration:</p>
<div>
<div style="float: left;">[ad#embedded-square]</div>
<p>Assume that the ASA receives IP address dynamically from the ISP (via DHCP protocol). So the outside IP of the ASA is not fixed. Therefore, we will configure static NAT with port redirection using the outside interface. Since the outside address is dynamic, you can use a service such as DynDNS to get a fixed domain name irrespective of the IP mapped with it. The following is a configuration snapshot for ASA versions prior to 8.3 and for ASA 8.3 as well.</p>
</div>
<p><strong>ASA version prior to 8.3</strong><br /> ciscoasa(config)# static (inside , outside) tcp interface 3389 192.168.1.10 3389 netmask 255.255.255.255<br /> ciscoasa(config)# access-list OUTSIDE-IN extended permit tcp any any eq 3389<br /> ciscoasa(config)# access-group OUTSIDE-IN in interface outside</p>
<p><strong>ASA version 8.3 and later</strong><br /> ciscoasa(config)# object network RDP_static<br /> ciscoasa(config-network-object)# host 192.168.1.10<br /> ciscoasa(config-network-object)# nat (inside , outside) static interface service tcp 3389 3389<br /> ciscoasa(config)# access-list OUTSIDE-IN extended permit tcp any host 192.168.1.10 eq 3389<br /> ciscoasa(config)# access-group OUTSIDE-IN in interface outside</p>
<p><strong>NOTE:</strong> Notice that in version 8.3 we reference the Real IP address (192.168.1.10) in the access-list and not the mapped IP</p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/cisco-router-with-cisco-asa-for-internet-access/' rel='bookmark' title='Cisco Router with Cisco ASA for Internet Access'>Cisco Router with Cisco ASA for Internet Access</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/configure-cisco-asa-5505-to-allow-remote-desktop-access-from-internet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How to Create and Manage Access Control Lists on Cisco ASA</title>
		<link>http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/</link>
		<comments>http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/#comments</comments>
		<pubDate>Mon, 01 Mar 2010 18:24:02 +0000</pubDate>
		<dc:creator>BlogAdmin</dc:creator>
				<category><![CDATA[Cisco ASA Configuration]]></category>

		<guid isPermaLink="false">http://www.tech21century.com/?p=934</guid>
		<description><![CDATA[Access Control Lists (ACLs) are sequential lists of permit and deny conditions applied to traffic flows on a device interface. ACLs are based on various criteria including protocol type source IP address, destination IP address, source port number, and/or destination port number. ACLs can be used to filter traffic for various purposes including security, monitoring, [...]
Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<p>Access Control Lists (ACLs) are sequential lists of permit and deny conditions applied to traffic flows on a device interface. ACLs are based on various criteria including protocol type source IP address, destination IP address, source port number, and/or destination port number.</p>
<p>ACLs can be used to filter traffic for various purposes including security, monitoring, route selection, and network address translation. ACLs are comprised of one or more Access Control Entries (ACEs). Each ACE is an individual line within an ACL.</p>
<div>
<div style="float: left;">[ad#embedded-square]</div>
<p>ACLs on a Cisco ASA Security Appliance (or a PIX firewall running software version 7.x or later) are similar to those on a Cisco router, but not identical. Firewalls use real subnet masks instead of the inverted mask used on a router. ACLs on a firewall are always named instead of numbered and are assumed to be an extended list.</p>
</div>
<p>The syntax of an ACE is relatively straight-forward:</p>
<p>Ciscoasa(config)#access-list name [line number] [extended] {permit | deny} protocol</p>
<p>source_IP_address source_netmask [operator source_port] destination_IP_address</p>
<p>destination_netmask [operator destination_port] [log [[disable | default] | [level]] [interval seconds]] [time-range name] [inactive]</p>
<p>Here&#8217;s an example:</p>
<p>asa(config)# access-list demo1 permit tcp 10.1.0.0 255.255.255.0 any eq www</p>
<p>asa(config)# access-list demo1 permit tcp 10.1.0.0 255.255.255.0 any eq 443</p>
<p>asa(config)# show access-list demo1</p>
<p>access-list demo1; 2 elements</p>
<p>access-list demo1 line 1 extended permit tcp 10.1.0.0 255.255.255.0 any eq www</p>
<p>access-list demo1 line 2 extended permit tcp 10.1.0.0 255.255.255.0 any eq https</p>
<p>In the above example, an ACL called &#8220;demo1&#8243; is created in which the first ACE permits TCP traffic originating on the 10.1.0.0 subnet to go to any destination IP address with the destination port of 80 (www). In the second ACE, the same traffic flow is permitted for destination port 443. Notice in the output of the show access-list that line numbers are displayed and the extended parameter is also included, even though neither was included in the configuration statements.</p>
<p>You can deactivate an ACE without deleting it by appending the inactive option to the end of the line.</p>
<p>As with Cisco routers, there is an implicit &#8220;deny any&#8221; at the end of every ACL. Any traffic that is not explicitly permitted is implicitly denied.</p>
<p>**Editing ACLs and ACEs**</p>
<p>New ACEs are appended to the end of the ACL. If you want, however, to insert the new ACE at a particular location within the ACL, you can add the line number parameter to the ACE:</p>
<p>asa04(config)# access-list demo1 line 1 deny tcp host 10.1.0.2 any eq www</p>
<p>asa04(config)# show access-list demo1</p>
<p>access-list demo1; 3 elements</p>
<p>access-list demo1 line 1 extended deny tcp host 10.1.0.2 any eq www</p>
<p>access-list demo1 line 2 extended permit tcp 10.1.0.0 255.255.255.0 any eq www</p>
<p>access-list demo1 line 3 extended permit tcp 10.1.0.0 255.255.255.0 any eq https</p>
<p>Notice in the first line of the example above that an ACE is added at line one in the ACL. Notice in the output from the show access-list demo1 command that the new entry is added in the first position in the ACL and the former first entry becomes line number two.</p>
<p>You can remove an ACE from an ACL by preceding the ACE configuration statement with the modifier no, as in the following example:</p>
<p>Asa04(config)#no access-list demo1 deny tcp host 10.10.2.1 any eq www</p>
<p>In my next article, I&#8217;ll show you how to use time-ranges to apply access-control lists only at certain times and/or on certain days. I&#8217;ll also show you how to use object-groups with access-control lists to simplify ACL management by grouping similar components such as IP addresses or protocols together.</p>
<p>Copyright (c) 2008 Don R. Crawley</p>
<p>Don R. Crawley, CCNA-certified, is president and chief technologist at <a rel="nofollow" href="http://www.soundtraining.net" target="_new">soundtraining.net</a>, the Seattle training firm specializing in business skills and technical training for IT professionals.</p>
<p>Article Source:  <a rel="nofollow" href="http://EzineArticles.com/?expert=Don_R._Crawley"> http://EzineArticles.com/?expert=Don_R._Crawley </a></p>
<p>Related posts:<ol>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/how-to-configure-access-control-lists-on-a-cisco-asa-5500-firewall-2/' rel='bookmark' title='How to Configure Access Control Lists on a Cisco ASA 5500 Firewall'>How to Configure Access Control Lists on a Cisco ASA 5500 Firewall</a></li>
<li><a href='http://www.tech21century.com/access-lists-and-nat-on-cisco-asa-firewalls-some-clarifications/' rel='bookmark' title='Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications'>Access Lists and NAT on Cisco ASA Firewalls. Some Clarifications</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.tech21century.com/how-to-create-and-manage-access-control-lists-on-cisco-asa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Page Caching using disk: enhanced

Served from: www.tech21century.com @ 2012-02-10 09:32:34 -->
