<rss xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title>Security - Tag - Fryguy's Blog</title><link>https://hugo.fryguy.net/tags/security/</link><description>Security - Tag - Fryguy's Blog</description><generator>Hugo -- gohugo.io</generator><language>en</language><lastBuildDate>Thu, 18 Oct 2012 12:04:07 +0000</lastBuildDate><atom:link href="https://hugo.fryguy.net/tags/security/" rel="self" type="application/rss+xml"/><item><title>IOS XR – TACACS (default and non-default VRF)</title><link>https://hugo.fryguy.net/2012/10/18/ios-xr-tacacs-default-and-non-default-vrf/</link><pubDate>Thu, 18 Oct 2012 12:04:07 +0000</pubDate><author>Fryguy</author><guid>https://hugo.fryguy.net/2012/10/18/ios-xr-tacacs-default-and-non-default-vrf/</guid><description><![CDATA[<p><a href="/wp-content/uploads/2012/09/iosxrfryguy-8.jpg" rel=""></a><br>
Ok, final post on IOS-XR before the workbook is published in its entirety.<br>
 <br>
So you want to secure your IOS-XR device using TACACS.<br>
The first example I will use will be using the default VRF for TACACS authorization and the second will be using a different VRF. For these examples, the tacacs server is at IP 192.168.100.100 and the password is TacacsPassword<br>
First up, we need to configure our source interface for TACACS, here we will use loopback0 and the default VRF.<br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#<span style="color: #ff0000;">tacacs source-interface Loopback0 vrf default</span></span><br>
Now we can configure our TACACS server and Password<br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#<span style="color: #ff0000;">tacacs-server host 192.168.100.100</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config-tacacs-host)#<span style="color: #ff0000;">key 0 TacacsPassword</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config-tacacs-host)#<span style="color: #ff0000;">exit</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#</span><br>
Time to create a local console authenticaion method, this way console does not rely on TACACS.<br>
You may or may not want to do this, but I am showing it for these examples.<br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#<span style="color: #ff0000;">aaa authentication login console local</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#<span style="color: #ff0000;">aaa authorization commands console none</span></span><br>
Apply the console loging to the line console<br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#<span style="color: #ff0000;">line console</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config-line)#<span style="color: #ff0000;">login authentication console</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config-line)#<span style="color: #ff0000;">authorization commands console</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config-line)#<span style="color: #ff0000;">exit</span></span><br>
<span style="color: #0000ff;">RP/0/RSP0/CPU0:PE2(config)#</span></p>]]></description></item></channel></rss>