Security http://cisconet.com/security.feed 2010-09-10T01:34:52Z Joomla! 1.5 - Open Source Content Management How to configure time-based ACL on Cisco router 2010-04-03T02:16:23Z 2010-04-03T02:16:23Z http://cisconet.com/security/security-configuration/554-how-to-configure-time-based-acl-on-cisco-router.html CiscoNET contactus@wirethink.com <p><span style="color: rgb(0, 0, 0);"><strong>1. Create time period</strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-Router#<br /> Cisco-router(config)#<strong> time-range WEB-time</strong><br /> Cisco-router(config-time-range)# <strong>periodic Monday friday 8:00 to 17:00 </strong><br /> Cisco-router(config-time-range)# <strong>periodic Saturday 8:00 to 12:00</strong><br /> &nbsp;</span></p> <p><span style="color: rgb(0, 0, 0);"><strong>2. Create ACL </strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)# <strong>access-list 150 permit tcp any any eq www time-range WEB-time</strong><br /> &nbsp;</span></p> <p><span style="color: rgb(0, 0, 0);"><strong>3. Applying ACL</strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)# <strong>interface fa0/0</strong><br /> Cisco-router(config-if)# <strong>ip access-group 150 in </strong></span></p> <p><span style="color: rgb(0, 0, 0);"><strong>1. Create time period</strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-Router#<br /> Cisco-router(config)#<strong> time-range WEB-time</strong><br /> Cisco-router(config-time-range)# <strong>periodic Monday friday 8:00 to 17:00 </strong><br /> Cisco-router(config-time-range)# <strong>periodic Saturday 8:00 to 12:00</strong><br /> &nbsp;</span></p> <p><span style="color: rgb(0, 0, 0);"><strong>2. Create ACL </strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)# <strong>access-list 150 permit tcp any any eq www time-range WEB-time</strong><br /> &nbsp;</span></p> <p><span style="color: rgb(0, 0, 0);"><strong>3. Applying ACL</strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)# <strong>interface fa0/0</strong><br /> Cisco-router(config-if)# <strong>ip access-group 150 in </strong></span></p> How to configure conditional ACL is called Lock & Key 2010-04-03T00:09:13Z 2010-04-03T00:09:13Z http://cisconet.com/security/security-configuration/553-how-to-configure-conditional-acl-is-called-lock-a-key.html CiscoNET contactus@wirethink.com <p><span style="color: rgb(0, 0, 0);">This is a sample configuration for conditional <span class="J-JK9eJ-PJVNOc" style="background: none repeat scroll 0% 0% yellow;">ACL</span> is often called Lock &amp; Key. By the authenticating, router will allow traffic for certain time.</span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Host IP = 10.10.12.1<br /> Cisco-router = Fa0/0:10.10.12.2<br /> Server IP = 10.10.23.3<br /> </span></p> <p><strong><span style="color: rgb(0, 0, 0);">1. Create Account</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)# <strong>username ACCESS password cisconet</strong> <br /> </span></p> <p style="margin-left: 40px;">&nbsp;</p> <p><strong><span style="color: rgb(0, 0, 0);">2. Create ACL</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"> <strong>access-list 101 permit tcp any host 10.10.12.2 eq telnet</strong><br /> </span><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"> <strong>access-list 101 dynamic ACCESS timeout 2 permit ip any any</strong> <br /> </span></p> <p style="margin-left: 40px;">* Timeout in minute.<br /> ** dynamic ACL name ; ACCESS</p> <p><strong><span style="color: rgb(0, 0, 0);">3. Apply ACL</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"><strong> interface fa0/0<br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco-router(config-if)#</span><span style="color: rgb(0, 0, 0);"><strong> ip access-group 101 in</strong></span><span style="color: rgb(0, 0, 0);"><strong><br /> </strong></span></p> <p>&nbsp;</p> <p><strong><span style="color: rgb(0, 0, 0);">4. Configure vty</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"> </span><strong><span style="color: rgb(0, 0, 0);">line vty 0 4</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);">Cisco-router(config-line)#</span><span style="color: rgb(0, 0, 0);"> <strong>login local</strong><br /> </span><span style="color: rgb(0, 0, 0);">Cisco-router(config-line)# <strong>autocommand access-enable host timeout 1 </strong><br /> <br /> * timeout in minute </span></p> <p style="margin-left: 40px;"><strong><br /> </strong></p> <p><strong><span style="color: rgb(0, 0, 0);">5. Verifying</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;">From host/10.10.12.1, telnet into 10.10.12.2 to get authentication. After authenticating, router will allow traffic for host 10.10.12.1</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router</span><span style="color: rgb(0, 0, 0);">#sh ip access-lists 101<br /> Extended IP access list 101<br /> &nbsp;&nbsp;&nbsp; 10 permit tcp any host 10.10.12.2 eq telnet (75 matches)<br /> &nbsp;&nbsp;&nbsp; 20 Dynamic telnet permit ip any any<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; permit ip host <strong>10.10.12.1</strong> any (49 matches) (time left 54)<br /> &nbsp; <br /> </span></p> <p><span style="color: rgb(0, 0, 0);">This is a sample configuration for conditional <span class="J-JK9eJ-PJVNOc" style="background: none repeat scroll 0% 0% yellow;">ACL</span> is often called Lock &amp; Key. By the authenticating, router will allow traffic for certain time.</span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Host IP = 10.10.12.1<br /> Cisco-router = Fa0/0:10.10.12.2<br /> Server IP = 10.10.23.3<br /> </span></p> <p><strong><span style="color: rgb(0, 0, 0);">1. Create Account</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)# <strong>username ACCESS password cisconet</strong> <br /> </span></p> <p style="margin-left: 40px;">&nbsp;</p> <p><strong><span style="color: rgb(0, 0, 0);">2. Create ACL</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"> <strong>access-list 101 permit tcp any host 10.10.12.2 eq telnet</strong><br /> </span><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"> <strong>access-list 101 dynamic ACCESS timeout 2 permit ip any any</strong> <br /> </span></p> <p style="margin-left: 40px;">* Timeout in minute.<br /> ** dynamic ACL name ; ACCESS</p> <p><strong><span style="color: rgb(0, 0, 0);">3. Apply ACL</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"><strong> interface fa0/0<br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco-router(config-if)#</span><span style="color: rgb(0, 0, 0);"><strong> ip access-group 101 in</strong></span><span style="color: rgb(0, 0, 0);"><strong><br /> </strong></span></p> <p>&nbsp;</p> <p><strong><span style="color: rgb(0, 0, 0);">4. Configure vty</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router(config)#</span><span style="color: rgb(0, 0, 0);"> </span><strong><span style="color: rgb(0, 0, 0);">line vty 0 4</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);">Cisco-router(config-line)#</span><span style="color: rgb(0, 0, 0);"> <strong>login local</strong><br /> </span><span style="color: rgb(0, 0, 0);">Cisco-router(config-line)# <strong>autocommand access-enable host timeout 1 </strong><br /> <br /> * timeout in minute </span></p> <p style="margin-left: 40px;"><strong><br /> </strong></p> <p><strong><span style="color: rgb(0, 0, 0);">5. Verifying</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;">From host/10.10.12.1, telnet into 10.10.12.2 to get authentication. After authenticating, router will allow traffic for host 10.10.12.1</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco-router</span><span style="color: rgb(0, 0, 0);">#sh ip access-lists 101<br /> Extended IP access list 101<br /> &nbsp;&nbsp;&nbsp; 10 permit tcp any host 10.10.12.2 eq telnet (75 matches)<br /> &nbsp;&nbsp;&nbsp; 20 Dynamic telnet permit ip any any<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; permit ip host <strong>10.10.12.1</strong> any (49 matches) (time left 54)<br /> &nbsp; <br /> </span></p> Access-list(ACL) for Traceroute and Tracert 2010-03-09T03:30:29Z 2010-03-09T03:30:29Z http://cisconet.com/security/security-general/524-access-listacl-for-traceroute-and-tracert.html CiscoNET contactus@wirethink.com <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Here is the sample configuration to allow traceroute(Unix or Network devices) and tracert(MS Windows)<br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">&quot;<strong>TraceRoute</strong>&quot; commands of Unix and Cisco devices send UDP packets, while &quot;<strong>TraceRT</strong>&quot; commands in MS Windows is sending ICMP packets.<br /> In both cases the returning packets are only ICMP. For &quot;<strong>TraceRT</strong>&quot;.<br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"> </span></span><span style="color: rgb(0, 0, 0);">Cisco Router#<br /> Cisco Router#conf t</span><br /> <span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any time-exceeded<br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any </strong></span><span style="color: rgb(0, 0, 0);"><strong>unreachable or port-unreachable</strong></span>&nbsp;</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">If you want to accept ping (ICMP echo-reply), it would be like below</span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco Router#<br /> Cisco Router#conf t<br /> </span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any echo-reply</strong> ; (ICMP type 0)</span><br /> <span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any time-exceeded<br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any </strong></span><span style="color: rgb(0, 0, 0);"><strong>unreachable or port-unreachable ; </strong>(ICMP type 3)<strong><br /> </strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><br /> Then, apply WAN Serial interface(in this example)</span><br /> <br /> <span style="color: rgb(0, 0, 0);">Cisco Router#<br /> Cisco Router#conf t</span><br /> <span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>interface serial1/1</strong><br /> </span><span style="color: rgb(0, 0, 0);">Cisco Router(config-if)#</span><strong><span style="color: rgb(0, 0, 0);">ip access-group 111 in</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">* If you have outbound ACL, you need to allow UDP and ICMP echo. If you have inbound policy, then you don't need below.<br /> <br /> </span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit UDP any any gt 3000 <br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any echo</strong></span> ; Echo request (type 8)<br /> &nbsp;</p> <p><span style="color: rgb(0, 0, 0);"> <p style="margin-left: 40px;">&nbsp;** If you see below output, it is evidence of missing &quot;<strong>time-exceeded</strong> (ICMP type 11)<strong>&quot;</strong></p> </span></p> <p style="margin-left: 80px;"><span style="color: rgb(0, 0, 0);">Cisco Router#tr 200.200.200.1<br /> <br /> Type escape sequence to abort.<br /> Tracing the route to 200.200.200.1<br /> <br /> &nbsp; 1 100.100.100.2 24 msec 24 msec 8 msec<br /> &nbsp; 2&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 3&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 4&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 5&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 6 200.200.200.1 44 msec 52 msec * <br /> Cisco Router#</span><br /> &nbsp;</p> <p style="margin-left: 80px;">&nbsp;</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Here is the sample configuration to allow traceroute(Unix or Network devices) and tracert(MS Windows)<br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">&quot;<strong>TraceRoute</strong>&quot; commands of Unix and Cisco devices send UDP packets, while &quot;<strong>TraceRT</strong>&quot; commands in MS Windows is sending ICMP packets.<br /> In both cases the returning packets are only ICMP. For &quot;<strong>TraceRT</strong>&quot;.<br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><br /> </span><span style="color: rgb(0, 0, 0);"><span style="font-weight: bold;"> </span></span><span style="color: rgb(0, 0, 0);">Cisco Router#<br /> Cisco Router#conf t</span><br /> <span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any time-exceeded<br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any </strong></span><span style="color: rgb(0, 0, 0);"><strong>unreachable or port-unreachable</strong></span>&nbsp;</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">If you want to accept ping (ICMP echo-reply), it would be like below</span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Cisco Router#<br /> Cisco Router#conf t<br /> </span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any echo-reply</strong> ; (ICMP type 0)</span><br /> <span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any time-exceeded<br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any </strong></span><span style="color: rgb(0, 0, 0);"><strong>unreachable or port-unreachable ; </strong>(ICMP type 3)<strong><br /> </strong></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><br /> Then, apply WAN Serial interface(in this example)</span><br /> <br /> <span style="color: rgb(0, 0, 0);">Cisco Router#<br /> Cisco Router#conf t</span><br /> <span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>interface serial1/1</strong><br /> </span><span style="color: rgb(0, 0, 0);">Cisco Router(config-if)#</span><strong><span style="color: rgb(0, 0, 0);">ip access-group 111 in</span></strong><span style="color: rgb(0, 0, 0);"><br /> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">* If you have outbound ACL, you need to allow UDP and ICMP echo. If you have inbound policy, then you don't need below.<br /> <br /> </span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit UDP any any gt 3000 <br /> </strong></span><span style="color: rgb(0, 0, 0);">Cisco Router(config)#<strong>access-list 111 permit icmp any any echo</strong></span> ; Echo request (type 8)<br /> &nbsp;</p> <p><span style="color: rgb(0, 0, 0);"> <p style="margin-left: 40px;">&nbsp;** If you see below output, it is evidence of missing &quot;<strong>time-exceeded</strong> (ICMP type 11)<strong>&quot;</strong></p> </span></p> <p style="margin-left: 80px;"><span style="color: rgb(0, 0, 0);">Cisco Router#tr 200.200.200.1<br /> <br /> Type escape sequence to abort.<br /> Tracing the route to 200.200.200.1<br /> <br /> &nbsp; 1 100.100.100.2 24 msec 24 msec 8 msec<br /> &nbsp; 2&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 3&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 4&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 5&nbsp; *&nbsp; *&nbsp; * <br /> &nbsp; 6 200.200.200.1 44 msec 52 msec * <br /> Cisco Router#</span><br /> &nbsp;</p> <p style="margin-left: 80px;">&nbsp;</p> Security Warning - Exposed WAN Link Identity by reverse lookup 2009-09-22T02:05:30Z 2009-09-22T02:05:30Z http://cisconet.com/security/security-general/448-warning-security-exposed-company-wan-link-by-reverse-lookup.html CiscoNET contactus@wirethink.com <p style="margin-left: 40px;">If someone knows what is your IP address of WAN link, if someone knows what ISP you are currently using, if someone knows where your link is connected, isn't that scary ? Of course, that is definitely &quot;NO GOOD&quot;.&nbsp; Your traffic would be the easy target for hackers.</p> <p style="margin-left: 40px;">How they know all the information? It's quit simple. Most of ISP assigns /30 IP address block for connectivity between their edge device and CPE(Customer Premises Equipment) from big chunk of&nbsp; reserved IP block such as /16, B class IP block. So easy to recognize WAN IP address by traceroute. I&nbsp;don't want to make a list of the IP blocks that ISP reserves for customer WAN link here. However, just googling the information, you will get it easily.</p> <p style="margin-left: 40px;">Another security warning on reverse-lookup data. Some of ISP update customer account#, interface and customer name on DNS reverse-lookup zone file.</p> <p style="margin-left: 40px;">Try reserve-lookup data on your WAN&nbsp;IP address, what information comes to you.</p> <p style="margin-left: 40px;"><strong>DOS prompt&gt; nslookup x.x.x.x</strong></p> <p style="margin-left: 40px;">You might surprise with the output.</p> <p style="margin-left: 40px;">If you are allocated IP block from your upstream provider, try reserve-lookup date for your IP block. It might expose your company name or IP assignment information.</p> <p style="margin-left: 40px;">Security hole is where you never expect!</p> <p>&nbsp;</p> <p style="margin-left: 40px;">If someone knows what is your IP address of WAN link, if someone knows what ISP you are currently using, if someone knows where your link is connected, isn't that scary ? Of course, that is definitely &quot;NO GOOD&quot;.&nbsp; Your traffic would be the easy target for hackers.</p> <p style="margin-left: 40px;">How they know all the information? It's quit simple. Most of ISP assigns /30 IP address block for connectivity between their edge device and CPE(Customer Premises Equipment) from big chunk of&nbsp; reserved IP block such as /16, B class IP block. So easy to recognize WAN IP address by traceroute. I&nbsp;don't want to make a list of the IP blocks that ISP reserves for customer WAN link here. However, just googling the information, you will get it easily.</p> <p style="margin-left: 40px;">Another security warning on reverse-lookup data. Some of ISP update customer account#, interface and customer name on DNS reverse-lookup zone file.</p> <p style="margin-left: 40px;">Try reserve-lookup data on your WAN&nbsp;IP address, what information comes to you.</p> <p style="margin-left: 40px;"><strong>DOS prompt&gt; nslookup x.x.x.x</strong></p> <p style="margin-left: 40px;">You might surprise with the output.</p> <p style="margin-left: 40px;">If you are allocated IP block from your upstream provider, try reserve-lookup date for your IP block. It might expose your company name or IP assignment information.</p> <p style="margin-left: 40px;">Security hole is where you never expect!</p> <p>&nbsp;</p> How to configure Pix 515 for connecting PDM 2009-06-22T02:11:24Z 2009-06-22T02:11:24Z http://cisconet.com/security/security-general/418-how-to-configure-pix-515-basic.html CiscoNET contactus@wirethink.com <p>This is a quick guide for configuring Cisco PIX 515 which is discontinued model. Even though <img width="110" height="73" align="right" alt="cisco_logo.gif" src="http://cisconet.com//images/stories/users/cisco_logo.gif" />Cisco PIX 515 is kinds of old model, it provides GUI interface thru built-in software in the box. That is called PDM stands for PIX Device Manager. Definitely GUI is benefits for network admin.</p> <p>First of all, here is a device I am configuring</p> <p style="margin-left: 40px;">Cisco PIX Firewall Version 6.2(2)<br /> Cisco PIX Device Manager Version 2.1(1)<br /> <br /> Compiled on Fri 07-Jun-02 17:49 by morlee<br /> <br /> pixfirewall up 1 min 9 secs<br /> <br /> Hardware:&nbsp;&nbsp; PIX-515, 64 MB RAM, CPU Pentium 200 MHz<br /> Flash i28F640J5 @ 0x300, 16MB<br /> BIOS Flash AT29C257 @ 0xfffd8000, 32KB<br /> <br /> 0: ethernet0: address is 0004.9ad0.d058, irq 11<br /> 1: ethernet1: address is 0004.9ad0.d059, irq 10<br /> 2: ethernet2: address is 0090.2710.3b1c, irq 9<br /> Licensed Features:<br /> Failover:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disabled<br /> VPN-DES:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<br /> VPN-3DES:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disabled<br /> Maximum Interfaces: 3<br /> Cut-through Proxy:&nbsp; Enabled<br /> Guards:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<br /> URL-filtering:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<br /> Inside Hosts:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unlimited<br /> Throughput:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unlimited<br /> IKE peers:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unlimited<br /> <br /> Serial Number: 406080307 (0x18344b33)<br /> Running Activation Key: 0x78118d39 0xf5e9f2bb 0xdb93e47e 0xd401763e<br /> Configuration last modified by enable_15 at 02:28:10.920 UTC Mon Jun 22 2009<br /> pixfirewall# 111009: User 'enable_15' executed cmd: show version<br /> &nbsp;</p> <p>&nbsp;</p> <p>Here are the steps.</p> <p><strong>1.</strong> Need to console to assign IP address on Ethernet 0 port. I am using Putty.exe which is free utility you can download from Internet. From Putty configuration mode, choose Serial and Speed 9600(default). I hope you know the login info and enable password. If you don't, you need to try password recovery procedure.</p> <p><strong>2. Check name of interfaces first.</strong></p> <p style="margin-left: 40px;"><strong>PIX-515# <span style="color: rgb(0, 0, 255);">show nameif</span><br /> nameif ethernet0 outside security0<br /> nameif ethernet1 inside security0<br /> nameif ethernet2 intf2 security10</strong><br /> &nbsp;</p> <p>While you are configuring PIX 515, you will get asked '<if-name>'. I thought it meant interface name such as 'Ethernet 0' or 'Ethernet 1'. Actually that is hardware-id in PIX firewall world. It<if-name> means 'outside' or 'inside' as above output. Personally, I don't like the expression, but what I can do...</if-name></if-name></p> <p><strong>3. Configuring IP address on Ethernet1</strong></p> <p>As you can see the name of interface, which is 'inside'. This port will be connected to probably your switch / your network.</p> <p style="margin-left: 40px;">PIX-515(config)# <strong><span style="color: rgb(0, 0, 255);">ip address inside 192.168.77.1 255.255.255.0</span></strong></p> <p style="margin-left: 40px;"><strong>PIX-515# <span style="color: rgb(0, 0, 255);">sh int ethernet1</span><br /> interface ethernet1 &quot;inside&quot; is up, line protocol is down<br /> &nbsp; Hardware is i82559 ethernet, address is 0004.9ad0.d059<br /> &nbsp; IP address 192.168.77.1, subnet mask 255.255.255.0<br /> &nbsp; MTU 1500 bytes, BW 10000 Kbit half duplex<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 packets input, 0 bytes, 0 no buffer<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Received 0 broadcasts, 0 runts, 0 giants<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 packets output, 0 bytes, 0 underruns<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 output errors, 0 collisions, 0 interface resets<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 babbles, 0 late collisions, 0 deferred<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 lost carrier, 0 no carrier<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input queue (curr/max blocks): hardware (128/128) software (0/0)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output queue (curr/max blocks): hardware (0/0) software (0/0)<br /> PIX-515#</strong></p> <p><strong>4. Changing interface speed</strong></p> <p>It is very very important port to get proper performance. Especially, PIX 515 is connecting different vendors. Duplex mis-matching often causes performance issue.</p> <p>Default setup is 'auto' (If line is not connected, it showed 'shutdown')</p> <p style="margin-left: 40px;"><strong>interface ethernet0 auto<br /> interface ethernet1 auto<br /> interface ethernet2 auto shutdown</strong></p> <p>If you want to make hard coded speed and duplex, specific interface can be configured like below</p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong>interface ethernet1 100full</strong></span></p> <p><strong>5. Allow your device to access PDM</strong></p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong>http 192.168.77.101 255.255.255.255 inside</strong></span></p> <p style="margin-left: 40px;">**Important: 192.168.77.101 is your device which is attempting to access PDM.</p> <p>If you are put a wrong IP address. You will see below on Cisco log</p> <p style="margin-left: 40px;"><strong><span class="pEM_ErrMsg">%PIX-6-605001: HTTP daemon interface int_name: connection denied from x.x.x.x</span></strong><span class="pEM_ErrMsg"><br /> </span></p> <p><strong>6. Enable HTTP server</strong></p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong>http server enable</strong></span></p> <p><strong>7. Create user and password</strong></p> <p>When you access PDM, you will get asked login prompt. It is different from enable or login password for accessing PIX 515 box</p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong> username cisco password&nbsp; xxxxx</strong></span></p> <p><strong>8. Access PDM from your browser</strong></p> <p>Even though we are enable http, when you browse PDM, you MUST use &quot;HTTPS&quot;.</p> <p style="margin-left: 40px;"><strong>HTTPS://192.168.77.1</strong></p> <p style="margin-left: 40px;">&nbsp;</p> <h2>Extra configurations</h2> <h3>Map address to name</h3> <p style="margin-left: 40px;"><tt>name 192.168.77.22 InternetPHONE<br /> </tt><tt>name </tt><tt>192.168.77.31 Linux64</tt><br /> <tt>name </tt><tt>192.168.77.55 CiscoNET_PC</tt><tt><br /> </tt></p> <p>&nbsp;</p> <h3>NAT</h3> <p style="margin-left: 40px;"><tt>global (outside) 1 <font color="#000000"> 10.1.1.51</font>-10.1.1.100 netmask 255.255.255.0<br /> </tt><tt>global (outside) 1 <font color="#000000"> 10.1.1.50 ne</font>tmask 255.255.255.0<br /> </tt><tt>nat (inside) 0 access-list 101<br /> </tt><tt><font color="#000000">nat (inside) 1 100.1.1.0 255.255.255.0 0 0</font></tt><tt><br /> nat (management) 1 100.2.2.0 255.255.255.0 0 0</tt><tt><br /> </tt></p> <p>&nbsp;</p> <h3>Static route</h3> <p style="margin-left: 40px;"><tt>static (dmz,outside) 1.1.1.22 10.3.3.22 netmask 255.255.255.255 0 0<br /> </tt><tt>static (inside,management) 10.1.1.13 10.1.1.13 netmask 255.255.255.255 0 0</tt><tt><br /> <br /> </tt><tt>route outside 0.0.0.0 0.0.0.0 192.168.1.1 1</tt><tt><br /> </tt></p> <p>&nbsp;</p> <h3>Access-list</h3> <p style="margin-left: 40px;"><tt><font color="#000000">access-list from-management-coming-in permit tcp host 192.168.1.1 host 172.16.1.1 eq 9100</font></tt> <br /> <tt><font color="#000000">access-group from-inside-coming-in in interface inside</font></tt></p> <p>&nbsp;</p> <p>Reference:</p> <p>- PIX message index : http://www.cisco.com/en/US/docs/security/pix/pix61/system/message/pixemsgs.html#wp1032267</p> <p>&nbsp;</p> <p>This is a quick guide for configuring Cisco PIX 515 which is discontinued model. Even though <img width="110" height="73" align="right" alt="cisco_logo.gif" src="http://cisconet.com//images/stories/users/cisco_logo.gif" />Cisco PIX 515 is kinds of old model, it provides GUI interface thru built-in software in the box. That is called PDM stands for PIX Device Manager. Definitely GUI is benefits for network admin.</p> <p>First of all, here is a device I am configuring</p> <p style="margin-left: 40px;">Cisco PIX Firewall Version 6.2(2)<br /> Cisco PIX Device Manager Version 2.1(1)<br /> <br /> Compiled on Fri 07-Jun-02 17:49 by morlee<br /> <br /> pixfirewall up 1 min 9 secs<br /> <br /> Hardware:&nbsp;&nbsp; PIX-515, 64 MB RAM, CPU Pentium 200 MHz<br /> Flash i28F640J5 @ 0x300, 16MB<br /> BIOS Flash AT29C257 @ 0xfffd8000, 32KB<br /> <br /> 0: ethernet0: address is 0004.9ad0.d058, irq 11<br /> 1: ethernet1: address is 0004.9ad0.d059, irq 10<br /> 2: ethernet2: address is 0090.2710.3b1c, irq 9<br /> Licensed Features:<br /> Failover:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disabled<br /> VPN-DES:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<br /> VPN-3DES:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Disabled<br /> Maximum Interfaces: 3<br /> Cut-through Proxy:&nbsp; Enabled<br /> Guards:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<br /> URL-filtering:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Enabled<br /> Inside Hosts:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unlimited<br /> Throughput:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unlimited<br /> IKE peers:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Unlimited<br /> <br /> Serial Number: 406080307 (0x18344b33)<br /> Running Activation Key: 0x78118d39 0xf5e9f2bb 0xdb93e47e 0xd401763e<br /> Configuration last modified by enable_15 at 02:28:10.920 UTC Mon Jun 22 2009<br /> pixfirewall# 111009: User 'enable_15' executed cmd: show version<br /> &nbsp;</p> <p>&nbsp;</p> <p>Here are the steps.</p> <p><strong>1.</strong> Need to console to assign IP address on Ethernet 0 port. I am using Putty.exe which is free utility you can download from Internet. From Putty configuration mode, choose Serial and Speed 9600(default). I hope you know the login info and enable password. If you don't, you need to try password recovery procedure.</p> <p><strong>2. Check name of interfaces first.</strong></p> <p style="margin-left: 40px;"><strong>PIX-515# <span style="color: rgb(0, 0, 255);">show nameif</span><br /> nameif ethernet0 outside security0<br /> nameif ethernet1 inside security0<br /> nameif ethernet2 intf2 security10</strong><br /> &nbsp;</p> <p>While you are configuring PIX 515, you will get asked '<if-name>'. I thought it meant interface name such as 'Ethernet 0' or 'Ethernet 1'. Actually that is hardware-id in PIX firewall world. It<if-name> means 'outside' or 'inside' as above output. Personally, I don't like the expression, but what I can do...</if-name></if-name></p> <p><strong>3. Configuring IP address on Ethernet1</strong></p> <p>As you can see the name of interface, which is 'inside'. This port will be connected to probably your switch / your network.</p> <p style="margin-left: 40px;">PIX-515(config)# <strong><span style="color: rgb(0, 0, 255);">ip address inside 192.168.77.1 255.255.255.0</span></strong></p> <p style="margin-left: 40px;"><strong>PIX-515# <span style="color: rgb(0, 0, 255);">sh int ethernet1</span><br /> interface ethernet1 &quot;inside&quot; is up, line protocol is down<br /> &nbsp; Hardware is i82559 ethernet, address is 0004.9ad0.d059<br /> &nbsp; IP address 192.168.77.1, subnet mask 255.255.255.0<br /> &nbsp; MTU 1500 bytes, BW 10000 Kbit half duplex<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 packets input, 0 bytes, 0 no buffer<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Received 0 broadcasts, 0 runts, 0 giants<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 input errors, 0 CRC, 0 frame, 0 overrun, 0 ignored, 0 abort<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 packets output, 0 bytes, 0 underruns<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 output errors, 0 collisions, 0 interface resets<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 babbles, 0 late collisions, 0 deferred<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 0 lost carrier, 0 no carrier<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; input queue (curr/max blocks): hardware (128/128) software (0/0)<br /> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; output queue (curr/max blocks): hardware (0/0) software (0/0)<br /> PIX-515#</strong></p> <p><strong>4. Changing interface speed</strong></p> <p>It is very very important port to get proper performance. Especially, PIX 515 is connecting different vendors. Duplex mis-matching often causes performance issue.</p> <p>Default setup is 'auto' (If line is not connected, it showed 'shutdown')</p> <p style="margin-left: 40px;"><strong>interface ethernet0 auto<br /> interface ethernet1 auto<br /> interface ethernet2 auto shutdown</strong></p> <p>If you want to make hard coded speed and duplex, specific interface can be configured like below</p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong>interface ethernet1 100full</strong></span></p> <p><strong>5. Allow your device to access PDM</strong></p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong>http 192.168.77.101 255.255.255.255 inside</strong></span></p> <p style="margin-left: 40px;">**Important: 192.168.77.101 is your device which is attempting to access PDM.</p> <p>If you are put a wrong IP address. You will see below on Cisco log</p> <p style="margin-left: 40px;"><strong><span class="pEM_ErrMsg">%PIX-6-605001: HTTP daemon interface int_name: connection denied from x.x.x.x</span></strong><span class="pEM_ErrMsg"><br /> </span></p> <p><strong>6. Enable HTTP server</strong></p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong>http server enable</strong></span></p> <p><strong>7. Create user and password</strong></p> <p>When you access PDM, you will get asked login prompt. It is different from enable or login password for accessing PIX 515 box</p> <p style="margin-left: 40px;"><strong>PIX-515(config)#</strong><span style="color: rgb(0, 0, 255);"><strong> username cisco password&nbsp; xxxxx</strong></span></p> <p><strong>8. Access PDM from your browser</strong></p> <p>Even though we are enable http, when you browse PDM, you MUST use &quot;HTTPS&quot;.</p> <p style="margin-left: 40px;"><strong>HTTPS://192.168.77.1</strong></p> <p style="margin-left: 40px;">&nbsp;</p> <h2>Extra configurations</h2> <h3>Map address to name</h3> <p style="margin-left: 40px;"><tt>name 192.168.77.22 InternetPHONE<br /> </tt><tt>name </tt><tt>192.168.77.31 Linux64</tt><br /> <tt>name </tt><tt>192.168.77.55 CiscoNET_PC</tt><tt><br /> </tt></p> <p>&nbsp;</p> <h3>NAT</h3> <p style="margin-left: 40px;"><tt>global (outside) 1 <font color="#000000"> 10.1.1.51</font>-10.1.1.100 netmask 255.255.255.0<br /> </tt><tt>global (outside) 1 <font color="#000000"> 10.1.1.50 ne</font>tmask 255.255.255.0<br /> </tt><tt>nat (inside) 0 access-list 101<br /> </tt><tt><font color="#000000">nat (inside) 1 100.1.1.0 255.255.255.0 0 0</font></tt><tt><br /> nat (management) 1 100.2.2.0 255.255.255.0 0 0</tt><tt><br /> </tt></p> <p>&nbsp;</p> <h3>Static route</h3> <p style="margin-left: 40px;"><tt>static (dmz,outside) 1.1.1.22 10.3.3.22 netmask 255.255.255.255 0 0<br /> </tt><tt>static (inside,management) 10.1.1.13 10.1.1.13 netmask 255.255.255.255 0 0</tt><tt><br /> <br /> </tt><tt>route outside 0.0.0.0 0.0.0.0 192.168.1.1 1</tt><tt><br /> </tt></p> <p>&nbsp;</p> <h3>Access-list</h3> <p style="margin-left: 40px;"><tt><font color="#000000">access-list from-management-coming-in permit tcp host 192.168.1.1 host 172.16.1.1 eq 9100</font></tt> <br /> <tt><font color="#000000">access-group from-inside-coming-in in interface inside</font></tt></p> <p>&nbsp;</p> <p>Reference:</p> <p>- PIX message index : http://www.cisco.com/en/US/docs/security/pix/pix61/system/message/pixemsgs.html#wp1032267</p> <p>&nbsp;</p> Modifying Access list and Prefix list 2009-05-25T03:34:03Z 2009-05-25T03:34:03Z http://cisconet.com/security/security-general/401-modifying-access-list-and-prefix-list.html CiscoNET contactus@wirethink.com <h2>Question:</h2> <p style="margin-left: 40px;">Modifying Access list and Prefix list</p> <p style="margin-left: 40px;">Any one knows how to modify and update a <span style="font-family: Verdana;"><span style="color: red;">HUGE</span></span> access list and prefix list on Cisco router ?<br /> I have about 2000 new IP blocks to add to current prefix list. <br /> I am looking for fastest way to do it.<br /> Any trick and tips would be help. <br /> Thanks</p> <p>&nbsp;</p> <h2>Answer:</h2> <p style="margin-left: 40px;">Modifying &quot;Huge&quot; access list &amp; prefix list ?<br /> <br /> Probably, there are multiple way to achieve your goal. <br /> Here is one of simple way that I knew and used in my work. (using vi editor)<br /> <br /> For example,&nbsp; you have IP blocks below. Current prefix list name = Hello<br /> <br /> -- Raw list --<br /> 1.1.1.1/24<br /> 2.2.2.2/23<br /> 3.3.3.3/22<br /> 4.4.4.4/21<br /> 5.5.5.5/20<br /> 6.6.6.6/19<br /> :<br /> :<br /> :<br /> <br /> <br /> 1. Create new file with vi editor = from prompt &quot;vi acl&quot; (on unix or linux)<br /> 2. Copy and paste entire list of new IP blocks into the new file just created<br /> 3. To add &quot;ip prefix-list Hello permit&quot; in front of raw IP blocks, follow below steps<br /> <br /> <br /> :%s/^/ip prefix-list Hello permit /g&nbsp; &nbsp; &lt;Enter&gt;<br /> (If you are not familiar with vi editor, search 'vi editor' on Internet)<br /> <br /> Now, you will see the below<br /> <br /> ip prefix-list Hello permit 1.1.1.1/24<br /> ip prefix-list Hello permit 2.2.2.2/23<br /> ip prefix-list Hello permit 3.3.3.3/22<br /> ip prefix-list Hello permit 4.4.4.4/21<br /> ip prefix-list Hello permit 5.5.5.5/20<br /> ip prefix-list Hello permit 6.6.6.6/19<br /> : <br /> :<br /> <br /> 4. To add &quot;le 32&quot; or any option, follow below steps<br /> <br /> :%s/\/24/\/24 le 32/g&nbsp; &nbsp; &lt;------- it will modify /24 IP block <br /> <br /> <br /> ip prefix-list Hello permit 1.1.1.1/24 le 32<br /> ip prefix-list Hello permit 2.2.2.2/23<br /> ip prefix-list Hello permit 3.3.3.3/22<br /> ip prefix-list Hello permit 4.4.4.4/21<br /> ip prefix-list Hello permit 5.5.5.5/20<br /> ip prefix-list Hello permit 6.6.6.6/19<br /> <br /> <br /> 5. Using the blow commands, complete modifying entire IP blocks.<br /> <br /> <br /> :%s/\/32/\/32 orlonger;/g<br /> :%s/\/30/\/30 orlonger;/g&nbsp; <br /> :%s/\/29/\/29 orlonger;/g<br /> :%s/\/28/\/28 orlonger;/g<br /> :%s/\/27/\/27 orlonger;/g<br /> :%s/\/26/\/26 orlonger;/g<br /> :%s/\/25/\/25 orlonger;/g<br /> :%s/\/24/\/24 orlonger;/g<br /> :%s/\/23/\/23 orlonger;/g<br /> :%s/\/22/\/22 orlonger;/g<br /> :%s/\/21/\/21 orlonger;/g&nbsp; &nbsp;<br /> :%s/\/20/\/20 orlonger;/g<br /> :%s/\/19/\/19 orlonger;/g<br /> :%s/\/18/\/18 orlonger;/g<br /> :%s/\/17/\/17 orlonger;/g<br /> :%s/\/16/\/16 orlonger;/g<br /> :%s/\/15/\/15 orlonger;/g<br /> :%s/\/14/\/14 orlonger;/g<br /> :%s/\/13/\/13 orlonger;/g<br /> :%s/\/12/\/12 orlonger;/g<br /> :%s/\/11/\/11 orlonger;/g<br /> :%s/\/10/\/10 orlonger;/g<br /> <br /> <br /> Final IP blocks look like below<br /> <br /> ip prefix-list Hello permit 1.1.1.1/24 le 32<br /> ip prefix-list Hello permit 2.2.2.2/23 le 32<br /> ip prefix-list Hello permit 3.3.3.3/22 le 32<br /> ip prefix-list Hello permit 4.4.4.4/21 le 32<br /> ip prefix-list Hello permit 5.5.5.5/20 le 32<br /> ip prefix-list Hello permit 6.6.6.6/19 le 32<br /> <br /> <br /> It is help only huge huge huge list of access list or prefix list. <br /> After modifed raw IP list, add it to current access list or prefix</p> <h2>Question:</h2> <p style="margin-left: 40px;">Modifying Access list and Prefix list</p> <p style="margin-left: 40px;">Any one knows how to modify and update a <span style="font-family: Verdana;"><span style="color: red;">HUGE</span></span> access list and prefix list on Cisco router ?<br /> I have about 2000 new IP blocks to add to current prefix list. <br /> I am looking for fastest way to do it.<br /> Any trick and tips would be help. <br /> Thanks</p> <p>&nbsp;</p> <h2>Answer:</h2> <p style="margin-left: 40px;">Modifying &quot;Huge&quot; access list &amp; prefix list ?<br /> <br /> Probably, there are multiple way to achieve your goal. <br /> Here is one of simple way that I knew and used in my work. (using vi editor)<br /> <br /> For example,&nbsp; you have IP blocks below. Current prefix list name = Hello<br /> <br /> -- Raw list --<br /> 1.1.1.1/24<br /> 2.2.2.2/23<br /> 3.3.3.3/22<br /> 4.4.4.4/21<br /> 5.5.5.5/20<br /> 6.6.6.6/19<br /> :<br /> :<br /> :<br /> <br /> <br /> 1. Create new file with vi editor = from prompt &quot;vi acl&quot; (on unix or linux)<br /> 2. Copy and paste entire list of new IP blocks into the new file just created<br /> 3. To add &quot;ip prefix-list Hello permit&quot; in front of raw IP blocks, follow below steps<br /> <br /> <br /> :%s/^/ip prefix-list Hello permit /g&nbsp; &nbsp; &lt;Enter&gt;<br /> (If you are not familiar with vi editor, search 'vi editor' on Internet)<br /> <br /> Now, you will see the below<br /> <br /> ip prefix-list Hello permit 1.1.1.1/24<br /> ip prefix-list Hello permit 2.2.2.2/23<br /> ip prefix-list Hello permit 3.3.3.3/22<br /> ip prefix-list Hello permit 4.4.4.4/21<br /> ip prefix-list Hello permit 5.5.5.5/20<br /> ip prefix-list Hello permit 6.6.6.6/19<br /> : <br /> :<br /> <br /> 4. To add &quot;le 32&quot; or any option, follow below steps<br /> <br /> :%s/\/24/\/24 le 32/g&nbsp; &nbsp; &lt;------- it will modify /24 IP block <br /> <br /> <br /> ip prefix-list Hello permit 1.1.1.1/24 le 32<br /> ip prefix-list Hello permit 2.2.2.2/23<br /> ip prefix-list Hello permit 3.3.3.3/22<br /> ip prefix-list Hello permit 4.4.4.4/21<br /> ip prefix-list Hello permit 5.5.5.5/20<br /> ip prefix-list Hello permit 6.6.6.6/19<br /> <br /> <br /> 5. Using the blow commands, complete modifying entire IP blocks.<br /> <br /> <br /> :%s/\/32/\/32 orlonger;/g<br /> :%s/\/30/\/30 orlonger;/g&nbsp; <br /> :%s/\/29/\/29 orlonger;/g<br /> :%s/\/28/\/28 orlonger;/g<br /> :%s/\/27/\/27 orlonger;/g<br /> :%s/\/26/\/26 orlonger;/g<br /> :%s/\/25/\/25 orlonger;/g<br /> :%s/\/24/\/24 orlonger;/g<br /> :%s/\/23/\/23 orlonger;/g<br /> :%s/\/22/\/22 orlonger;/g<br /> :%s/\/21/\/21 orlonger;/g&nbsp; &nbsp;<br /> :%s/\/20/\/20 orlonger;/g<br /> :%s/\/19/\/19 orlonger;/g<br /> :%s/\/18/\/18 orlonger;/g<br /> :%s/\/17/\/17 orlonger;/g<br /> :%s/\/16/\/16 orlonger;/g<br /> :%s/\/15/\/15 orlonger;/g<br /> :%s/\/14/\/14 orlonger;/g<br /> :%s/\/13/\/13 orlonger;/g<br /> :%s/\/12/\/12 orlonger;/g<br /> :%s/\/11/\/11 orlonger;/g<br /> :%s/\/10/\/10 orlonger;/g<br /> <br /> <br /> Final IP blocks look like below<br /> <br /> ip prefix-list Hello permit 1.1.1.1/24 le 32<br /> ip prefix-list Hello permit 2.2.2.2/23 le 32<br /> ip prefix-list Hello permit 3.3.3.3/22 le 32<br /> ip prefix-list Hello permit 4.4.4.4/21 le 32<br /> ip prefix-list Hello permit 5.5.5.5/20 le 32<br /> ip prefix-list Hello permit 6.6.6.6/19 le 32<br /> <br /> <br /> It is help only huge huge huge list of access list or prefix list. <br /> After modifed raw IP list, add it to current access list or prefix</p> [Cisco] How to configure Dyanmic Access List with time-range 2009-05-07T21:50:19Z 2009-05-07T21:50:19Z http://cisconet.com/security/security-configuration/262-cisco-how-to-configure-dyanmic-access-list-with-time-range.html Administrator chris.yoon@wirethink.com <p><font face="Tahoma " size="2"><br /> This daynamic access-list is not commonly used, but it is good to know. Below scenario indicated once a client get authrized by telnet login then, the client can access boyond the port(Ethernet in this case) </font></p> <h2><span style="font-size: 16px;"><strong><font face="Tahoma ">[Router Configuration]</font></strong></span></h2> <p style="margin-left: 40px;"><font face="Tahoma " size="2">version 12.4<br /> service timestamps debug datetime msec<br /> service timestamps log datetime msec<br /> no service password-encryption<br /> !<br /> hostname CPE<br /> !<br /> boot-start-marker<br /> boot-end-marker<br /> !<br /> ip cef<br /> no ip domain lookup<br /> !<br /> username acl password 0 acl<br /> !<br /> interface FastEthernet0/0<br /> no ip address<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet0/1<br /> no ip address<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet1/0<br /> no ip address<br /> load-interval 30<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet2/0<br /> no ip address<br /> load-interval 30<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet3/0<br /> no ip address<br /> load-interval 30<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet5/0<br /> ip address 200.200.1.1 255.255.255.0<br /> <font color="#ff0000"> ip access-group 101 in</font><br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet6/0<br /> no ip address<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> no ip http server<br /> no ip http secure-server<br /> ip forward-protocol nd<br /> !<br /> <font color="#ff0000">access-list 101 permit tcp any any eq telnet<br /> access-list 101 dynamic access permit ip any any log time-range work-hour</font><br /> !<br /> control-plane<br /> !<br /> no alias exec r<br /> no alias exec s<br /> !<br /> line con 0<br /> exec-timeout 0 0<br /> privilege level 15<br /> logging synchronous<br /> line aux 0<br /> exec-timeout 0 0<br /> privilege level 15<br /> line vty 0 4<br /> privilege level 15<br /> <font color="#ff0000"> login local</font><br /> <font color="#ff0000"> autocommand access-enable timeout 1 </font><br /> !<br /> <font color="#ff0000">time-range work-hour<br /> periodic daily 7:30 to 8:00</font><br /> !<br /> end<br /> </font><br /> </p> <h2><strong><span style="font-size: 16px;"><font face="Tahoma ">[ Verifying output]</font></span></strong></h2> <p><font face="Tahoma " size="2" style="background-color: rgb(255, 255, 153);">** Simulate Cisco 3660 as PC in this sample configuration</font> </p> <p><font size="2"><strong><font face="Tahoma ">1. Tried ping to IP on Ethernet interface of CPE router</font>, before authorized access by Telnet login.</strong></font> </p> <p style="margin-left: 40px;"><font face="Tahoma " size="2">pc1#<font color="#0000ff"><strong> ping 200.200.1.1</strong></font></font><br /> <br /> <font face="Tahoma " size="2">Type escape sequence to abort.</font><br /> <font face="Tahoma " size="2">Sending 5, 100-byte ICMP Echos to 200.200.1.1, timeout is 2 seconds:</font><br /> <font face="Tahoma " size="2">U.U.U</font><br /> <font face="Tahoma " size="2">Success rate is 0 percent (0/5)</font><br /> <font face="Tahoma " size="2">pc1#</font></p> <p><font size="2"><strong><font face="Tahoma ">2. Tried to telnet into CPE. It got failed, however it triggered open a ACL for next traffic from PC1</font></strong></font></p> <p style="margin-left: 40px;"><font face="Tahoma " size="2">CPE#<strong><font color="#0000ff">sh clock</font></strong><br /> 07:59:31.447 UTC Fri Mar 1 2002<br /> CPE#<br /> <br /> CPE#<strong><font color="#0000ff">sh ip access-lists 101</font></strong><br /> Extended IP access list 101<br /> 10 permit tcp any any eq telnet (339 matches)<br /> 20 Dynamic access permit ip any any log time-range work-hour (active)<br /> CPE#<br /> <br /> <br /> pc1#<strong><font color="#0000ff">telnet 200.200.1.1</font></strong></font><br /> <font face="Tahoma " size="2">Trying 200.200.1.1 ... Open</font><br /> <br /> <br /> <font face="Tahoma " size="2">User Access Verification</font><br /> <br /> <font face="Tahoma " size="2">Username: acl</font><br /> <font face="Tahoma " size="2">Password:</font><br /> <font face="Tahoma " size="2">[Connection to 200.200.1.1 closed by foreign host]</font><br /> <font face="Tahoma " size="2">pc1#<br /> <br /> CPE#<strong><font color="#0000ff">sh ip access-lists 101</font></strong><br /> Extended IP access list 101<br /> 10 permit tcp any any eq telnet (396 matches)<br /> 20 Dynamic access permit ip any any log time-range work-hour <span style="background-color: rgb(255, 255, 153);">(active)</span><br /> permit ip any any log time-range work-hour (active) (5 matches) (time left 56)<br /> CPE#<br /> </font><br /> <br /> </p> <p><strong><font face="Tahoma " size="2">Now, CPE allow a traffic from PC1</font></strong> </p> <p style="margin-left: 40px;"><font face="Tahoma " size="2">pc1#<font color="#0000ff"><strong>ping 200.200.1.1</strong></font></font><br /> <br /> <font face="Tahoma " size="2">Type escape sequence to abort.</font><br /> <font face="Tahoma " size="2">Sending 5, 100-byte ICMP Echos to 200.200.1.1, timeout is 2 seconds:</font><br /> <font face="Tahoma " size="2">!!!!!</font><br /> <font face="Tahoma " size="2">Success rate is 100 percent (5/5), round-trip min/avg/max = 4/25/76 ms</font><br /> <font face="Tahoma " size="2">pc1#</font><br /> <font face="Tahoma " size="2">3. If traffic is idle over 120 seconds, ACL will be closed due to configuration specified 120 sec idle allowance time.</font><br /> <font face="Tahoma " size="2">pc1#<strong><font color="#0000ff">ping 200.200.1.1</font></strong></font><br /> <br /> <font face="Tahoma " size="2">Type escape sequence to abort.</font><br /> <font face="Tahoma " size="2">Sending 5, 100-byte ICMP Echos to 200.200.1.1, timeout is 2 seconds:</font><br /> <font face="Tahoma " size="2">U.U.U</font><br /> <font face="Tahoma " size="2">Success rate is 0 percent (0/5)</font><br /> <font face="Tahoma " size="2">pc1#</font><br /> <font face="Tahoma " size="2">CPE#<strong><font color="#0000ff">sh clock</font></strong><br /> 08:01:41.283 UTC Fri Mar 1 2002<br /> CPE#<font color="#0000ff"><strong>sh ip access-lists 101</strong></font><br /> Extended IP access list 101<br /> 10 permit tcp any any eq telnet (396 matches)<br /> 20 Dynamic access permit ip any any log time-range work-hour (inactive)<br /> CPE#</font></p> <p><font face="Tahoma " size="2"><br /> This daynamic access-list is not commonly used, but it is good to know. Below scenario indicated once a client get authrized by telnet login then, the client can access boyond the port(Ethernet in this case) </font></p> <h2><span style="font-size: 16px;"><strong><font face="Tahoma ">[Router Configuration]</font></strong></span></h2> <p style="margin-left: 40px;"><font face="Tahoma " size="2">version 12.4<br /> service timestamps debug datetime msec<br /> service timestamps log datetime msec<br /> no service password-encryption<br /> !<br /> hostname CPE<br /> !<br /> boot-start-marker<br /> boot-end-marker<br /> !<br /> ip cef<br /> no ip domain lookup<br /> !<br /> username acl password 0 acl<br /> !<br /> interface FastEthernet0/0<br /> no ip address<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet0/1<br /> no ip address<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet1/0<br /> no ip address<br /> load-interval 30<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet2/0<br /> no ip address<br /> load-interval 30<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet3/0<br /> no ip address<br /> load-interval 30<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet5/0<br /> ip address 200.200.1.1 255.255.255.0<br /> <font color="#ff0000"> ip access-group 101 in</font><br /> duplex auto<br /> speed auto<br /> !<br /> interface FastEthernet6/0<br /> no ip address<br /> shutdown<br /> duplex auto<br /> speed auto<br /> !<br /> no ip http server<br /> no ip http secure-server<br /> ip forward-protocol nd<br /> !<br /> <font color="#ff0000">access-list 101 permit tcp any any eq telnet<br /> access-list 101 dynamic access permit ip any any log time-range work-hour</font><br /> !<br /> control-plane<br /> !<br /> no alias exec r<br /> no alias exec s<br /> !<br /> line con 0<br /> exec-timeout 0 0<br /> privilege level 15<br /> logging synchronous<br /> line aux 0<br /> exec-timeout 0 0<br /> privilege level 15<br /> line vty 0 4<br /> privilege level 15<br /> <font color="#ff0000"> login local</font><br /> <font color="#ff0000"> autocommand access-enable timeout 1 </font><br /> !<br /> <font color="#ff0000">time-range work-hour<br /> periodic daily 7:30 to 8:00</font><br /> !<br /> end<br /> </font><br /> </p> <h2><strong><span style="font-size: 16px;"><font face="Tahoma ">[ Verifying output]</font></span></strong></h2> <p><font face="Tahoma " size="2" style="background-color: rgb(255, 255, 153);">** Simulate Cisco 3660 as PC in this sample configuration</font> </p> <p><font size="2"><strong><font face="Tahoma ">1. Tried ping to IP on Ethernet interface of CPE router</font>, before authorized access by Telnet login.</strong></font> </p> <p style="margin-left: 40px;"><font face="Tahoma " size="2">pc1#<font color="#0000ff"><strong> ping 200.200.1.1</strong></font></font><br /> <br /> <font face="Tahoma " size="2">Type escape sequence to abort.</font><br /> <font face="Tahoma " size="2">Sending 5, 100-byte ICMP Echos to 200.200.1.1, timeout is 2 seconds:</font><br /> <font face="Tahoma " size="2">U.U.U</font><br /> <font face="Tahoma " size="2">Success rate is 0 percent (0/5)</font><br /> <font face="Tahoma " size="2">pc1#</font></p> <p><font size="2"><strong><font face="Tahoma ">2. Tried to telnet into CPE. It got failed, however it triggered open a ACL for next traffic from PC1</font></strong></font></p> <p style="margin-left: 40px;"><font face="Tahoma " size="2">CPE#<strong><font color="#0000ff">sh clock</font></strong><br /> 07:59:31.447 UTC Fri Mar 1 2002<br /> CPE#<br /> <br /> CPE#<strong><font color="#0000ff">sh ip access-lists 101</font></strong><br /> Extended IP access list 101<br /> 10 permit tcp any any eq telnet (339 matches)<br /> 20 Dynamic access permit ip any any log time-range work-hour (active)<br /> CPE#<br /> <br /> <br /> pc1#<strong><font color="#0000ff">telnet 200.200.1.1</font></strong></font><br /> <font face="Tahoma " size="2">Trying 200.200.1.1 ... Open</font><br /> <br /> <br /> <font face="Tahoma " size="2">User Access Verification</font><br /> <br /> <font face="Tahoma " size="2">Username: acl</font><br /> <font face="Tahoma " size="2">Password:</font><br /> <font face="Tahoma " size="2">[Connection to 200.200.1.1 closed by foreign host]</font><br /> <font face="Tahoma " size="2">pc1#<br /> <br /> CPE#<strong><font color="#0000ff">sh ip access-lists 101</font></strong><br /> Extended IP access list 101<br /> 10 permit tcp any any eq telnet (396 matches)<br /> 20 Dynamic access permit ip any any log time-range work-hour <span style="background-color: rgb(255, 255, 153);">(active)</span><br /> permit ip any any log time-range work-hour (active) (5 matches) (time left 56)<br /> CPE#<br /> </font><br /> <br /> </p> <p><strong><font face="Tahoma " size="2">Now, CPE allow a traffic from PC1</font></strong> </p> <p style="margin-left: 40px;"><font face="Tahoma " size="2">pc1#<font color="#0000ff"><strong>ping 200.200.1.1</strong></font></font><br /> <br /> <font face="Tahoma " size="2">Type escape sequence to abort.</font><br /> <font face="Tahoma " size="2">Sending 5, 100-byte ICMP Echos to 200.200.1.1, timeout is 2 seconds:</font><br /> <font face="Tahoma " size="2">!!!!!</font><br /> <font face="Tahoma " size="2">Success rate is 100 percent (5/5), round-trip min/avg/max = 4/25/76 ms</font><br /> <font face="Tahoma " size="2">pc1#</font><br /> <font face="Tahoma " size="2">3. If traffic is idle over 120 seconds, ACL will be closed due to configuration specified 120 sec idle allowance time.</font><br /> <font face="Tahoma " size="2">pc1#<strong><font color="#0000ff">ping 200.200.1.1</font></strong></font><br /> <br /> <font face="Tahoma " size="2">Type escape sequence to abort.</font><br /> <font face="Tahoma " size="2">Sending 5, 100-byte ICMP Echos to 200.200.1.1, timeout is 2 seconds:</font><br /> <font face="Tahoma " size="2">U.U.U</font><br /> <font face="Tahoma " size="2">Success rate is 0 percent (0/5)</font><br /> <font face="Tahoma " size="2">pc1#</font><br /> <font face="Tahoma " size="2">CPE#<strong><font color="#0000ff">sh clock</font></strong><br /> 08:01:41.283 UTC Fri Mar 1 2002<br /> CPE#<font color="#0000ff"><strong>sh ip access-lists 101</strong></font><br /> Extended IP access list 101<br /> 10 permit tcp any any eq telnet (396 matches)<br /> 20 Dynamic access permit ip any any log time-range work-hour (inactive)<br /> CPE#</font></p> TACACS Plus installation 2009-05-06T13:31:47Z 2009-05-06T13:31:47Z http://cisconet.com/security/security-general/149-tacacs-plus-installation.html CiscoNET contactus@wirethink.com <p><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">To describe how to install TACACS application on step by step. Specifically we are install tac-plus in this article.</font><font size="2" face="Tahoma "> </font></span><font size="2" face="Tahoma "><br /> </font></p> <div style="margin-left: 80px;"><span style="color: rgb(0, 0, 0);"><strong><font size="2" face="Tahoma ">1. </font><font size="2" face="Tahoma ">Download TACACS+</font><br /> <font size="2" face="Tahoma "> 2. Install Tac-plus application<br /> </font></strong><strong><font size="2" face="Tahoma ">3. Configure TACACS.conf</font></strong><br /> <strong><font size="2" face="Tahoma "> 4. configure Network device(Cisco router)</font></strong></span><strong><font size="2" face="Tahoma "><br /> <br /> </font></strong></div> <p><span style="color: rgb(0, 0, 0);"><strong><span style="font-size: 14px;"><font face="Tahoma "><br /> 1. Download TACACS+</font></span></strong></span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">Get lastest tacacs+ binary rpm file from http://www.gazi.edu.tr/tacacs.</font></p> <p><font size="2" face="Tahoma "><br /> </font></p> <p><span style="color: rgb(0, 0, 0);"> <p><span style="font-size: 14px;"><strong><font face="Tahoma ">2. Install Tac-plus application</font></strong></span></p> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">Login your machine with root account to avoid any interruption while installing TACACS+ </font></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">and type</font></span><font size="2" face="Tahoma "><br /> </font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "> <font color="#0000ff">rpm -ivh tac_plus.xxx.i386.rpm</font></font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "><br /> <span style="color: rgb(0, 0, 0);">By this command tacacs+ must install your system and to verify your installation type below</span><br /> </font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "> <font color="#0000ff">rpm -q tac_plus</font></font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "><br /> </font><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">If you see below output, you are good to go.</font></span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "> <font color="#0000ff">tac_plus-F4.0.3.alpha-7</font></font></p> <p><font size="2" face="Tahoma "><br /> </font></p> <p><span style="color: rgb(0, 0, 0);"> <p><strong><span style="font-size: 14px;"><font face="Tahoma ">3. </font><font face="Tahoma ">Configure TACACS.conf</font></span></strong></p> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma "># Created by Devrim SERAL(devrim@gazi.edu.tr)<br /> # It's very simple configuration file<br /> # Please read user_guide and tacacs+ FAQ to more information to do more<br /> # complex tacacs+ configuration files.</font></span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "><br /> <font color="#0000ff">key = CISCONET</font><br /> </font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "># Use /etc/passwd file to do authentication<br /> <br /> default authentication = file /etc/passwd.log<br /> <br /> # Now tacacs+ also use default PAM authentication<br /> #default authentication = pam pap<br /> <br /> #If you like to use DB authentication<br /> #default authentication = db &quot;db_type://db_user:db_pass@db_hostname/db_name/db_table?name_field&amp;pass_field<br /> # db_type: mysql or null<br /> # db_user: Database connect username<br /> # db_pass: Database connection password<br /> # db_hostname : Database hostname<br /> # db_name : Database name<br /> # db_table : authentication table name<br /> # name_field and pass_field: Username and password field name at the db_table<br /> <br /> # Accounting records log file<br /> <br /> <font color="#0000ff">accounting file = /var/log/tacacs/tacacs.log</font><br /> <br /> # Would you like to store accounting records in database..<br /> # db_accounting = &quot;db_type://db_user:db_pass@db_hostname/db_name/db_table&quot;<br /> # Same as above..<br /> <br /> # Permit all authorization request<br /> <br /> default authorization = permit<br /> <br /> # Profile for enable access, username is $enab15$. Used to be $enable$<br /> <br /> user = $enab15$ {<br /> login = cleartext Pr1celess<br /> }<br /> <br /> # Profiles for user accounts<br /> <br /> </font><font size="2" face="Tahoma " color="#0000ff">user = Superman {<br /> login = cleartext SuperPOP40</font><font size="2" face="Tahoma "><br /> }<br /> <br /> </font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma ">In this case, username; Superman and password; SuperPOP40 </font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "> </font></p> <h5><font face="Tahoma ">4. </font><font face="Tahoma ">configure Network device(Cisco router)</font></h5> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">aaa new-model<br /> aaa authentication login default tacacs+ line enable none<br /> aaa authentication login defaut tacacs+ line enable none</font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">tacacs-server host 65.222.247.53<br /> tacacs-server host 65.222.247.37<br /> tacacs-server key CISCONET</font></p> <p style="margin-left: 40px;">&nbsp;</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Or&nbsp; another sample (if tacacs login is failed, local database will be used) </span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">aaa new-model<br /> username CiscoNET password xxx-CiscoNet<br /> aaa </font><font size="2" face="Tahoma " color="#0000ff">authentication login default enable</font><font size="2" face="Tahoma " color="#0000ff"><br /> aaa authentication login access1 local<br /> aaa authentication login access2 tacacs+ local</font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">tacacs-server host 65.222.247.53<br /> tacacs-server host 65.222.247.37<br /> tacacs-server key CISCONET<br /> !<br /> !</font><font size="2" face="Tahoma " color="#0000ff"><br /> Line console 0<br /> &nbsp;&nbsp; login authentication access 2<br /> !<br /> !<br /> Line vty 0 4<br /> &nbsp;&nbsp; password yyy-CiscoNET<br /> &nbsp;&nbsp; login<br /> <br /> </font></p> <p><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">To describe how to install TACACS application on step by step. Specifically we are install tac-plus in this article.</font><font size="2" face="Tahoma "> </font></span><font size="2" face="Tahoma "><br /> </font></p> <div style="margin-left: 80px;"><span style="color: rgb(0, 0, 0);"><strong><font size="2" face="Tahoma ">1. </font><font size="2" face="Tahoma ">Download TACACS+</font><br /> <font size="2" face="Tahoma "> 2. Install Tac-plus application<br /> </font></strong><strong><font size="2" face="Tahoma ">3. Configure TACACS.conf</font></strong><br /> <strong><font size="2" face="Tahoma "> 4. configure Network device(Cisco router)</font></strong></span><strong><font size="2" face="Tahoma "><br /> <br /> </font></strong></div> <p><span style="color: rgb(0, 0, 0);"><strong><span style="font-size: 14px;"><font face="Tahoma "><br /> 1. Download TACACS+</font></span></strong></span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">Get lastest tacacs+ binary rpm file from http://www.gazi.edu.tr/tacacs.</font></p> <p><font size="2" face="Tahoma "><br /> </font></p> <p><span style="color: rgb(0, 0, 0);"> <p><span style="font-size: 14px;"><strong><font face="Tahoma ">2. Install Tac-plus application</font></strong></span></p> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">Login your machine with root account to avoid any interruption while installing TACACS+ </font></span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">and type</font></span><font size="2" face="Tahoma "><br /> </font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "> <font color="#0000ff">rpm -ivh tac_plus.xxx.i386.rpm</font></font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "><br /> <span style="color: rgb(0, 0, 0);">By this command tacacs+ must install your system and to verify your installation type below</span><br /> </font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "> <font color="#0000ff">rpm -q tac_plus</font></font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "><br /> </font><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma ">If you see below output, you are good to go.</font></span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "> <font color="#0000ff">tac_plus-F4.0.3.alpha-7</font></font></p> <p><font size="2" face="Tahoma "><br /> </font></p> <p><span style="color: rgb(0, 0, 0);"> <p><strong><span style="font-size: 14px;"><font face="Tahoma ">3. </font><font face="Tahoma ">Configure TACACS.conf</font></span></strong></p> </span></p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);"><font size="2" face="Tahoma "># Created by Devrim SERAL(devrim@gazi.edu.tr)<br /> # It's very simple configuration file<br /> # Please read user_guide and tacacs+ FAQ to more information to do more<br /> # complex tacacs+ configuration files.</font></span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma "><br /> <font color="#0000ff">key = CISCONET</font><br /> </font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "># Use /etc/passwd file to do authentication<br /> <br /> default authentication = file /etc/passwd.log<br /> <br /> # Now tacacs+ also use default PAM authentication<br /> #default authentication = pam pap<br /> <br /> #If you like to use DB authentication<br /> #default authentication = db &quot;db_type://db_user:db_pass@db_hostname/db_name/db_table?name_field&amp;pass_field<br /> # db_type: mysql or null<br /> # db_user: Database connect username<br /> # db_pass: Database connection password<br /> # db_hostname : Database hostname<br /> # db_name : Database name<br /> # db_table : authentication table name<br /> # name_field and pass_field: Username and password field name at the db_table<br /> <br /> # Accounting records log file<br /> <br /> <font color="#0000ff">accounting file = /var/log/tacacs/tacacs.log</font><br /> <br /> # Would you like to store accounting records in database..<br /> # db_accounting = &quot;db_type://db_user:db_pass@db_hostname/db_name/db_table&quot;<br /> # Same as above..<br /> <br /> # Permit all authorization request<br /> <br /> default authorization = permit<br /> <br /> # Profile for enable access, username is $enab15$. Used to be $enable$<br /> <br /> user = $enab15$ {<br /> login = cleartext Pr1celess<br /> }<br /> <br /> # Profiles for user accounts<br /> <br /> </font><font size="2" face="Tahoma " color="#0000ff">user = Superman {<br /> login = cleartext SuperPOP40</font><font size="2" face="Tahoma "><br /> }<br /> <br /> </font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma ">In this case, username; Superman and password; SuperPOP40 </font></p> <p style="margin-left: 40px;"><font size="2" face="Tahoma "> </font></p> <h5><font face="Tahoma ">4. </font><font face="Tahoma ">configure Network device(Cisco router)</font></h5> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">aaa new-model<br /> aaa authentication login default tacacs+ line enable none<br /> aaa authentication login defaut tacacs+ line enable none</font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">tacacs-server host 65.222.247.53<br /> tacacs-server host 65.222.247.37<br /> tacacs-server key CISCONET</font></p> <p style="margin-left: 40px;">&nbsp;</p> <p style="margin-left: 40px;"><span style="color: rgb(0, 0, 0);">Or&nbsp; another sample (if tacacs login is failed, local database will be used) </span></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">aaa new-model<br /> username CiscoNET password xxx-CiscoNet<br /> aaa </font><font size="2" face="Tahoma " color="#0000ff">authentication login default enable</font><font size="2" face="Tahoma " color="#0000ff"><br /> aaa authentication login access1 local<br /> aaa authentication login access2 tacacs+ local</font></p> <p style="margin-left: 80px;"><font size="2" face="Tahoma " color="#0000ff">tacacs-server host 65.222.247.53<br /> tacacs-server host 65.222.247.37<br /> tacacs-server key CISCONET<br /> !<br /> !</font><font size="2" face="Tahoma " color="#0000ff"><br /> Line console 0<br /> &nbsp;&nbsp; login authentication access 2<br /> !<br /> !<br /> Line vty 0 4<br /> &nbsp;&nbsp; password yyy-CiscoNET<br /> &nbsp;&nbsp; login<br /> <br /> </font></p> Modifying Huge ACL & prefix- list ? 2009-05-06T13:26:25Z 2009-05-06T13:26:25Z http://cisconet.com/security/security-general/148-modifying-huge-acl-a-prefix-list-.html CiscoNET contactus@wirethink.com <p><font size="2"><span style="font-family: Tahoma;">Probably, there are multiple way to achieve your goal. </span></font><br style="font-family: Tahoma;" /> <font size="2"> <span style="font-family: Tahoma;">Here is one of simple way that I knew and used in my work. (using vi editor)</span></font></p> <p><font size="2"><span style="font-family: Tahoma;"> <br style="font-family: Tahoma;" /> </span></font></p> <p><font size="2" face="Tahoma "><span style="font-family: Tahoma;">For example, you have IP blocks below. Current prefix list name = Hello</span><br style="font-family: Tahoma;" /> <br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">-- Raw list --</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">1.1.1.1/24</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">2.2.2.2/23</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">3.3.3.3/22</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">4.4.4.4/21</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">5.5.5.5/20</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">6.6.6.6/19</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font></div> <p><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font><span style="font-size: 14px;"><strong><font face="Tahoma "><span style="font-family: Tahoma;">1.</span></font></strong></span><font size="2" face="Tahoma "><span style="font-family: Tahoma;"> Create new file with vi editor = from prompt &quot;vi acl&quot; (on unix or linux)</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <strong><span style="font-size: 14px;"><font face="Tahoma "><span style="font-family: Tahoma;">2.</span></font></span></strong><font size="2" face="Tahoma "><span style="font-family: Tahoma;"> Copy and paste entire list of new IP blocks into the new file just created</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <span style="font-size: 14px;"><strong><font face="Tahoma "><span style="font-family: Tahoma;">3.</span></font></strong></span><font size="2" face="Tahoma "><span style="font-family: Tahoma;"> To add &quot;ip prefix-list Hello permit&quot; in front of raw IP blocks, follow below step</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;"><span style="color: rgb(0, 0, 255);">:%s/^/ip prefix-list Hello permit /g</span> <enter></enter></span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">(If you are not familiar with vi editor, search 'vi editor' on Internet)</span></font></div> <p><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> <span style="font-family: Tahoma;">Now, you will see the below</span></font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 1.1.1.1/24</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 2.2.2.2/23</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 3.3.3.3/22</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 4.4.4.4/21</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 5.5.5.5/20</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 6.6.6.6/19</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">: </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font></div> <p><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> <strong><span style="font-size: 14px;"><span style="font-family: Tahoma;">4.</span></span></strong><span style="font-family: Tahoma;"> To add &quot;le 32&quot; or any option, follow below steps</span></font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma " style="color: rgb(0, 0, 255);"><span style="font-family: Tahoma;">:%s/\/24/\/24 le 32/g &lt;------- it will modify /24 IP block</span></font></div> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 1.1.1.1/24 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 2.2.2.2/23</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 3.3.3.3/22</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 4.4.4.4/21</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 5.5.5.5/20</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 6.6.6.6/19</span></font></div> <p><font size="2" face="Tahoma "> <br style="font-family: Tahoma;" /> <strong><span style="font-size: 14px;"><span style="font-family: Tahoma;">5.</span></span></strong><span style="font-family: Tahoma;"> Using the blow commands, complete modifying entire IP blocks.</span><br style="font-family: Tahoma;" /> <br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/32/\/32 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/30/\/30 orlonger;/g </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/29/\/29 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/28/\/28 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/27/\/27 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/26/\/26 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/25/\/25 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/24/\/24 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/23/\/23 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/22/\/22 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/21/\/21 orlonger;/g </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/20/\/20 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/19/\/19 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/18/\/18 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/17/\/17 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/16/\/16 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/15/\/15 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/14/\/14 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/13/\/13 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/12/\/12 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/11/\/11 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/10/\/10 orlonger;/g</span></font></div> <p style="margin-left: 40px;"><font size="2" face="Tahoma "> <br style="font-family: Tahoma;" /> <span style="font-family: Tahoma;">Final IP blocks look like below</span><br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 1.1.1.1/24 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 2.2.2.2/23 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 3.3.3.3/22 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 4.4.4.4/21 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 5.5.5.5/20 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 6.6.6.6/19 le 32</span></font></div> <p><br /> <font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font><font size="2" face="Tahoma "> <span style="font-family: Tahoma;">It is help only huge huge huge list of access list or prefix list. </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font><font size="2" face="Tahoma "> <span style="font-family: Tahoma;">After modifed raw IP list, add it to current access list or prefix</span></font><font size="2" face="Tahoma "><br /> </font></p> <p><font size="2"><span style="font-family: Tahoma;">Probably, there are multiple way to achieve your goal. </span></font><br style="font-family: Tahoma;" /> <font size="2"> <span style="font-family: Tahoma;">Here is one of simple way that I knew and used in my work. (using vi editor)</span></font></p> <p><font size="2"><span style="font-family: Tahoma;"> <br style="font-family: Tahoma;" /> </span></font></p> <p><font size="2" face="Tahoma "><span style="font-family: Tahoma;">For example, you have IP blocks below. Current prefix list name = Hello</span><br style="font-family: Tahoma;" /> <br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">-- Raw list --</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">1.1.1.1/24</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">2.2.2.2/23</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">3.3.3.3/22</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">4.4.4.4/21</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">5.5.5.5/20</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">6.6.6.6/19</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font></div> <p><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font><span style="font-size: 14px;"><strong><font face="Tahoma "><span style="font-family: Tahoma;">1.</span></font></strong></span><font size="2" face="Tahoma "><span style="font-family: Tahoma;"> Create new file with vi editor = from prompt &quot;vi acl&quot; (on unix or linux)</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <strong><span style="font-size: 14px;"><font face="Tahoma "><span style="font-family: Tahoma;">2.</span></font></span></strong><font size="2" face="Tahoma "><span style="font-family: Tahoma;"> Copy and paste entire list of new IP blocks into the new file just created</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <span style="font-size: 14px;"><strong><font face="Tahoma "><span style="font-family: Tahoma;">3.</span></font></strong></span><font size="2" face="Tahoma "><span style="font-family: Tahoma;"> To add &quot;ip prefix-list Hello permit&quot; in front of raw IP blocks, follow below step</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;"><span style="color: rgb(0, 0, 255);">:%s/^/ip prefix-list Hello permit /g</span> <enter></enter></span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">(If you are not familiar with vi editor, search 'vi editor' on Internet)</span></font></div> <p><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> <span style="font-family: Tahoma;">Now, you will see the below</span></font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 1.1.1.1/24</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 2.2.2.2/23</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 3.3.3.3/22</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 4.4.4.4/21</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 5.5.5.5/20</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 6.6.6.6/19</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">: </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:</span></font></div> <p><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> <strong><span style="font-size: 14px;"><span style="font-family: Tahoma;">4.</span></span></strong><span style="font-family: Tahoma;"> To add &quot;le 32&quot; or any option, follow below steps</span></font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma " style="color: rgb(0, 0, 255);"><span style="font-family: Tahoma;">:%s/\/24/\/24 le 32/g &lt;------- it will modify /24 IP block</span></font></div> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 1.1.1.1/24 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 2.2.2.2/23</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 3.3.3.3/22</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 4.4.4.4/21</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 5.5.5.5/20</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 6.6.6.6/19</span></font></div> <p><font size="2" face="Tahoma "> <br style="font-family: Tahoma;" /> <strong><span style="font-size: 14px;"><span style="font-family: Tahoma;">5.</span></span></strong><span style="font-family: Tahoma;"> Using the blow commands, complete modifying entire IP blocks.</span><br style="font-family: Tahoma;" /> <br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/32/\/32 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/30/\/30 orlonger;/g </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/29/\/29 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/28/\/28 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/27/\/27 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/26/\/26 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/25/\/25 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/24/\/24 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/23/\/23 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/22/\/22 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/21/\/21 orlonger;/g </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/20/\/20 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/19/\/19 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/18/\/18 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/17/\/17 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/16/\/16 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/15/\/15 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/14/\/14 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/13/\/13 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/12/\/12 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/11/\/11 orlonger;/g</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">:%s/\/10/\/10 orlonger;/g</span></font></div> <p style="margin-left: 40px;"><font size="2" face="Tahoma "> <br style="font-family: Tahoma;" /> <span style="font-family: Tahoma;">Final IP blocks look like below</span><br style="font-family: Tahoma;" /> </font></p> <div style="margin-left: 80px;"><font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 1.1.1.1/24 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 2.2.2.2/23 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 3.3.3.3/22 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 4.4.4.4/21 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 5.5.5.5/20 le 32</span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font> <font size="2" face="Tahoma "><span style="font-family: Tahoma;">ip prefix-list Hello permit 6.6.6.6/19 le 32</span></font></div> <p><br /> <font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font><font size="2" face="Tahoma "> <span style="font-family: Tahoma;">It is help only huge huge huge list of access list or prefix list. </span></font><font size="2" face="Tahoma "><br style="font-family: Tahoma;" /> </font><font size="2" face="Tahoma "> <span style="font-family: Tahoma;">After modifed raw IP list, add it to current access list or prefix</span></font><font size="2" face="Tahoma "><br /> </font></p> How to setup FreeRADIUS server? 2009-05-06T13:14:05Z 2009-05-06T13:14:05Z http://cisconet.com/security/radius/143-how-to-setup-freeradius-server.html CiscoNET contactus@wirethink.com <p><font size="2" face="Tahoma ">Here is a simple documentation how to setup FreeRADIUS server. </font></p> <p><font size="2" face="Tahoma ">It's written by Korean.</font></p> <p><font size="2" face="Tahoma ">http://www.ibm.com/developerworks/kr/library/l-radius/</font></p> <p><font size="2" face="Tahoma ">Here is a simple documentation how to setup FreeRADIUS server. </font></p> <p><font size="2" face="Tahoma ">It's written by Korean.</font></p> <p><font size="2" face="Tahoma ">http://www.ibm.com/developerworks/kr/library/l-radius/</font></p>