<?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; config</title>
	<atom:link href="http://rogierm.redbee.nl/blog/tag/config/feed/" rel="self" type="application/rss+xml" />
	<link>http://rogierm.redbee.nl/blog</link>
	<description>Just another blog with technical stuff</description>
	<lastBuildDate>Mon, 28 Jun 2010 21:04:31 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<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>1</slash:comments>
		</item>
	</channel>
</rss>
