<?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>Rogierm&#039;s Blog &#187; cisco</title>
	<atom:link href="http://rogierm.redbee.nl/blog/tag/cisco/feed/" rel="self" type="application/rss+xml" />
	<link>http://rogierm.redbee.nl/blog</link>
	<description>Just another blog with technical stuff</description>
	<lastBuildDate>Mon, 09 Jan 2012 16:15:48 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Cisco IPSec VPN with certificates in OSX Lion</title>
		<link>http://rogierm.redbee.nl/blog/2011/10/31/cisco-ipsec-vpn-with-certificates-in-osx-lion/</link>
		<comments>http://rogierm.redbee.nl/blog/2011/10/31/cisco-ipsec-vpn-with-certificates-in-osx-lion/#comments</comments>
		<pubDate>Mon, 31 Oct 2011 13:13:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[mac]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[certificate]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[lion]]></category>
		<category><![CDATA[osx]]></category>
		<category><![CDATA[vpn]]></category>

		<guid isPermaLink="false">http://rogierm.redbee.nl/blog/?p=231</guid>
		<description><![CDATA[Since the Cisco VPN client does not work under OSX Lion anymore there was no easy way to connect with certificate authentication. It took some time but I managed to get it working under Lion with the build in VPN Client. Find the steps below to get the certificates imported and working with the VPN [...]]]></description>
			<content:encoded><![CDATA[<p>Since the Cisco VPN client does not work under OSX Lion anymore there was no easy way to connect with certificate authentication. It took some time but I managed to get it working under Lion with the build in VPN Client. Find the steps below to get the certificates imported and working with the VPN Client. </p>
<ul>
<li>Create key: openssl genrsa -des3 -out vpn-cert2.key 1024</li>
<li>Create CSR (make sure that the CN is a simple name, no spaces or special characters): openssl req -new -key vpn-cert2.key -out vpn-cert2.csr</li>
<li>Request certificate with your CA</li>
<li>Create a p12 file from the key and the certificate: openssl pkcs12 -export -inkey vpn-cert2.key -in certnew-3.cer -out vpn.p12</li>
<li>Import the p12 file (containing the key and certificate) in the system keychain (not the login keychain, that doesn&#8217;t work): sudo security import vpn.p12 -k /Library/Keychains/System.keychain</li>
<li>If needed you can import the CA in your keychain and trust the imported certificate:  sudo security add-trusted-cert -k /Library/Keychains/System.keychain root.ca.pem<BR><strong>Note:</strong>Make sure that if you import your own CA, that you do it this way. Otherwise the VPN server certificate will not be verified correctly.</li>
</ul>
<p>To use the certificate for VPN authentication do the following:</p>
<ul>
<li>Open System Preferences</li>
<li>Go to Network</li>
<li>Click + to add network interface, Select Interface: VPN, VPN Type: Cisco IPSec</li>
<li>Click Create</li>
<li>In the Server Address type the hostname of the firewall. This is really important. The firewall has a certificate configured on the FQDN. Make sure the server address is the name of the certificate in the firewall. This FQDN can be found in the trustpoint configuration (see below)</li>
<li>Enter the username</li>
<li>Click Authentication Settings</li>
<li>Select Certificate and Click Select</li>
<li>Select the correct certificate that you just imported</li>
<li>Click OK</li>
<li>Click Apply</li>
</ul>
<p>When you are not able to select the certificate you created the problem is that the CN is not supported. Make sure the CN that you used to create the CSR does not contain spaces or special characters. </p>
<p>Firewall trustpoint config:<br />
<code><br />
crypto ca trustpoint CA1<br />
 enrollment terminal<br />
 fqdn fw.xxxx.com<br />
 subject-name CN=fw.xxxx.com,OU=IT,O=XXX Limited,C=NL,St=NH,L=Amsterdam<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rogierm.redbee.nl/blog/2011/10/31/cisco-ipsec-vpn-with-certificates-in-osx-lion/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Cisco switch and Tacacs</title>
		<link>http://rogierm.redbee.nl/blog/2010/01/14/cisco-switch-and-tacacs/</link>
		<comments>http://rogierm.redbee.nl/blog/2010/01/14/cisco-switch-and-tacacs/#comments</comments>
		<pubDate>Thu, 14 Jan 2010 21:12:50 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[aaa]]></category>
		<category><![CDATA[authentication]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[switch]]></category>
		<category><![CDATA[tacacs]]></category>
		<category><![CDATA[tac_plus]]></category>

		<guid isPermaLink="false">http://rogierm.redbee.nl/blog/?p=103</guid>
		<description><![CDATA[Tacacs is a great way to centralize user authentication, authorization and accounting. While tacacs originally is a Cisco thing, there is an open source server version available, tac_plus (http://www.gazi.edu.tr/tacacs/index.php?page=download). Installing the tacacs server is quite straight forward. Configuring the switch is not difficult either, as long as you think about possible failures. You don&#8217;t want [...]]]></description>
			<content:encoded><![CDATA[<p>Tacacs is a great way to centralize user authentication, authorization and accounting. While tacacs originally is a Cisco thing, there is an open source server version available, tac_plus (http://www.gazi.edu.tr/tacacs/index.php?page=download). Installing the tacacs server is quite straight forward. Configuring the switch is not difficult either, as long as you think about possible failures. You don&#8217;t want to be locked out of your switches when your tacacs server is not available. I use the following configuration that uses two tacacs servers and asks for the enable password when neither of the tacacs servers is available. To enter &#8216;enable&#8217; mode, the configured enable password suffices. Use the following Cisco configuration for a save AAA authentication. </p>
<p><strong>NOTE:</strong> Always be careful when changing authentication and authorization configuration, as this might lock you out of the device. The savest way is to do this on the console of the machine. </p>
<p><code><br />
aaa new-model<br />
aaa authentication login default group tacacs+ enable<br />
aaa authentication enable default enable<br />
aaa authorization exec default group tacacs+ if-authenticated<br />
aaa authorization commands 15 default group tacacs+ if-authenticated<br />
aaa authorization network default group tacacs+ if-authenticated<br />
aaa accounting exec default start-stop group tacacs+<br />
aaa accounting commands 15 default start-stop group tacacs+<br />
aaa accounting system default start-stop group tacacs+<br />
aaa session-id common<br />
tacacs-server host 1.1.1.1 single-connection<br />
tacacs-server host 2.2.2.2 single-connection<br />
tacacs-server key TACACSKEY<br />
tacacs-server directed-request<br />
</code><br />
To restrict access to specific devices, you can configure an ACL in the tacacs configuration on the server (tac_plus.conf). See the example below.</p>
<p><code><br />
user = username {<br />
        login = des "XXXX"<br />
        member = admin<br />
        acl = mgmt_devices<br />
        service = shell {<br />
                priv-lvl = 15<br />
        }<br />
}<br />
group = admin {<br />
        default service = permit<br />
        service = exec {<br />
        priv-lvl = 15<br />
        }<br />
}<br />
# acl's</p>
<p>acl = mgmt_devices {<br />
        permit = 12.12.12.12<br />
        permit = 13.13.13.13<br />
        }<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rogierm.redbee.nl/blog/2010/01/14/cisco-switch-and-tacacs/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cisco ASA IPv6 failover not supported</title>
		<link>http://rogierm.redbee.nl/blog/2009/07/24/cisco-asa-ipv6-failover-not-supported/</link>
		<comments>http://rogierm.redbee.nl/blog/2009/07/24/cisco-asa-ipv6-failover-not-supported/#comments</comments>
		<pubDate>Fri, 24 Jul 2009 12:50:36 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[asa]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[failover]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[pix]]></category>

		<guid isPermaLink="false">http://rogierm.redbee.nl/blog/?p=23</guid>
		<description><![CDATA[Due to the shortage of IPv4 IP addresses, we will run out of IPv4 some day in the near future (approx. 699 days from now, http://inetcore.com/project/ipv4ec/index_en.html). To be prepared for this we are experimenting with IPv6. We got a /32 allocated by RIPE, and are currently preparing a live network to connect some services via [...]]]></description>
			<content:encoded><![CDATA[<p>Due to the shortage of IPv4 IP addresses, we will run out of IPv4 some day in the near future (approx. 699 days from now, http://inetcore.com/project/ipv4ec/index_en.html). To be prepared for this we are experimenting with IPv6. We got a /32 allocated by RIPE, and are currently preparing a live network to connect some services via native  IPv6 to the internet. While reviewing the IPv6 capabilities of the network equipment we use, I found out that Cisco ASA/Pix does not support failover when running IPv6. For details on this matter please see the following links:</p>
<ul>
<li>http://www.v4tov6.com/2009/06/cisco-asa-ipv6-failover-update.html</li>
<li>http://v4tov6.com/2008/11/cisco-asa-ipv6-failover.html</li>
<li>http://forums.cabling-design.com/cisco/Re-PIX-IPv6-Failover-bug-4167-.htm</li>
</ul>
<p>This failover support seems to be lacking for some time now, and is still missing in the latest release. I&#8217;ve notified our sales rep. at Cisco about this. Personally I think this is quite a serious issue, as failover is a essential part of building serious infrastructures. I hope Cisco will see that this feature should be implemented as soon as possible.</p>
<p>If you consider this a serious issue as well, I recommend you notify your Cisco contact. Also leave a comment, just because I&#8217;m wondering how many people think this is a problem <img src='http://rogierm.redbee.nl/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>06 april 2010: Cisco released ASA version 8.3 which solves this problem: http://www.networkworld.com/community/node/58537</p>
]]></content:encoded>
			<wfw:commentRss>http://rogierm.redbee.nl/blog/2009/07/24/cisco-asa-ipv6-failover-not-supported/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>restrict commands for rancid using tacacs</title>
		<link>http://rogierm.redbee.nl/blog/2009/07/23/restrict-commands-for-rancid-using-tacacs/</link>
		<comments>http://rogierm.redbee.nl/blog/2009/07/23/restrict-commands-for-rancid-using-tacacs/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 14:38:33 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Network]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[cisco]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[rancid]]></category>
		<category><![CDATA[tacacs]]></category>

		<guid isPermaLink="false">http://rogierm.redbee.nl/blog/?p=19</guid>
		<description><![CDATA[When using rancid you have to store the username and password in a text file. When you don&#8217;t want to give the user privilege level 15 you have to store the enable password as well. Tacacs with authorization is the best solution to restrict access for the rancid user. Since the rancid user doesn&#8217;t need [...]]]></description>
			<content:encoded><![CDATA[<p>When using rancid you have to store the username and password in a text file. When you don&#8217;t want to give the user privilege level 15 you have to store the enable password as well. Tacacs with authorization is the best solution to restrict access for the rancid user. Since the rancid user doesn&#8217;t need to change any configuration on the network devices, you can restrict the commands it is allowed to run.</p>
<p>When using tac_plus (http://www.shrubbery.net/tac_plus/) you can use the following definition for the rancid user:<br />
<code><br />
user = rancid {<br />
#    default service = permit<br />
login = cleartext "XXX"<br />
enable = cleartext "XXX"<br />
name = "Rancid User"<br />
service = exec {<br />
priv-lvl = 15<br />
}<br />
cmd = show {<br />
permit .*<br />
}<br />
cmd = write {<br />
permit term<br />
}<br />
cmd = dir {<br />
permit .*<br />
}<br />
cmd = admin {<br />
permit .*<br />
}<br />
cmd = more {<br />
permit .*<br />
}</p>
<p>}<br />
</code></p>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">user = rancid {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">#    default service = permit</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">login = cleartext &#8220;R4nc!d&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">enable = cleartext &#8220;raNc1d_3naB1e&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">name = &#8220;Rancid User&#8221;</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">service = exec {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">priv-lvl = 15</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cmd = show {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">permit .*</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cmd = write {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">permit term</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cmd = dir {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">permit .*</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">cmd = admin {</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">permit .*</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}</div>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 22px; width: 1px; height: 1px; overflow-x: hidden; overflow-y: hidden;">}T</div>
<p>The rancid user is automatically in enable mode because the privilege level is set to 15 in tacacs. You have to configure rancid no to enter enable mode. This is configured (for cisco devices) in ~rancid/.cloginrc</p>
<p>Enter the following details:<br />
<code><br />
add user        *       rancid<br />
add password    *       XXX<br />
add method      *       telnet<br />
add autoenable  *       1</code></p>
]]></content:encoded>
			<wfw:commentRss>http://rogierm.redbee.nl/blog/2009/07/23/restrict-commands-for-rancid-using-tacacs/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

