<?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>Aaron&#039;s Worthless Words &#187; fwsm</title>
	<atom:link href="http://aconaway.com/tag/fwsm/feed/" rel="self" type="application/rss+xml" />
	<link>http://aconaway.com</link>
	<description>It&#039;s possible that someone somewhere needs to see this.</description>
	<lastBuildDate>Wed, 01 Feb 2012 02:07:15 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.4</generator>
		<item>
		<title>Using SPF Records To Build Objects</title>
		<link>http://aconaway.com/2009/10/16/using-spf-records-to-build-objects/</link>
		<comments>http://aconaway.com/2009/10/16/using-spf-records-to-build-objects/#comments</comments>
		<pubDate>Fri, 16 Oct 2009 19:50:13 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[dig]]></category>
		<category><![CDATA[dns]]></category>
		<category><![CDATA[fwsm]]></category>
		<category><![CDATA[google]]></category>
		<category><![CDATA[http]]></category>
		<category><![CDATA[mail]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[object-group]]></category>
		<category><![CDATA[pix]]></category>
		<category><![CDATA[records]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[spf]]></category>
		<category><![CDATA[txt]]></category>
		<category><![CDATA[_netblock]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=370</guid>
		<description><![CDATA[My biggest complain about modern firewalls is their lack of the ability to create rules based on URLs or HTTP streams; you have to open access between IP addresses.  Yes, I know there are other means to do that, but I want my ASA/PIX/FWSM to do it without making me do so much work. Anyway, the fact that you have to use IPs brings up some interesting problems.  Let&#8217;s say you have a server in a DMZ that needs to query Google for some content.  Since you&#8217;re a hard-ass network guy like I am, you tell the admin that they have provide the data flow they want to use &#8212; source IP, destination IP, protocol, port.  They come back and tell you that they need their server to connect via HTTP to 74.125.45.100.  You put in the rules as given, but the IP has suddenly changed on you. Google (and lots of other big sites) uses some tricks to keep the load down on their servers and to help with availability, and one such trick is to use round robin DNS, which rotates the A record so everyone doesn&#8217;t slam the same boxes.  You can query google.com once and get [...]]]></description>
			<content:encoded><![CDATA[<p>My biggest complain about modern firewalls is their lack of the ability to create rules based on URLs or HTTP streams; you have to open access between IP addresses.  Yes, I know there are other means to do that, but I want my ASA/PIX/FWSM to do it without making me do so much work.</p>
<p>Anyway, the fact that you have to use IPs brings up some interesting problems.  Let&#8217;s say you have a server in a DMZ that needs to query Google for some content.  Since you&#8217;re a hard-ass network guy like I am, you tell the admin that they have provide the data flow they want to use &#8212; source IP, destination IP, protocol, port.  They come back and tell you that they need their server to connect via HTTP to 74.125.45.100.  You put in the rules as given, but the IP has suddenly changed on you.</p>
<p>Google (and lots of other big sites) uses some tricks to keep the load down on their servers and to help with availability, and one such trick is to use round robin DNS, which rotates the A record so everyone doesn&#8217;t slam the same boxes.  You can query google.com once and get an address, but, when you query it again, you may get a different address.  That means that when your new rules don&#8217;t work, you have to check the logs, see what got denied, open that up, rinse, and repeat.  That sucks.</p>
<p>An easier way might be to create an <a title="AConaway.com -- Tag/object-group" href="http://aconaway.com/tag/object-group/"><em>object-group</em></a> that includes IPs as you discover them.  You put in rules based on an object-group, then, when it fails, you just add to the object-group so you don&#8217;t have to put in any more rules.  The problem is that you&#8217;ll spend a lot of time building up a good baseline.  If only there were a way to get a list of IP addresses that Google uses.  Hmmm.  *segue*</p>
<p>Have you ever heard of <a title="OpenSPF.org - SPF: Project Overview" href="http://www.openspf.org/">SPF</a> netblock records?  SPF is an email security mechanism that allows an email server to verify that an email message is coming from an authorized email source.  In other words, when a mail server receives mail, it can check to see if the sending server is actually allowed to send mail on behalf of the source domain.  It supposed to cut down on spam and whatnot, but I don&#8217;t follow it closely enough to know if it&#8217;s working.  The moral of the story is that is involves a list of IP addresses that an organization maintains; Google happens to be a participant in SPF.</p>
<p>If you query for the TXT record _netblocks.google.com, you get back a text record that looks like this.</p>
<blockquote><p>[jac@holland ~]$ dig +short txt _netblocks.google.com<br />
&#8220;v=spf1 ip4:216.239.32.0/19 ip4:64.233.160.0/19 ip4:66.249.80.0/20 ip4:72.14.192.0/18 ip4:209.85.128.0/17 ip4:66.102.0.0/20 ip4:74.125.0.0/16 ip4:64.18.0.0/20 ip4:207.126.144.0/20 ip4:173.194.0.0/16 ?all&#8221;</p></blockquote>
<p>This record includes all IP addresses that Google says is authorized to send email from google.com.  That&#8217;s a lot of IP addresses, isn&#8217;t it?  It might make sense that this list might also be the definitive list of Google production IPs.</p>
<p>My company has used this TXT record in the past to open access to Google.  We had an app that needed to query Google maps, and one of our engineers was tired of nickel and diming it to death, so he found the SPF block and put them all in.  Works like a champ.</p>
<p>There are always dangers when you rely on information from somebody else, though, right?  Google&#8217;s usually pretty good about stuff like this, but what if you did the same for another company who only half-heartedly kept their records up-to-date?  You may only have half of their IPs in your object-gropu.  You might even wind up opening access to or from a cable modem system or from another company who bought the IP addresses.</p>
<p>I&#8217;ll also  note that there aren&#8217;t that many domains using this technique, so finding SPF netblock records may be a challenge.  It&#8217;s worth the time to do a simply query, though; it might save you some time.</p>
<p>Send any <span style="text-decoration: line-through;">carved pumpkins</span> questions my way.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/10/16/using-spf-records-to-build-objects/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Object Groups in the ASA/FWSM/PIX</title>
		<link>http://aconaway.com/2009/10/01/object-groups-in-the-asafwsmpix/</link>
		<comments>http://aconaway.com/2009/10/01/object-groups-in-the-asafwsmpix/#comments</comments>
		<pubDate>Thu, 01 Oct 2009 15:00:12 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[acl]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[fwsm]]></category>
		<category><![CDATA[group]]></category>
		<category><![CDATA[object]]></category>
		<category><![CDATA[object-group]]></category>
		<category><![CDATA[pix]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=372</guid>
		<description><![CDATA[I can&#8217;t believe I haven&#8217;t talked about object-groups yet.  I had a whole other blog entry written up, and, when I went to link things over, I realized I couldn&#8217;t find an intro to it.  Here it goes. Welcome to the modern world.  A world of wonder.  A world of quickly-advancing technology.  A world where clusters of machines sit behind load balancers for scalability and availability.  A world where those clusters need access to other clusters.  A world where your firewall rulebase gets so big that it&#8217;s unreadable without some help. Enough with the drama already.  I would say I hate the cheesy stuff, but I think my whole blog is nothing but cheesy stuff, right?  To the point.  Enterprise firewall configurations can get quite large with ACLs applied in different directions to different interfaces.  Our ACL entries number in the 6000 range, but the firewall we&#8217;re running says we&#8217;re only at 5% utilization in the ACLE memory space. That means that our not-top-of-the-line firewall is designed to handle 120k lines of ACLs.  That can be quite a handful to configure by hand.  There may be an easier-to-maintain solution, though. Let&#8217;s say you have a cluster of servers behind your [...]]]></description>
			<content:encoded><![CDATA[<p>I can&#8217;t believe I haven&#8217;t talked about <em>object-groups</em> yet.  I had a whole other blog entry written up, and, when I went to link things over, I realized I couldn&#8217;t find an intro to it.  Here it goes.</p>
<p>Welcome to the modern world.  A world of wonder.  A world of quickly-advancing technology.  A world where clusters of machines sit behind load balancers for scalability and availability.  A world where those clusters need access to other clusters.  A world where your firewall rulebase gets so big that it&#8217;s unreadable without some help.</p>
<p>Enough with the drama already.  I would say I hate the cheesy stuff, but I think my whole blog is nothing but cheesy stuff, right?  To the point.  Enterprise firewall configurations can get quite large with ACLs applied in different directions to different interfaces.  Our ACL entries number in the 6000 range, but the firewall we&#8217;re running says we&#8217;re only at 5% utilization in the ACLE memory space. That means that our not-top-of-the-line firewall is designed to handle 120k lines of ACLs.  That can be quite a handful to configure by hand.  There may be an easier-to-maintain solution, though.</p>
<p>Let&#8217;s say you have a cluster of servers behind your CSM that all need to access a database.   Since there&#8217;s a nice ASA, FWSM, or PIX between the servers and database (as there should be), you have to open up access for this connection.  Let&#8217;s say that you have four servers with the IPs of 192.168.100.101-104 that need access to 10.10.10.1 on the mySQL port (TCP/3306).</p>
<blockquote>
<pre>access-list LIST1 permit tcp host 192.168.100.101 host 10.10.10.1 eq 3306
access-list LIST1 permit tcp host 192.168.100.102 host 10.10.10.1 eq 3306
access-list LIST1 permit tcp host 192.168.100.103 host 10.10.10.1 eq 3306
access-list LIST1 permit tcp host 192.168.100.104 host 10.10.10.1 eq 3306</pre>
</blockquote>
<p>Where are your remarks?  Why don&#8217;t you document something for once in your life?</p>
<p>Anyway, that&#8217;s easy, right.  Four configuation lines isn&#8217;t so bad, but some of the server admins come to you one day and tell you that the company actually marketed the new web app and that tey are adding 37 more servers to the cluster.  Now the 37 new servers need the same rules, right?  The server dudes also tell you that, since the app has grown so much, the DBAs have set up a split-read-write scenario where the current database handles the reads and a new database handles the writes.  That&#8217;s 78 new rules (37 to the old and 41 for the new).  That&#8217;s a lot of rules.</p>
<p><em>Object-groups</em> to the rescue.  An object-group is a logical group of objects (duh!) that you can use to create ACLEs.  You can create a group of hosts, a group of network, or a group of ports.  For our example, let&#8217;s create an object-group that includes all the hosts in the new huge cluster.</p>
<blockquote>
<pre>object-group network CLUSTER1
   description The Huge Cluster (that's what she said)
   network-object host 192.168.100.101
   network-object host 192.168.100.102
...
   network-object host 192.168.100.141</pre>
</blockquote>
<p>What do we do with it, though?  You treat it (almost) just like it was a host in an ACL.  Remember we wanted to open access to the old database on TCP/3306, right?</p>
<blockquote>
<pre>access-list LIST1 permit tcp object-group CLUSTER1 host 10.10.10.1 eq 3306</pre>
</blockquote>
<p>If you do a show access-list LIST1 now, you&#8217;ll see that a new rules has been added for each object in the object-group.  It should look something like this.</p>
<blockquote>
<pre>access-list LIST1 permit tcp object-group CLUSTER1 host 10.10.10.1 eq 3306
   access-list LIST extended permit tcp host 192.168.100.101 host 10.10.10.1 eq 3306 (hitcnt=0)
   access-list LIST extended permit tcp host 192.168.100.102 host 10.10.10.1 eq 3306 (hitcnt=0)
...
   access-list LIST extended permit tcp host 192.168.100.141 host 10.10.10.1 eq 3306 (hitcnt=0)</pre>
</blockquote>
<p>Notice that the firewall created 41 rules for you out of your one configured line, but now the rules are indented. The indention means that the rules is generated automagically instead of by hand. Since you can only take out rules that you put in by hand, so you can&#8217;t take out the line allowing 192.168.100.123 access; it&#8217;s an all-or-nothing scenario.  Be aware of that.</p>
<p>You can use object-group for ports, too.  Let&#8217;s add to our example and say that the cluster will need to access the memcached instance on the database server as well.  Those processes run on TCP ports 15000 &#8211; 15100.</p>
<p>First we build an object-group for the ports we need.</p>
<blockquote>
<pre>object-group service DBPORTS
   description mySQL and memcached ports
   service-object tcp eq 3306
   service-object tcp range 15000 15100</pre>
</blockquote>
<p>Now let&#8217;s apply it to the ACL.</p>
<blockquote>
<pre>access-list LIST1 permit tcp object-group CLUSTER1 host 10.10.10.1 object-group DBPORT</pre>
</blockquote>
<p>What does the ACL look like now?  Well, it&#8217;s a <a title="Wikipedia.com -- Dusenberg" href="http://en.wikipedia.org/wiki/Duesenberg">Duesenberg</a>.</p>
<pre>access-list LIST1 permit tcp object-group CLUSTER1 host 10.10.10.1 object-group DBPORTS
   access-list LIST extended permit tcp host 192.168.100.101 host 10.10.10.1 eq 3306 (hitcnt=0)
   access-list LIST extended permit tcp host 192.168.100.101 host 10.10.10.1 eq 15000 (hitcnt=0)
...
   access-list LIST extended permit tcp host 192.168.100.101 host 10.10.10.1 eq 15099 (hitcnt=0)
   access-list LIST extended permit tcp host 192.168.100.101 host 10.10.10.1 eq 15100 (hitcnt=0)
...
   access-list LIST extended permit tcp host 192.168.100.141 host 10.10.10.1 eq 3306 (hitcnt=0)
   access-list LIST extended permit tcp host 192.168.100.141 host 10.10.10.1 eq 15000 (hitcnt=0)
...
   access-list LIST extended permit tcp host 192.168.100.141 host 10.10.10.1 eq 15099 (hitcnt=0)
   access-list LIST extended permit tcp host 192.168.100.141 host 10.10.10.1 eq 15100 (hitcnt=0)</pre>
<p>That&#8217;s a lot of ACL entries for one configuration line, isn&#8217;t it?  Let&#8217;s see.  102 ports times 41 servers is 4182 lines in the ACL.  You can see how might be to your advantage to use object-groups at times.</p>
<p>Send any <span style="text-decoration: line-through;">candy corn</span> questions my way.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/10/01/object-groups-in-the-asafwsmpix/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>ASA and Proxy ARP</title>
		<link>http://aconaway.com/2009/09/11/asa-and-proxy-arp/</link>
		<comments>http://aconaway.com/2009/09/11/asa-and-proxy-arp/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 14:37:45 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[arp]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[fwsm]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[pix]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[syn]]></category>

		<guid isPermaLink="false">http://aconaway.com/?p=362</guid>
		<description><![CDATA[Wow.  A new entry.  Everyone sit down before you pass out. I&#8217;ve got a real-world example for you today.  We have an ASA 5540 installed at a business unit with interfaces in multiple networks, including one containing the production servers and another containing the accounting servers.  The production network sits on a 7600 that&#8217;s not ours, so, to avoid IP conflicts, we are statically NATting connections into that network.  The 7600 has with many, many VLANs, and, since the firewall production servers are on different VLANs, there&#8217;s an interface VLAN between us.  Sounds pretty straightforward, but it just wasn&#8217;t working when we try to connect between the interfaces. When we tried to connect from the accounting servers to the production gear, the firewall saw the SYN, built the outbound connection, sent the packet on, and waited.  Nothing back.  SYN timeout.  The vendor on the production side checked the routing.  Fine.  Checked the ACLs.  None installed.  When the (other) vendor ran TCPDump on the production servers, they saw the SYN landing and the SYN-ACK leaving, but it never got to the ASA.  We even looked at the inline IDS and still didn&#8217;t see the SYS-ACK hitting the firewall.  It was simply [...]]]></description>
			<content:encoded><![CDATA[<p>Wow.  A new entry.  Everyone sit down before you pass out.</p>
<p>I&#8217;ve got a real-world example for you today.  We have an ASA 5540 installed at a business unit with interfaces in multiple networks, including one containing the production servers and another containing the accounting servers.  The production network sits on a 7600 that&#8217;s not ours, so, to avoid IP conflicts, we are statically NATting connections into that network.  The 7600 has with many, many VLANs, and, since the firewall production servers are on different VLANs, there&#8217;s an interface VLAN between us.  Sounds pretty straightforward, but it just wasn&#8217;t working when we try to connect between the interfaces.</p>
<p>When we tried to connect from the accounting servers to the production gear, the firewall saw the SYN, built the outbound connection, sent the packet on, and waited.  Nothing back.  SYN timeout.  The vendor on the production side checked the routing.  Fine.  Checked the ACLs.  None installed.  When the (other) vendor ran TCPDump on the production servers, they saw the SYN landing and the SYN-ACK leaving, but it never got to the ASA.  We even looked at the inline IDS and still didn&#8217;t see the SYS-ACK hitting the firewall.  It was simply not getting passed on.</p>
<p>I got tired of walking people through stuff over the phone, so I drove up there to see what I could find.  When I checked the ARP table on the 7600, I noticed that the statically NATted IP we were serving was conveniently <em>incomplete</em>.  For those who don&#8217;t know, that means that the 7600 was ARPing for the address, but nothing was answering for it.  Obviously, our ASA should be answering, right?  To make the situation a little more dire, I did a <em>debug arp</em> (or something close) on the firewall and generated an ARP request; the firewall saw the request but just ignored it.  Ugh!</p>
<p>If you couldn&#8217;t tell by the title, it turns out that the solution was to enable proxy ARP.  It&#8217;s off by default for good reason, but here&#8217;s how to enable it.</p>
<blockquote>
<pre>no sysopt noproxyarp PRODUCTIONINTERFACE</pre>
</blockquote>
<p>Enabling proxy ARP, however, could be a security issue.  Any time you use the word &#8220;proxy&#8221;, there is a potential to spoof addresses, and, in this case, an attacker could (potentially) use the firewall to discover hosts that are on the other side of it.  That wouldn&#8217;t be good.</p>
<p>A more-secure solution is to use static ARP entries.  In our case, we added a static ARP entry on the 7600 that points our NATted IP to the MAC address of the firewall.  Now, when you ping the IP, the 7600 doesn&#8217;t ARP; it already has the MAC in the ARP table, so it just sends the packet on.  Since we only have one static translation in this case, it&#8217;s no big deal, but, if we had a whole class-C of addresses to NAT, there would be a management problem.</p>
<p>A part of me wants to do the simple thing and enable proxy ARP, but the vast majority of article, blogs, forums, lists, etc., that I&#8217;ve ready say to turn it off for security and efficiency purposes.  The more I think about it, though, the more Iwonder why proxy ARP needs to be enabled to make staic NATs work.  I looked back at an old PIX running 6.x,  and proxy ARP is on by default.  The same holds true for an FWSM running 2.x.  I&#8217;m going to have to ask Cisco what&#8217;s up with that.</p>
<p>Send any <span style="text-decoration: line-through;">misconfigured subnet masks</span> questions my way.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2009/09/11/asa-and-proxy-arp/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Port Forwarding on the ASA/FWSM/PIX</title>
		<link>http://aconaway.com/2008/05/27/port-forwarding-on-the-asafwsmpix/</link>
		<comments>http://aconaway.com/2008/05/27/port-forwarding-on-the-asafwsmpix/#comments</comments>
		<pubDate>Tue, 27 May 2008 13:01:59 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[asa]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[fwsm]]></category>
		<category><![CDATA[nat]]></category>
		<category><![CDATA[pix]]></category>

		<guid isPermaLink="false">http://aconaway.com/2008/05/27/port-forwarding-on-the-asafwsmpix/</guid>
		<description><![CDATA[Here&#8217;s a simple one since I haven&#8217;t updated in a while. I have my ASA 5505 at home and want to forward TCP/80 traffic to my public IP to my webserver at 10.10.10.10. There are two steps here &#8212; forward the port and open the ACL. To forward the port, I would use the static directive, but there are two ways to do that. I can either set up a one-to-one NAT or a port redirection. In the one-to-one NAT, you have a outside address that&#8217;s mapped directly to an inside address, and any traffic to that IP is passed to the inside host (if it passes ACLS, of course). One of the limitation, though, of using this setup is that you can&#8217;t use that IP as your PAT address, and, since I only have one IP, no other inside hosts would have a outside address to which to be NATted. The other method &#8212; port redirection &#8212; is a much better solution. In this setup, I actually forward a protocol/port on a outside address to a protocol/port on an inside address. Since there are other ports available on that outside address, the address is still available for other hosts [...]]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a simple one since I haven&#8217;t updated in a while.  I have my ASA 5505 at home and want to forward TCP/80 traffic to my public IP to my webserver at 10.10.10.10.  There are two steps here &#8212; forward the port and open the ACL.</p>
<p>To forward the port, I would use the <em>static </em>directive, but there are two ways to do that.  I can either set up a one-to-one NAT or a port redirection.  In the one-to-one NAT, you have a outside address that&#8217;s mapped directly to an inside address, and any traffic to that IP is passed to the inside host (if it passes ACLS, of course).  One of the limitation, though, of using this setup is that you can&#8217;t use that IP as your PAT address, and, since I only have one IP, no other inside hosts would have a outside address to which to be NATted.  The other method &#8212; port redirection &#8212; is a much better solution.  In this setup, I actually forward a protocol/port on a outside address to a protocol/port on an inside address.  Since there are other ports available on that outside address, the address is still available for other hosts to use as a NAT address.</p>
<p>In an enterprise, I would probably use an address out of my pool for the port forwarding, but, since I only have one address at home, I&#8217;ve got another decision to make.  I can configure the <em>static </em>statement with an IP address or I can use the reserved word <em>interface </em>to indicate the IP that is on an interface.  This is a great feature, actually, since my outside IP could potentially change without notice.  I&#8217;m going to use that feature, too.</p>
<p><code>static (inside,outside) tcp interface 80 10.10.10.10 80</code></p>
<p>This is pretty simple, but I&#8217;ll explain.  The ASA will take any request that comes in on TCP/80 (HTTP) on its outside interface&#8217;s IP and forward it to TCP/80 of 10.10.10.10.  If my webserver ran on TCP/81 on my box, I could just change the last 80 to 81 to make it work.</p>
<p>The port is redirecting, but I still need to open the ACL.  When that&#8217;s done, everything should work as expected.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2008/05/27/port-forwarding-on-the-asafwsmpix/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting Started with the FWSM</title>
		<link>http://aconaway.com/2008/04/30/getting-started-with-the-fwsm/</link>
		<comments>http://aconaway.com/2008/04/30/getting-started-with-the-fwsm/#comments</comments>
		<pubDate>Thu, 01 May 2008 02:00:05 +0000</pubDate>
		<dc:creator>Aaron Conaway</dc:creator>
				<category><![CDATA[firewall]]></category>
		<category><![CDATA[fwsm]]></category>

		<guid isPermaLink="false">http://aconaway.com/2008/04/30/getting-started-with-the-fwsm/</guid>
		<description><![CDATA[Have I talked about the Cisco Firewall Services Module (FWSM) before? It&#8217;s a firewall on a module for the 6500 and is based on the PIX firewall. The term &#8220;based on&#8221; is important here, since it does a lot of stuff the PIX does but everything. It obviously does connection inspection and filtering, but it does not do any VPN stuff. It&#8217;s not a license thing; it just won&#8217;t do it. If you want to do VPNs on the 6500, you have to get the IPSec VPN Service Module.  The VPN thing isn&#8217;t true, actually.  I believe version 3.1 and higher has support for VPNs. Anyway, we won&#8217;t be going over any configs this time, but we can get some in the future. I just wanted to go over some stuff that you may need to know to get an FWSM working. The FWSM does not have any physical ports on it. It uses the backplane of the switch to get a foot in the networks that you need it to. What does that give you? Well, it&#8217;s ultrafast on the 256Gbps backplane very fast with a 5Gbps uplink to the backplane, which is potentially a lot better than the [...]]]></description>
			<content:encoded><![CDATA[<p>Have I talked about the Cisco Firewall Services Module (FWSM) before?  It&#8217;s a firewall on a module for the 6500 and is based on the PIX firewall.  The term &#8220;based on&#8221; is important here, since it does a lot of stuff the PIX does but everything.  It obviously does connection inspection and filtering, <strike>but it does not do any VPN stuff.  It&#8217;s not a license thing; it just won&#8217;t do it.  If you want to do VPNs on the 6500, you have to get the IPSec VPN Service Module</strike>.  The VPN thing isn&#8217;t true, actually.  I believe version 3.1 and higher has support for VPNs.</p>
<p>Anyway, we won&#8217;t be going over any configs this time, but we can get some in the future.  I just wanted to go over some stuff that you may need to know to get an FWSM working.</p>
<p>The FWSM does not have any physical ports on it.  It uses the backplane of the switch to get a foot in the networks that you need it to.  What does that give you?  Well, it&#8217;s <strike>ultrafast on the 256Gbps backplane</strike> very fast with a 5Gbps uplink to the backplane, which is potentially a lot better than the 1Gbps on a physical interface.  It also lets you have more interfaces than you could ever have on a firewall appliance (I think you can have 128 interfaces&#8230;someone correct me).  I don&#8217;t know any firewall appliance that has more than 20 or so interfaces.  It also is good for your cabling guy since there are no cables.  I love it since I&#8217;m the cabling guy, too.</p>
<p>The FWSM can be set up with several <a href="http://www.cisco.com/en/US/docs/security/fwsm/fwsm22/configuration/guide/context.html">security contexts</a>.  That means that you can chop up the resources of the module into &#8220;virtual firewalls&#8221; that operate separately from each other.  This is pretty cool, actually, since you can, say, make a firewall for each of your hosting customers so that configurations on one don&#8217;t affect the others.  You can also set the thing up in single context mode so it acts just like a single firewall.  You&#8217;ll have to do some research to figure out what you want to do, and there are a lot of possibilities.</p>
<p>You can also set each context up in <a href="http://www.cisco.com/en/US/docs/security/fwsm/fwsm22/configuration/guide/fwmode.html">either routed or transparent mode</a>.  Routed mode is the &#8220;traditional&#8221; way to set up a firewall, where each interface is a different IP network with packets being routed through the FWSM.  Transparent mode is where the FWSM has two interfaces that bridge the same IP network.  I&#8217;ve always used routed mode everywhere, but you may have some use for transparent mode.</p>
<p>You also have to do <a href="http://www.cisco.com/en/US/docs/security/fwsm/fwsm22/configuration/guide/switch.html">some stuff</a> on the 6500 to get the FWSM working.  You make a vlan-group (a list of VLANs) to present to the FWSM and then assign that to the module.  If you have more than one FWSM, you can have multiple vlan-groups; different FWSMs can control access in and out of different networks.  Remember the context thing?  If you have an FWSM in multiple contexts, you present the module with all the VLANs on all the contexts and split them up when you get to the context config part.</p>
<p>No configs.  This is weird, but you&#8217;ll need to get all this information straightened out before you can get an FWSM configured properly.</p>
<div class="wp-about-author-containter-around" style="background-color:#ffffff;"><div class="wp-about-author-pic"><img alt='' src='http://1.gravatar.com/avatar/14352aa939196349e4b9f2a272ca5112?s=100&amp;d=&amp;r=G' class='avatar avatar-100 photo' height='100' width='100' /></div><div class="wp-about-author-text"><h3><a href='http://aconaway.com/author/jac/' title='Aaron Conaway'>Aaron Conaway</a></h3><p>I like to lean my head to the left, hit it with the palm of my right hand, and document what knowledge falls out.</p><p><a href='http://aconaway.com' title='Aaron Conaway'>Website</a> - <a href='http://aconaway.com/author/jac/' title='More posts by Aaron Conaway'>More Posts</a> </p></div></div>]]></content:encoded>
			<wfw:commentRss>http://aconaway.com/2008/04/30/getting-started-with-the-fwsm/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

