<?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>Linux Sysadmin Blog &#187; cisco</title>
	<atom:link href="http://linuxsysadminblog.com/category/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxsysadminblog.com</link>
	<description></description>
	<lastBuildDate>Tue, 10 May 2011 03:23:06 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.2</generator>
		<item>
		<title>ASA allow passive ftp traffic</title>
		<link>http://linuxsysadminblog.com/2009/03/asa-allow-passive-ftp-traffic/</link>
		<comments>http://linuxsysadminblog.com/2009/03/asa-allow-passive-ftp-traffic/#comments</comments>
		<pubDate>Tue, 17 Mar 2009 20:03:56 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[ftp]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=428</guid>
		<description><![CDATA[Many ftp client will try to establish a passive connection with a server by default. A passive connection will use a high numbered unprivileged port range greater then 1023 (PASV) instead of port 20 (PORT). Most ftp servers specify different ranges that are to be used for passive connections. When you are managing multiple ftp [...]]]></description>
			<content:encoded><![CDATA[<p>Many ftp client will try to establish a <strong>passive</strong> connection with a server by default. A passive connection will use a high numbered unprivileged port range greater then 1023 (<strong>PASV</strong>) instead of port 20 (<strong>PORT</strong>). Most ftp servers specify different ranges that are to be used for passive connections.</p>
<p><span id="more-428"></span>When you are managing multiple ftp servers is it rather impractical to configure specific passive port ranges for each ftp server and open these ports in the firewall. A quick and much more practical solution is to use the stateful application inspection feature of the Adaptive Security Appliance.  To set-up inspection of the FTP protocol which will dynamically allow secondary ports to pass as well as allow NAT traversal of these ports we first must create an inspection policy for all interfaces which will inspect services on their standard ports:</p>
<p><code>class-map global-class<br />
  match default-inspection-traffic</code></p>
<p>Next configure a policy map and inspection of the ftp protocol:</p>
<p><code>policy-map global-policy<br />
 class global-class<br />
  inspect ftp</code></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/03/asa-allow-passive-ftp-traffic/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Running ASDM client from your Linux desktop</title>
		<link>http://linuxsysadminblog.com/2009/03/running-asdm-client-from-your-linux-desktop/</link>
		<comments>http://linuxsysadminblog.com/2009/03/running-asdm-client-from-your-linux-desktop/#comments</comments>
		<pubDate>Tue, 10 Mar 2009 21:13:30 +0000</pubDate>
		<dc:creator>max</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[asdm]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[java]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=419</guid>
		<description><![CDATA[For those of us who use Linux as a desktop replacement for Windows would find it nice to be able to run the ASDM client natively. If you haven&#8217;t upgraded your ASA/PIX to the latest ASDM you should do so. The steps are described here. Once you do upgrade your PIX/ASA to the latest version [...]]]></description>
			<content:encoded><![CDATA[<p>For those of us who use Linux as a desktop replacement for Windows would find it nice to be able to run the ASDM client natively. If you haven&#8217;t upgraded your ASA/PIX to the <strong>latest ASDM</strong> you should do so. The steps are described <a href="http://linuxsysadminblog.com/2009/01/howto-upgrade-asdm-using-cli-on-cisco-asa5500/">here</a>.<br />
<span id="more-419"></span><br />
Once you do upgrade your PIX/ASA to the latest version you may run into another issue where your bundled version of java not connect with ASDM. The remedy for this if you are using Fedora 10 can be <a href="http://linuxsysadminblog.com/2009/02/upgrade-to-java-se-6-update-12-on-fedora-10/">found here</a>.</p>
<p>Now assuming that you have asdm loaded and opened access to outside over port 4443 with:<br />
<code>http server enable 4443<br />
http 0.0.0.0 0.0.0.0 outside</code></p>
<p>You can connect to your PIX/ASA over port 4443 and download the asdm.jnlp file to your pc via web browser at https://external_ip_of_asa:4443 </p>
<p>Once you posses the asdm.jnlp file issue <code><strong>javaws asdm.jnlp</strong></code> in terminal. Upon successful login this will create .asdm folder in your home directory with files inside, as well as a desktop shortcut. After this the asdm.jnlp is no longer needed and can be erased. </p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/03/running-asdm-client-from-your-linux-desktop/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Cisco ASA 5505: Active/Standby Failover Configuration</title>
		<link>http://linuxsysadminblog.com/2009/02/cisco-asa-5505-activestandby-failover-configuration/</link>
		<comments>http://linuxsysadminblog.com/2009/02/cisco-asa-5505-activestandby-failover-configuration/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 11:35:57 +0000</pubDate>
		<dc:creator>Marius</dc:creator>
				<category><![CDATA[cisco]]></category>
		<category><![CDATA[CLI]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[asa5505]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://linuxsysadminblog.com/?p=327</guid>
		<description><![CDATA[The ASA 5505 is the smallest (and cheapest) solution from the current Cisco hardware security appliances. Still, if we have the proper software license (like Security Plus for example) we can use the ASA5505 to setup rather complex solutions. This post will show how we can setup a pair of ASA5505 in failover configuration, solution [...]]]></description>
			<content:encoded><![CDATA[<p>The <strong>ASA 5505</strong> is the smallest (and cheapest) solution from the current Cisco hardware security appliances. Still, if we have the proper software license (like <em>Security Plus</em> for example) we can use the ASA5505 to setup rather complex solutions. This post will show how we can setup a pair of <strong>ASA5505 in failover configuration</strong>, solution that can be very useful in a small office where we want to achieve a high availability and we can&#8217;t tolerate a failure of our frontend firewall.</p>
<h3>Prerequisites</h3>
<p>Before even starting, let&#8217;s check that our ASA5505&#8242;s are running the appropriate software license. For example the sh run command will output something like this:<br />
<code>sh ver<br />
...<br />
Licensed features for this platform:<br />
Maximum Physical Interfaces  : 8<br />
VLANs                        : 20, DMZ Unrestricted<br />
Inside Hosts                 : Unlimited<br />
<strong>Failover                   : Active/Standby</strong><br />
VPN-DES                      : Enabled<br />
VPN-3DES-AES                 : Enabled<br />
VPN Peers                    : 25<br />
WebVPN Peers                 : 2<br />
Dual ISPs                    : Enabled<br />
VLAN Trunk Ports             : 8<br />
AnyConnect for Mobile        : Disabled<br />
AnyConnect for Linksys phone : Disabled<br />
Advanced Endpoint Assessment : Disabled<br />
UC Proxy Sessions            : 2<br />
This platform has an ASA 5505 Security Plus license.<br />
.</code><br />
You should look at the Failover feature and you should have &#8220;<strong>Active/Standby</strong>&#8220;. If this outputs <em>disabled</em>, you will have to order and install a software license upgrade from Cisco in order to be able to use the ASA&#8217;s in failover.</p>
<p><span id="more-327"></span>Cisco (as always) has a very complex <a href="http://www.cisco.com/en/US/docs/security/asa/asa72/configuration/guide/failover.html#wp1064158" target="_blank">documentation</a> on how you can achieve this. Still, it is hard to digest, as they try to cover all possible devices on the same page (even the obsolete pix500); even more the ASA5505 has some particularities compared with the rest of the ASA 5500 range of products and <strong>this is not very clearly explained</strong>. <em>Hopefully this post will be more useful and simpler to follow.</em></p>
<p>First we need to understand some limitations of our devices. The ASA5505 can <strong>only perform Active/Standby</strong> failover and <strong>not Active/Active</strong>. If you need that, you will have to look at a higher range device. Also they can only perform <strong>LAN-Based Failover</strong> (as opposed to old pixes that can use cable based failover) and they <strong>don&#8217;t support Stateful Failover</strong> (meaning all active connections will be lost after a failover event). Also both units must have the same hardware, software configuration, and proper license and run in same mode (single or multiple, transparent or routed).</p>
<h3>Configuring the Primary Unit</h3>
<p>For each of the IPs assigned to the interfaces of the ASA we will need to <strong>allocate a secondary IP</strong> from the same network range; this will be used as the IP of the standby unit, while the main IPs will always be used by the primary (active) unit and will be normally used by the clients (as default gateways for ex). The first step is to <strong>configure the active and standby IP addresses for each data interface</strong>; the cisco documentation is confusing here and it is not clear that on the <strong>ASA5505 </strong>this is done for <strong>each of the used vlans, and not real interfaces</strong>:<br />
<code>conf t<br />
(config)#interface Vlan1<br />
(config-if)#ip address active_addr netmask standby standby_addr</code><br />
for ex:<br />
<code>(config-if)#ip address 192.168.0.1 255.255.255.0 standby 192.168.0.2</code></p>
<p>Once we have defined all standby IPs we can move forward&#8230;<br />
You will also need to define <strong>one interface that will be used for failover</strong>. You can either cross-connect this between the 2 ASAs or you can use a switch with a dedicated vlan for this. The later one is preferred as it will more accurately detect if one ASA is down. Again in the documentation this is not clear how to do it on the ASA5505 and it discusses about <em>real interfaces</em>, while on the <strong>ASA5505 we have to use vlans</strong>.</p>
<p><strong>The trick is to create a new vlan and don&#8217;t assign any ip on the vlan inteface:</strong><br />
<code>interface Vlan32<br />
description LAN Failover Interface<br />
no shutdown</code><br />
the ip will be assigned by the failover commands;<br />
Finally <strong>enable failover</strong>:<br />
<code>failover<br />
failover lan unit primary<br />
failover lan interface failover Vlan32<br />
failover interface ip failover 192.168.255.1 255.255.255.0 standby 192.168.255.2</code><br />
(where you will use one unused ip range for the failover ips).</p>
<p>Save the running config: <strong>copy running-config startup-config</strong></p>
<h3>Configuring the Secondary Unit</h3>
<p>The configuration of the secondary, standby unit is very simple as it needs <strong>only the failover interface configuration</strong>.  The secondary unit requires these commands to initially communicate with the primary unit, and get its configuration from the active unit.</p>
<p>As with the main ASA we have to define the <strong>vlan that will be used for failover</strong> first:<br />
<code>interface Vlan32<br />
description LAN Failover Interface<br />
no shutdown</code></p>
<p>And next we just have to enable failover and set this unit as secondary:<br />
<code>failover<br />
failover lan unit secondary<br />
failover lan interface failover Vlan32<br />
failover interface ip failover 192.168.255.1 255.255.255.0 standby 192.168.255.2</code></p>
<p>After this, the active unit sends the configuration in running memory to the standby unit. As the configuration synchronizes, the messages &#8220;Beginning configuration replication: Sending to mate&#8221; and &#8220;End Configuration Replication to mate&#8221; appear on the active unit console.</p>
<h3>Verifying the Failover Configuration</h3>
<p>The command <strong>show failover</strong> can be used to show the status of the failover operation; the output on the active device will look similar to:<br />
<code>sh failover<br />
Failover On<br />
Failover unit Primary<br />
Failover LAN Interface: failover Vlan32 (up)<br />
Unit Poll frequency 1 seconds, holdtime 15 seconds<br />
Interface Poll frequency 5 seconds, holdtime 25 seconds<br />
Interface Policy 1<br />
Monitored Interfaces 5 of 250 maximum<br />
Version: Ours 8.0(4), Mate 8.0(4)<br />
Last Failover at: 02:28:31 CST Jan 23 2009<br />
This host: Primary - Active<br />
Active time: 2166923 (sec)<br />
slot 0: ASA5505 hw/sw rev (1.0/8.0(4)) status (Up Sys)<br />
Interface inside (10.10.10.1): Normal<br />
Interface outside (192.168.0.1): Normal<br />
slot 1: empty<br />
Other host: Secondary - Standby Ready<br />
Active time: 378 (sec)<br />
slot 0: ASA5505 hw/sw rev (1.0/8.0(4)) status (Up Sys)<br />
Interface inside (10.10.10.2): Normal<br />
Interface outside (192.168.0.2): Normal<br />
slot 1: empty</code></p>
<p>Finally, you will probably want to test the failover functionality and maybe tune the triggers of the failover, but maybe we will talk about this in a future post.<br />
<em>I hope you found this post useful and helped to explain better the steps needed to configure the Active/Standby Failover on the ASA5505.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxsysadminblog.com/2009/02/cisco-asa-5505-activestandby-failover-configuration/feed/</wfw:commentRss>
		<slash:comments>13</slash:comments>
		</item>
	</channel>
</rss>

