<?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; switch</title>
	<atom:link href="http://rogierm.redbee.nl/blog/tag/switch/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 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>
	</channel>
</rss>

