<?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>[LINICKX].com &#187; firewall</title>
	<atom:link href="http://www.linickx.com/tag/firewall/feed" rel="self" type="application/rss+xml" />
	<link>http://www.linickx.com</link>
	<description>Moments of Genius followed by Trash.</description>
	<lastBuildDate>Thu, 17 May 2012 10:23:46 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>password-less ssh login to JunOS</title>
		<link>http://www.linickx.com/3537/password-less-ssh-login-to-junos</link>
		<comments>http://www.linickx.com/3537/password-less-ssh-login-to-junos#comments</comments>
		<pubDate>Tue, 17 Jan 2012 13:35:05 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[id_rsa]]></category>
		<category><![CDATA[Juniper]]></category>
		<category><![CDATA[JunOS]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3537</guid>
		<description><![CDATA[Juniper (JunOS) SRX&#8217;s support ssh public key authentication. No-one likes to type passwords! Copyright &#169; 2012 [LINICKX].com. This Feed is for personal non-commercial use only. Please check my Site Terms and Conditions for full details on copyrights. If you have &#8230; <a href="http://www.linickx.com/3537/password-less-ssh-login-to-junos">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/files/2012/01/junos_login.png" rel="lightbox[3537]"><img src="http://www.linickx.com/files/2012/01/junos_login.png" alt="" title="junos_login" width="471" height="234" class="aligncenter size-full wp-image-3538" /></a></p>
<p>Juniper (JunOS) SRX&#8217;s support ssh public key authentication.</p>
<pre class="brush: plain; title: ; notranslate">
nick&gt; show configuration system login | display set
set system login user nick uid 2001
set system login user nick class super-user
set system login user nick authentication ssh-rsa &quot;PASTE_KEY&quot;
nick&gt;
</pre>
<p>No-one likes to type passwords!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3537/password-less-ssh-login-to-junos/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco ASA Firewalls and IP Ranges in ACLS</title>
		<link>http://www.linickx.com/3205/cisco-asa-firewalls-and-ip-ranges-in-acls</link>
		<comments>http://www.linickx.com/3205/cisco-asa-firewalls-and-ip-ranges-in-acls#comments</comments>
		<pubDate>Fri, 29 Jul 2011 15:05:55 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3205</guid>
		<description><![CDATA[I&#8217;ve google&#8217;d and I cannot find a way of creating a firewall range style object in an ASA, you know the kind of thing whereby you want to allow IP addresses 192.168.1.10 thru 192.168.1.20 in an ACL. In my frustration &#8230; <a href="http://www.linickx.com/3205/cisco-asa-firewalls-and-ip-ranges-in-acls">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve google&#8217;d and I cannot find a way of creating a firewall range style object in an ASA, you know the kind of thing whereby you want to allow IP addresses 192.168.1.10 thru 192.168.1.20 in an ACL.</p>
<p>In my frustration I have given up and created a shell script which converts a CSV into an ASA output, simply create a two column CSV with Col A containing your starting IP and Col B containing you end IP.</p>
<p>The script is a recursive loop so should support large outputs such as 10.1.2.10 to 10.2.1.20 howvere I&#8217;m not actually sure you&#8217;d want that in your firewall config but I wrote the computability for the fun it!</p>
<p>Have fun, click &#8220;more&#8221; below if you can&#8217;t see the script!</p>
<p><span id="more-3205"></span></p>
<pre class="brush: bash; title: ; notranslate">
#!/bin/bash

# Commas separated VAR....
IFS=&quot;,&quot;
while read name firstip lastip
# Loop around CSV
do

# Split up our first ip into it's octects
firstipfirstoctect=$(echo $firstip | awk -F &quot;.&quot; '{print $1}')
firstipsecondoctect=$(echo $firstip | awk -F &quot;.&quot; '{print $2}')
firstipthirdoctect=$(echo $firstip | awk -F &quot;.&quot; '{print $3}')
firstipforthoctect=$(echo $firstip | awk -F &quot;.&quot; '{print $4}')

# Split up our last IP into it's ocects
lastipfirstoctect=$(echo $lastip | awk -F &quot;.&quot; '{print $1}')
lastipsecondoctect=$(echo $lastip | awk -F &quot;.&quot; '{print $2}')
lastipthirdoctect=$(echo $lastip | awk -F &quot;.&quot; '{print $3}')
lastipforthoctect=$(echo $lastip | awk -F &quot;.&quot; '{print $4}')

	# Re-set BASH
	unset IFS 

	# Echo out the object GROUP name
	echo &quot;object-group network $name&quot;

	# Loop through 1st Octect
	for a in `seq $firstipfirstoctect $lastipfirstoctect`;
	do
		# test to see if we need to print the whole range
		if [ $firstipfirstoctect -lt $lastipfirstoctect ]
		then
			firstipsecondoctectCOUNTER=&quot;0&quot;
			lastipsecondoctectCOUNTER=&quot;255&quot;
		fi

		# first IP might not be 1
		if [ $a -eq $firstipfirstoctect ]
		then
			firstipsecondoctectCOUNTER=$firstipsecondoctect
		fi

		# last IP might not be 255
		if [ $a -eq $lastipfirstoctect ]
		then
			lastipsecondoctectCOUNTER=$lastipsecondoctect
		fi

			# Loop through 2nd Octect
			for b in `seq $firstipsecondoctect $lastipsecondoctect`;
			do

				# Same tests as before except, next octect.
				if [ $firstipsecondoctect -lt $lastipsecondoctect ]
				then
					firstipthirdoctectCOUNTER=&quot;0&quot;
					lastipthirdoctectCOUNTER=&quot;255&quot;
				fi

				if [ $b -eq $firstipsecondoctect ]
				then
					firstipthirdoctectCOUNTER=$firstipthirdoctect
				fi

				if [ $b -eq $lastipsecondoctect ]
				then
					lastipthirdoctectCOUNTER=$lastipthirdoctect
				fi

					# Loop through 3rd Octect
					for c in `seq $firstipthirdoctectCOUNTER $lastipthirdoctectCOUNTER`;
					do

						# copy / paste / tweak
						if [ $firstipthirdoctect -lt $lastipthirdoctect ]
						then
							firstipforthoctectCOUNTER=&quot;0&quot;
							lastipforthoctectCOUNTER=&quot;255&quot;
						fi

						if [ $c -eq $firstipthirdoctect ]
						then
							firstipforthoctectCOUNTER=$firstipforthoctect
						fi

						if [ $c -eq $lastipthirdoctect ]
						then
							lastipforthoctectCOUNTER=$lastipforthoctect
						fi

							# final octect... echo result.
							for d in `seq $firstipforthoctectCOUNTER $lastipforthoctectCOUNTER`;
							do
								echo &quot; network-object $a.$b.$c.$d  255.255.255.255&quot;
							done

					done
			done
	done

done&lt;./FirewallRanges.csv
</pre>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3205/cisco-asa-firewalls-and-ip-ranges-in-acls/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Cisco ASA &#8211; First steps to a Check Point Style Policy</title>
		<link>http://www.linickx.com/3132/cisco-asa-first-steps-to-a-check-point-style-policy</link>
		<comments>http://www.linickx.com/3132/cisco-asa-first-steps-to-a-check-point-style-policy#comments</comments>
		<pubDate>Wed, 01 Dec 2010 10:14:40 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3132</guid>
		<description><![CDATA[I&#8217;ve just spotted this in the Cisco ASA 8.3 release notes&#8230; You can now configure access rules that are applied globally, as well as access rules that are applied to an interface. If the configuration specifies both a global access &#8230; <a href="http://www.linickx.com/3132/cisco-asa-first-steps-to-a-check-point-style-policy">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve just spotted this in the Cisco <a href="http://www.cisco.com/en/US/docs/security/asa/asa83/release/notes/asarn83.html">ASA 8.3 release notes</a>&#8230;</p>
<blockquote><p>You can now configure access rules that are applied globally, as well as access rules that are applied to an interface. If the configuration specifies both a global access policy and interface-specific access policies, the interface-specific policies are evaluated before the global policy.</p>
<p>The following command was modified: access-group global</p></blockquote>
<p>For users/companies which have migrated from Check Point to Cisco (<em>usually to save on licensing fees</em>), getting their head around a new interface level policy rather than a system (<em>global</em>) level is usually a bit of a challenge. </p>
<p>I&#8217;m looking forward to seeing if this really helps with policy migrations!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3132/cisco-asa-first-steps-to-a-check-point-style-policy/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thoughts on Firewalling</title>
		<link>http://www.linickx.com/3040/thoughts-on-firewalling</link>
		<comments>http://www.linickx.com/3040/thoughts-on-firewalling#comments</comments>
		<pubDate>Tue, 08 Jun 2010 07:16:08 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=3040</guid>
		<description><![CDATA[Firewalls will always be a key ingredient to network security, but not all firewalls are equal. Recently I&#8217;ve been forced into documenting how I decide &#038; think about firewall rules&#8230; Strict Firewalling IMO Strict Firewalling is the traditional way to &#8230; <a href="http://www.linickx.com/3040/thoughts-on-firewalling">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Firewalls will always be a key ingredient to network security, but not all firewalls are equal. Recently I&#8217;ve been forced into documenting how I decide &#038; think about firewall rules&#8230;</p>
<p><strong>Strict Firewalling</strong><br />
IMO Strict Firewalling is the traditional way to implement your traffic policies (<em>ACLS</em>), each rule should be as tight as possible&#8230; the idea of &#8220;any&#8221; should not be used at all and ranges should be kept at a minimum; hosts better than subnets, source and destination IPs restricted, specific TCP ports (<em>not ranges</em>) used.</p>
<p><strong>Service Led Firewalling</strong><br />
A term <em>I think</em> I made up, Service Led Fierwalling is where you relax the ACL/policy at the source&#8230; to host a DNS Zone you need to allow &#8220;<em>anyone</em>&#8221; to perform lookups so Strict Firewalling cannot be applied here but you do know the destination and the service so both of these should be defined/restricted as appropriate&#8230; you see what I mean here the policy is defined by the &#8220;<em>service</em>&#8221; provided.</p>
<p><strong>Open Firewalling</strong><br />
Possibly a contradiction in terms but bare with me; there are some instances whereby implementing a firewall provides little benefit, one example I&#8217;ve seen was a customer&#8217;s security officer wanted an internal firewall <em>(i.e. no internet connection</em>) in front of their Microsoft file server, in order for AD &#038; MS clients to work properly all the MS ports had to be opened&#8230; so server guys continuously complained, what exactly is the firewall doing? What is Open Firewalling? It&#8217;s the process of implementing a black list followed by a white list, rather than the traditional permit then drop processing that a firewall does; I&#8217;d create a rule that Drops Prohibited applications (<em>such as P2P or unencrypted protocols</em>) and then create a policy permitting all ports from legitimate IP ranges.</p>
<p><strong>When would I use these?</strong><br />
Your firewall should be broken into zones, each zone meets both security policy and business requirements, you should then apply a firewalling technique to each zone. For example it&#8217;s not uncommon to have a back-end database which should only ever be accessed by the front end application, therefore it could be in a zone protected by Strict Firewalling; public services such as websites/email servers require flexibility on their source thus require service led firewalling. Occasionally your business or application requirements suggest that firewalling impedes things, using open firewalling to &#8220;clean&#8221; traffic compromises &#8220;security people wanting firewalls&#8221; and any historical business/application issues&#8230; the firewall is there perhaps protecting against syn-flood attacks &#038; as previously suggested blocking prohibited apps yet the business doesn&#8217;t see any traditional firewall headaches.</p>
<p><strong>I don&#8217;t agree you fool!</strong><br />
That&#8217;s your choice, there&#8217;s no correct answer to security, the business you work in and the security policy mandated from senior management direct what you do, these are just my approaches <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/3040/thoughts-on-firewalling/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco IOS Zone Based Firewall Example</title>
		<link>http://www.linickx.com/2945/cisco-ios-zone-based-firewall-example</link>
		<comments>http://www.linickx.com/2945/cisco-ios-zone-based-firewall-example#comments</comments>
		<pubDate>Fri, 19 Feb 2010 15:12:36 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[ccie]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[gns3]]></category>
		<category><![CDATA[zbfw]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=2945</guid>
		<description><![CDATA[Today&#8217;s challenge was to get to grips with Cisco&#8217;s ZBFW, there are a few examples out there if you google but this cisco pdf was the best resource I found. I&#8217;m going to share with you my GNS3 config, my &#8230; <a href="http://www.linickx.com/2945/cisco-ios-zone-based-firewall-example">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p style="float:right">
<a href="http://www.linickx.com/files/2010/02/ZoneBasedFirewall.png" rel="lightbox[2945]"><img src="http://www.linickx.com/files/2010/02/ZoneBasedFirewall-150x150.png" alt="" title="Zone Based Firewall Diagram" width="150" height="150" class="aligncenter size-thumbnail wp-image-2955" /></a>
</p>
<p>Today&#8217;s challenge was to get to grips with Cisco&#8217;s <abbr title="Zone Based Firewall">ZBFW</abbr>, there are a few examples out there if you google but <a href="http://www.cisco.com/en/US/prod/vpndevc/ps5708/ps5710/ps1018/prod_configuration_example0900aecd804f1776.pdf">this cisco pdf</a> was the best resource I found.</p>
<p>I&#8217;m going to share with you my GNS3 config, my first gotcha was getting the &#8220;right&#8221; IOS version, the latest advanced sec 12.4 image for the 3725 doesn&#8217;t cut it, you need to get a copy of c3725-advsecurityk9-mz.<strong>124-15.T7</strong>.bin.</p>
<p>My plan was simple, I wanted to re-create this following pseudo ASA style configuration:</p>
<pre class="brush: plain; title: ; notranslate">
access-list inside permit icmp any any
access-list inside permit tcp any any eq telnet
access-list outside permit tcp any host 192.168.10.100 eq telnet
access-group inside in interface inside
access-group outside in interface outside
</pre>
<p>What&#8217;s funny is that is 5 lines of code for ZBFW it&#8217;s more than 20! Yes the IOS FW isn&#8217;t a statefull firewall like the ASA but still more than 4 times the work&#8230; anyway, moving on&#8230;</p>
<p>The ZBFW is broken into four parts:</p>
<ul>
<li>Assign Zones to Interfaces</li>
<li>Create a class-map to define interesting traffic</li>
<li>Create a policy-map to give your class an action</li>
<li>Create a zone pair to give you class a direction</li>
</ul>
<p>As you can see in the picture, I have three routers Inside, Outside & Gateway; we will generate traffic from Inside -> Outside (<em>and vice versa</em>) and Gateway will be our firewall. In this blog post I&#8217;ll discuss the inside -> outside policy, read though the attached config to work out how outside->inside works <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Creating zones and applying them to interfaces is the easy bit&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
!
zone security inside
 description LAN
zone security outside
 description Internet
!
interface FastEthernet0/0
 ip address 10.10.10.10 255.255.255.0
 zone-member security outside
!
interface FastEthernet0/1
 ip address 192.168.1.1 255.255.255.0
 zone-member security inside
</pre>
<p>ZBFW supports traffic matching by protocol, ACL or both. To start with I need to create a class map equivalent of:</p>
<pre class="brush: plain; title: ; notranslate">access-list inside permit icmp any any</pre>
<p>So that looks like:</p>
<pre class="brush: plain; title: ; notranslate">
class-map type inspect match-any myinspectclass
 match protocol icmp
</pre>
<p>Our action to this applied via the policy map will be &#8220;inspect&#8221; &#8230; not &#8220;permit&#8221; like the access list, what we want to happen is the echo-request (<em>echo</em>) packet passing from the inside interface to the outside to be inspected so that the echo-reply packet is let back in&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
policy-map type inspect myinspectpolicy
 class type inspect myinspectclass
  inspect
</pre>
<p>To apply this inside -&gt; outside we create a zone-pair&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
zone-pair security in-out source inside destination outside
 service-policy type inspect myinspectpolicy
</pre>
<p>Part 1 done. breath, take a break.</p>
<p>We can now ping from inside to outside, but outside to inside fails. Part two is to create a separate &#8220;flow&#8221; to allow telnet out. Now we could update our existing class-map, but it&#8217;s much clearer to create a new one, first we need an access-list&#8230;</p>
<pre class="brush: plain; title: ; notranslate">
ip access-list extended telnet_any
 permit tcp any any eq telnet
</pre>
<p>This will restrict our TCP protocol inspection to permit only telnet, without this ACL the following class map would permit (<em>inspect</em>) any TCP.</p>
<pre class="brush: plain; title: ; notranslate">
class-map type inspect match-all inspecttelnetclass
 match access-group name telnet_any
 match protocol tcp
</pre>
<p>Now that we have defined our traffic we can using the existing policy that permits the ICMP traffic through to permit this TCP thru, so this is the new policy map that replaces the one above:</p>
<pre class="brush: plain; title: ; notranslate">
policy-map type inspect myinspectpolicy
 class type inspect myinspectclass
  inspect
 class type inspect inspecttelnetclass
  inspect
</pre>
<p>The policy map will work top down, permitting ICMP traffic thru flow 1 (<em>rule 1</em>) and telnet through flow 2&#8230;. we don&#8217;t need to touch the zone pair <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Attached is <a href="http://www.linickx.com/files/2010/02/Gateway.cfg_.txt">my GNS3 .net</a> file and the three router configs [<a href="http://www.linickx.com/files/2010/02/Gateway.cfg_.txt">1</a>,<a href="http://www.linickx.com/files/2010/02/Inside.cfg_.txt">2</a>,<a href="http://www.linickx.com/files/2010/02/Outside.cfg_.txt">3</a>], hopefully it all makes sense <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/2945/cisco-ios-zone-based-firewall-example/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Checkpoint Nokia, How to enable SSH thru the default filter.</title>
		<link>http://www.linickx.com/2102/checkpoint-nokia-how-to-enable-ssh-thru-the-default-filter</link>
		<comments>http://www.linickx.com/2102/checkpoint-nokia-how-to-enable-ssh-thru-the-default-filter#comments</comments>
		<pubDate>Fri, 04 Sep 2009 08:56:15 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[checkpoint]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ipso]]></category>
		<category><![CDATA[Nokia]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=2102</guid>
		<description><![CDATA[I had lost this bookmark, saved here so I don&#8217;t loose it again Solution Title: How do I control / change access using defaultfilter and initialpolicy? Solution ID: sk41117 There are various options given in the article, this&#8230; ipso[nick]# cp &#8230; <a href="http://www.linickx.com/2102/checkpoint-nokia-how-to-enable-ssh-thru-the-default-filter">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I had lost this bookmark, saved here so I don&#8217;t loose it again <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<blockquote>
<ul>
<li>Solution Title: How do I control / change access using defaultfilter and initialpolicy? </li>
<li>Solution ID: <a href="https://supportcenter.checkpoint.com/supportcente/portal?eventSubmit_doGoviewsolutiondetails=&#038;solutionid=sk41117">sk41117</a> </li>
</ul>
</blockquote>
<p>There are various options given in the article, this&#8230;</p>
<pre>
ipso[nick]# cp -p $FWDIR/conf/initial_module.pf $FWDIR/conf/initial_module.pf.OLD
ipso[nick]# cp $FWDIR/lib/defaultfilter.ipso $FWDIR/conf/initial_module.pf
ipso[nick]# comp_init_policy -g
initial_module:
Compiled OK.
ipso[nick]#
</pre>
<p>&#8230; will do in most cases!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/2102/checkpoint-nokia-how-to-enable-ssh-thru-the-default-filter/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Strange ASA ARP Replying Behavior</title>
		<link>http://www.linickx.com/450/strange-asa-arp-replying-behavior</link>
		<comments>http://www.linickx.com/450/strange-asa-arp-replying-behavior#comments</comments>
		<pubDate>Thu, 10 Jul 2008 09:02:29 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[troubleshooting]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=450</guid>
		<description><![CDATA[I&#8217;ve been implementing a few Cisco ASA&#8217;s recently, and I blogged about this strange behavior; well I came across another one yesterday. Take a look at this debug arp&#8230;. CiscoASA# debug arp debug arp enabled at level 1 CiscoASA# CiscoASA# &#8230; <a href="http://www.linickx.com/450/strange-asa-arp-replying-behavior">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been implementing a few Cisco ASA&#8217;s recently, and <a href="http://www.linickx.com/archives/446/cisco-asa-and-7905-ip-phone-weirdness">I blogged about this strange behavior</a>; well I came across another one yesterday.</p>
<p>Take a look at this debug arp&#8230;.</p>
<pre>
CiscoASA# debug arp
debug arp  enabled at level 1
CiscoASA#
CiscoASA# arp-set: added arp outside 192.168.1.122 001e.7000.1234 and updating NPs at 4301321940
arp-set: added arp inside 192.168.1.61 001a.7100.1234 and updating NPs at 4301321940
<blockquote>
<code>arp-in: request at outside from 192.168.1.125 001a.3000.1234 for 192.168.1.120 001e.7a51.1234
arp-in: rqst for me from 192.168.1.125 for 192.168.1.120, on outside
arp-set: added arp outside 192.168.1.125 001a.3000.1234 and updating NPs at 4301326660
arp-in: generating reply from 192.168.1.120 001e.7a51.1234 to 192.168.1.125 001a.3000.1234</code></blockquote>

arp-in: request at outside from 192.168.1.125 001a.3000.1234 for 192.168.1.73 001e.7a51.1234
arp-in: rqst for me from 192.168.1.125 for 192.168.1.73, on outside
arp-set: added arp outside 192.168.1.125 001a.3000.1234 and updating NPs at 4301326660
arp-in: generating reply from 192.168.1.73 001e.7a51.1234 to 192.168.1.125 001a.3000.1234
arp-in: request at outside from 192.168.1.125 001a.3000.1234 for 192.168.1.69 001e.7a51.1234
<blockquote>
<code>arp-in: rqst for me from 192.168.1.125 for 192.168.1.69, on outside
arp-set: added arp outside 192.168.1.125 001a.3000.1234 and updating NPs at 4301326660
arp-in: generating reply from 192.168.1.69 001e.7a51.1234 to 192.168.1.125 001a.3000.1234</code></blockquote>

arp-in: request at outside from 192.168.1.125 001a.3000.1234 for 192.168.1.123 001e.7a51.1234
arp-in: rqst for me from 192.168.1.125 for 192.168.1.123, on outside
arp-set: added arp outside 192.168.1.125 001a.3000.1234 and updating NPs at 4301326660
arp-in: generating reply from 192.168.1.123 001e.7a51.1234 to 192.168.1.125 001a.3000.1234
arp-in: response at outside from 192.168.1.125 001a.3000.1234 for 192.168.1.125 ffff.ffff.ffff
arp-in: updating gratuitous ARP 192.168.1.125 - 001a.3000.1234
arp-set: added arp outside 192.168.1.125 001a.3000.1234 and updating NPs at 4301326660
CiscoASA#
</pre>
<p>The firewall is replying to arp requests even though both the source &#038; destination of the traffic are on the same (<em>outside</em>) interface, now I haven&#8217;t manged to work out why the firewall was doing this, but I did find <a href="http://forum.cisco.com/eforum/servlet/NetProf?page=netprof&#038;forum=Security&#038;topic=Firewalling&#038;topicID=.ee6e1fa&#038;fromOutline=&#038;CommCmd=MB%3Fcmd%3Ddisplay_location%26location%3D.2cc12b2b">a fix on the cisco forums</a>.</p>
<p><code>sysopt noproxyarp outside</code></p>
<p>Names, IPs &#038; MAC&#8217;s have been changed to protect the innocent.<br />
 <img src='http://www.linickx.com/wp/wp-includes/images/smilies/icon_cool.gif' alt=':cool:' class='wp-smiley' /> </p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/450/strange-asa-arp-replying-behavior/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cisco ASA and 7905 IP Phone Weirdness</title>
		<link>http://www.linickx.com/446/cisco-asa-and-7905-ip-phone-weirdness</link>
		<comments>http://www.linickx.com/446/cisco-asa-and-7905-ip-phone-weirdness#comments</comments>
		<pubDate>Tue, 24 Jun 2008 08:30:04 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Blog]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[ipt]]></category>
		<category><![CDATA[VoIP]]></category>
		<category><![CDATA[weird]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=446</guid>
		<description><![CDATA[I came accross something odd the other day, I had some Cisco IP Phones on a DMZ interface and the Call Manager was behind the inside interface. If you made a call from a 7940 to a 7940 everything worked &#8230; <a href="http://www.linickx.com/446/cisco-asa-and-7905-ip-phone-weirdness">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I came accross something odd the other day, I had some Cisco IP Phones on a DMZ interface and the Call Manager was behind the inside interface. If you made a call from a 7940 to a 7940 everything worked fine, if you made a call from a 7905 to a 7940 it failled! </p>
<p>I ran <a href="http://www.linickx.com/archives/112/debug-packet-command-missing-on-pix-7">a packet capture</a> and found that the phone was &#8220;bouncing&#8221; the RTP stream off the firewall rather than connecting directly to the peer phone&#8230; very weird! The problem was solved by enabling&#8230;</p>
<pre>
same-security-traffic permit intra-interface</pre>
<p>I thought I post this for some future googlers!</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/446/cisco-asa-and-7905-ip-phone-weirdness/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Backup Interface on Cisco ASA Firewall</title>
		<link>http://www.linickx.com/444/backup-interface-on-cisco-asa-firewall</link>
		<comments>http://www.linickx.com/444/backup-interface-on-cisco-asa-firewall#comments</comments>
		<pubDate>Tue, 10 Jun 2008 18:06:45 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[firewall]]></category>

		<guid isPermaLink="false">http://www.linickx.com/?p=444</guid>
		<description><![CDATA[I tweeted a little while ago about Nokia recently supporting interface failover within IPSO, well it looks like Cisco&#8217;s ASA Version 8 software can do it now too! The following example creates two redundant interfaces: asa(config)# interface redundant 1 asa(config-if)# &#8230; <a href="http://www.linickx.com/444/backup-interface-on-cisco-asa-firewall">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.linickx.com/archives/395/learned-something-new-recently">I tweeted</a> a little while ago about Nokia recently supporting interface failover within IPSO, well it looks like Cisco&#8217;s ASA Version 8 software can do it now too!</p>
<blockquote><p>The following <a href="http://www.cisco.com/en/US/partner/docs/security/asa/asa80/configuration/guide/intrface.html#wpmkr1046659">example</a> creates two redundant interfaces:</p>
<p><code>asa(config)# interface redundant 1<br />
asa(config-if)# member-interface gigabitethernet 0/0<br />
asa(config-if)# member-interface gigabitethernet 0/1<br />
asa(config-if)# interface redundant 2<br />
asa(config-if)# member-interface gigabitethernet 0/2<br />
asa(config-if)# member-interface gigabitethernet 0/3</code></p></blockquote>
<p>Reference: <a href="http://www.cisco.com/en/US/partner/docs/security/asa/asa80/configuration/guide/intrface.html#wpmkr1046659">Adding a Redundant Interface</a></p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/444/backup-interface-on-cisco-asa-firewall/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco Pix Firewall in front of a Playstation 3.</title>
		<link>http://www.linickx.com/394/cisco-pix-firewall-in-front-of-a-playstation-3</link>
		<comments>http://www.linickx.com/394/cisco-pix-firewall-in-front-of-a-playstation-3#comments</comments>
		<pubDate>Wed, 05 Mar 2008 22:14:05 +0000</pubDate>
		<dc:creator>Nick</dc:creator>
				<category><![CDATA[Playstation3]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[pix]]></category>
		<category><![CDATA[Playstation]]></category>

		<guid isPermaLink="false">http://www.linickx.com/archives/394/cisco-pix-firewall-in-front-of-a-playstation-3</guid>
		<description><![CDATA[If you saw this tweet, you&#8217;ll see that a little while ago I had some fun with Playstation 3 online gaming; it&#8217;s probably my own fault because I&#8217;m possibly the only person with a version 6 Cisco Pix Firewall at &#8230; <a href="http://www.linickx.com/394/cisco-pix-firewall-in-front-of-a-playstation-3">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you saw <a href="http://www.linickx.com/archives/369/100-udp-ports-dam-u-ea">this tweet</a>, you&#8217;ll see that a little while ago I had some fun with Playstation 3 online gaming; it&#8217;s probably my own fault because I&#8217;m possibly the only person with a version 6 Cisco Pix Firewall at home in front of their playstation.</p>
<p>If you want to get online gaming working though your firewall there&#8217;s a really good <a href="http://www.orpheusinternet.co.uk/support/ps3/index.html">online reference here</a> and my specific grumble about having to open up a shed load of ports for EA&#8217;s Burnout paradise is <a href="http://support.ea.com/cgi-bin/ea.cfg/php/enduser/std_adp.php?p_faqid=19084&#038;p_created=1201028984&#038;p_sid=zRr855Xi&#038;p_accessibility=0&#038;p_redirect=&#038;p_lva=&#038;p_sp=cF9zcmNoPTEmcF9zb3J0X2J5PSZwX2dyaWRzb3J0PSZwX3Jvd19jbnQ9MSwxJnBfcHJvZHM9MjMwOCw0MDEyLDQwMTAmcF9jYXRzPTAmcF9wdj0zLjQwMTAmcF9jdj0mcF9wYWdlPTEmcF9zZWFyY2hfdGV4dD1vbmxpbmUgcG9ydHM*&#038;p_li=&#038;p_topview=1">documented in their support area</a>.</p>
<p>To summarize, this is what I&#8217;ve got open:</p>
<p><strong>General Playstation Network Ports</strong>, these always need to be open.</p>
<blockquote><p>
udp 3658<br />
udp 3478-3479</p></blockquote>
<p>Open these extra ones for <strong>Motor Storm</strong></p>
<blockquote><p>
udp 3659 &#8211; 3660</p></blockquote>
<p>Open these extra ones for <strong>Burnout</strong></p>
<blockquote><p>
udp 3659<br />
udp 9600-9699</p></blockquote>
<p>If you to have a cisco pix, you&#8217;ll need to open an entry on your outside access-list, something like</p>
<pre>access-list outside permit udp any any eq  3658</pre>
<p>and you&#8217;ll need a static entry&#8230;.</p>
<pre>static (inside,outside) udp interface 3658 playstation3 3658 netmask 255.255.255.255</pre>
<p>For lots of ports the access-list command supports the range statement, so</p>
<pre>access-list outside permit udp any any range 9600 9699</pre>
<p>But you won&#8217;t be so lucky with statics, you&#8217;ll have to add an entry for each port, I created a small bash shell script to automate the task&#8230;</p>
<pre>
#!/bin/bash
#9600-9699
for i in `seq 9600 9699`;
do
        echo "static (inside,outside) udp interface $i playstation3 $i netmask 255.255.255.255"
done
</pre>
<p>I then pasted the output into my pix. If you are having problems here are some references that might be useful are the <a href="http://www.cisco.com/en/US/docs/security/pix/pix63/command/reference/s.html#wp1026694">cisco pix command ref</a> and the <a href="http://www.cisco.com/en/US/products/hw/vpndevc/ps2030/products_tech_note09186a0080094aad.shtml">pix nat guide</a>.</p>
<img src="http://www.linickx.com/wp/wp-content/themes/linickx_v2/images/nick_sig_bggrey.png" alt="Nick" /> <hr/>Copyright &copy; 2012 <strong><a href="http://www.linickx.com">[LINICKX].com</a></strong>. This Feed is for personal non-commercial use only. Please check my <a href="http://www.linickx.com/?page_id=63">Site Terms and Conditions</a> for full details on copyrights. If you have any concerns with the content of this feed you may <a href="http://www.linickx.com/contact">contact me here</a>.<br/><span style="float: right;font-size: 7pt"><a href="http://blog.taragana.com/index.php/archive/wordpress-plugins-provided-by-taraganacom/">WP Copyright Plugin</a></span>]]></content:encoded>
			<wfw:commentRss>http://www.linickx.com/394/cisco-pix-firewall-in-front-of-a-playstation-3/feed</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
	</channel>
</rss>

