<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>xpresslearn.com &#187; Security</title>
	<atom:link href="http://www.xpresslearn.com/category/security/feed" rel="self" type="application/rss+xml" />
	<link>http://www.xpresslearn.com</link>
	<description>Solutions to your Networking and Security questions</description>
	<lastBuildDate>Wed, 30 Jun 2010 18:20:08 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Security Guides available from the DoD</title>
		<link>http://www.xpresslearn.com/security/security-guides-available-from-the-dod</link>
		<comments>http://www.xpresslearn.com/security/security-guides-available-from-the-dod#comments</comments>
		<pubDate>Wed, 12 Aug 2009 03:37:25 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Security Technical Implementation Guides]]></category>
		<category><![CDATA[STIG]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/?p=246</guid>
		<description><![CDATA[Using Department of Defense security material that is freely available to anyone in order to secure your networks and host platforms]]></description>
			<content:encoded><![CDATA[<p>In corporate environments, I.T. professionals are constantly trying to adhere to the latest guidelines that apply to the line of business they are a part of.  Most organizations are guided by one or more of the following:  HIPPA (Healthcare), PCI (Credit Card Industry), and SOX among others.  These guidelines definitely overlap with each other in areas.  If your privileged enough to have to satisfy more than one of these governing bodies, many times an issue addressed in one will also address the same issue in another.  The overlap exists largely because all of these guidelines are based on &#8216;best practices&#8217;.  When you have a list of these best practices available to audit against, it allows you to score yourself before the formal audits happen that are required by the various governing bodies.  It is also wise to be aware of the best practices before implementing a new system, in order to prevent having to go back and revisit after the implementation.</p>
<p>The good news is there are resources available to anyone and are provided by Defense Information Systems Agency (DISA) which is a government agency that is part of the Department of Defense (DoD). These guides are separated into two different types: One set is called Security Technical Informational Guides (STIG) and the other is called Security Checklists.  These guides are developed to provide guidance for people who build and manage DoD networks.  They are also used in audits performed within Department of Defense networks.</p>
<p>None of the DoD offered materials has anything to do with HIPPA, PCI, SOX, etc. on the surface, but the thing they do have in common is they are focused on security best practices.  In my experience dealing with HIPPA, PCI, SOX, and DoD networks, using these guides as a reference to secure a network or platform will cover 90+% of anything that would come up in a HIPPA, PCI, or SOX audit.</p>
<p><span id="more-246"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>These guides are available publicly to anyone and are considered unclassified material in their currently offered form.</p>
<p>Use the following link to browse the security checklists, find one that addresses your area of interest and download.  All unpacked files are in .pdf format.</p>
<p><a href="http://iase.disa.mil/stigs/checklist/index.html">http://iase.disa.mil/stigs/checklist/index.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/security/security-guides-available-from-the-dod/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Secure IOS</title>
		<link>http://www.xpresslearn.com/security/secure-ios</link>
		<comments>http://www.xpresslearn.com/security/secure-ios#comments</comments>
		<pubDate>Thu, 29 May 2008 04:18:31 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[harden IOS]]></category>
		<category><![CDATA[secure IOS]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/?p=116</guid>
		<description><![CDATA[This article describes how to secure a Cisco device before putting into production.]]></description>
			<content:encoded><![CDATA[<p>In general, unsecure platforms are largely due to configuration mistakes.  Leaving default configuration items can also be considered mistakes if they leave the platform insecure.  Cisco routers do a pretty good job  with the defaults, such as not allowing you to telnet to a router until passwords are set or not being allowed to enter enable mode from a telnet session with missing enable passwords.  However, configuring these basic items are no where near where you should leave the configuration.</p>
<p>Cisco even provides a utility in most newer versions of the IOS to help secure the platform.  This feature is called auto secure and was introduced in version 12.3(1).  The auto secure utility goes a long way in helping the administrator configure a secure IOS device.  This article will contain many of the things the auto secure utility will implement and more, along with hopefully explaining what each command is accomplishing.</p>
<p><span id="more-116"></span></p>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The configuration items are grouped into categories, to better separate the purpose of each.</p>
<h4>Securing Access to the Router</h4>
<pre>!
! Do not leave any unencrypted passwords in the IOS configuration
!
<strong>service password-encryption</strong>
!
! Configure a secret password which takes the place on the enable pw
! Remove the enable pw completely after secret is configured
!
<strong>enable secret</strong> ^Pr3tty53cr3tpa55w0rd!
<strong>no enable password</strong>
!
! If no external authentication server is being used then configure
! local username/passwords in the configuration.  Don't just use
! vty or secret password for telnet access.  In this example,
! configure a user called admin with level 15 access and associated secret
! password which is stored in the configuration as a type 5, which currently
! can't be reversed (as apposed to type 7 passwords that can be un-encrypted)
!
<strong>user</strong> admin <strong>privilege</strong> 15 <strong>secret</strong> ^n0th3r53cr3tpa55w0rd!
!
! Enable AAA on the device which allows aaa commands to be configured
!
<strong>aaa new-model</strong>
!
! Create an authentication list named Admins that authenticates against
! locally configured users
!
<strong>aaa authentication login</strong> Admins <strong>local</strong>
!
! Tell the router to consider the priviledge level configured for each
! locally defined user
!
<strong>aaa authorization exec default local</strong>
!
! For console logins, use the authentication list called Admins
!
<strong>line con 0</strong>
<strong>login authentication</strong> Admins
!
! For telnet/ssh logins, use the authentication list called Admins
!
<strong>line vty</strong> 0 4
<strong>login authentication</strong> Admins</pre>
<h4>Disable unnecessary services on the device</h4>
<pre>!
! Disable the bootp server
!<strong>
no ip bootp server
</strong>!
! Disable the http server
!<strong>
</strong><strong>no ip http server
</strong>!
! Disable the finger server
!
<strong>no ip finger
no service finger
</strong>!
! <span class="content">Disable Packet Assembler/Disassembler</span> for X25
!<strong>
</strong><strong>no service pad
</strong>!
! Disable echo discard daytime chargen
!<strong>
no service udp-small-servers
no service tcp-small-servers
</strong></pre>
<p style="text-align: center;"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<h4>Other</h4>
<pre>!
! Use the real date and time on all logging and debugging output
! as apposed to the device's uptime
!<strong>
</strong><strong>service timestamps debug datetime msec localtime show-timezone
service timestamps log datetime msec localtime show-timezone
</strong>!
! Set logging to the internal buffer and make it large enough to hold
! log entries without being lost due to wrapping
! because of the small default buffer size
!
<strong>logging buffered</strong> 16384
!
! Set local timezone and DST if observed
!
<strong>clock timezone</strong> CST -6
<strong>clock summer-time</strong> CDT recurring
!
! Just about all company legal departments want this used
! This will display when the device is accessed (before authenticating)
!
<strong>banner login</strong> ^C
Authorized Access only
  This system is the property of Xpresslearn.
  UNAUTHORIZED ACCESS TO THIS DEVICE IS PROHIBITED.
  You must have explicit permission to access this
  device. All activities performed on this device
  are logged. Any violations of access policy will result
  in disciplinary action.^C
!
! Don't try to obtain a configuration via tftp at device boot
!
!
<strong>no service config</strong></pre>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/security/secure-ios/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Dynamips in an unsecured network</title>
		<link>http://www.xpresslearn.com/security/dynamips-in-an-unsecured-network</link>
		<comments>http://www.xpresslearn.com/security/dynamips-in-an-unsecured-network#comments</comments>
		<pubDate>Sat, 16 Feb 2008 04:49:16 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Dynagen]]></category>
		<category><![CDATA[Dynamips real network]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/cisco/security/dynamips-in-an-unsecured-network</guid>
		<description><![CDATA[Dynamips is a very innovative and widely successful project geared toward the network professional for use as a highly effective training platform.  This hardware emulation software should also have you taking another look at the security on your network.]]></description>
			<content:encoded><![CDATA[<p>Do you have things in the networks your responsible for that needs to be made more secure? The answer to that question is obvious, but tends to go without much priority. You see, no matter what it is, most of the time fixing these items introduces change. The old saying comes in to play here: &#8220;If it isn&#8217;t broke, don&#8217;t fix it!&#8221;. Many times the question comes back from your boss or some change approval committee &#8211; Is this change really necessary and what will I gain from it? Many times an answer stating &#8216;a more secure network&#8217;, is not enough to get approval for doing the needed work.</p>
<p>Let&#8217;s look at this another way: What kind of damage could someone do to your network if all they were armed with was a standard pc and access to the internet. The answer is obvious, however let&#8217;s get more specific. What if your network contained an unsecured switch port, a routing protocol running with no type of authentication, or what about a gateway redundancy protocol (HSRP, VRRP, etc.) that was unsecured? How about a lan without a proper spanning tree configuration? Well, the answer should still be obvious, there are a gazillion sites with utilities that run on a PC with the capability of interacting/disrupting a network with the previously stated issues. With all of that said, let&#8217;s ask ourselves a different question:</p>
<p><span id="more-75"></span></p>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>How much easier (than the previous scenarios) would it be to damage my network if someone walked into the office with a Cisco router under their arm and was able to sit down and plug it into the network? Again, without wanting to sound like a broken record, the answer should be jumping out of the screen at you &#8211; but maybe at a little more alarming rate than before. How about a little demonstration? I am about to show you in less than 10 easy steps how that Cisco router can be carried through the door and plugged into the network. Before you ask, no magic will be taught here, that will be left to the experts. Let&#8217;s get started:</p>
<ol>
<li>Download Dynagen from <a href="http://dynagen.org" target="_blank">http://dynagen.org/</a> and install</li>
<li>From the start button (Windows) , In the newly created Dynagen folder, click on Network Device List</li>
<li>From the generated list, Pick out the installed network adapter that connects your computer to the Local Area Network. Once found, copy the appropriate device string to the clipboard, beginning with NIO_ and select all the way out to the end of the line before copying.</li>
<li>Download <a href="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynagensingle3640nm16.zip" target="_blank" title="Dynagen configuration file using a single 3640 Route4r and NM-16">this file</a> and unzip it into the \Program Files\Dynagen\sample_labs folder. Open the sw1.net file in a text editor and do a search for the string NIO. Once found, select and replace the entire existing string in the file beginning with NIO by pasting your computers specific string from the clipboard. Save this file and exit the editor.</li>
<li>Download from Cisco&#8217;s website the IOS file named c3640-js-mz.124-18.bin . The simplest way to do this is to login to the Cisco site with your CCO ID (required), go to the download area and type in this file name in the Software Search box. Once downloaded, browse to the Dynamips installation directory and move this file into the sample_labs\XpressLearn\ios folder</li>
<li>Fire up the Dynamips Server by clicking on Start &#8211;&gt; Dynagen &#8211;&gt; Dynamips Server (We are getting close, feel the anticipation?).</li>
<li>Go back to the folder containing the sw1.net configuration file and right click on the file &#8211;&gt; Open with &#8211;&gt; dg-local</li>
<li>In mere moments, a new window should appear and you should see a greater than prompt (=&gt;) below the words &#8216;Dynagen management console for Dynamips&#8217;. At the prompt, type start SW1 and when returned back to the prompt, type telnet SW1.</li>
<li>A telnet window should appear and within a few seconds wallah! A Cisco router is booting inside the telnet window.</li>
</ol>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>Now, in less than 10 easy steps, you have a Cisco router that is <strong>bridged</strong> to a network that the PC your sitting in front of is connected to. Again, you have a <strong>bridged</strong> connection between the &#8216;virtual&#8217; Cisco router and the network which the hosting pc is connected to. What does this mean you ask? For all practical purposes, there is a Cisco router (which is completely under your control) plugged directly into the network your PC is connected to. The virtual router is not using the hosting PC to hide behind, there is no natting, routing, etc. going on to get this router communicating to the live network. Dynamips uses a shim that sits between the network adapter in your PC and the operating system. This same shim is what is commonly used by sniffer programs to provide full viability to all traffic on the network. Why am I making such a fuss about this? <strong>There is a layer2 connection between the network switch in a wiring closet somewhere and your virtual Cisco router</strong>.</p>
<p>Some may ask, well what can I do with this after all the trouble of setting it up? The answer: just about anything you could if it were a real Cisco router connected to the network with direct console connection to it. Let me show you something &#8216;real&#8217;, but before I do, I must stress no networks were harmed in the making of this article. This was a highly trained individual performing a precise exercise to demonstrate the realities of what is described in this article. Ok, with no further jabbering:</p>
<pre>SW1#sh cdp nei
Capability Codes: R - Router, T - Trans Bridge, B - Source Route Bridge
                  S - Switch, H - Host, I - IGMP, r - Repeater
Device ID        Local Intrfce     Holdtme    Capability  Platform  Port ID

BNADC-SW-01.xxx.net

                 Fas 1/0            140         T S       WS-C3548- Fas 0/45</pre>
<p>Hmmm, this virtual Cisco router is swapping CDP information with an access switch. That&#8217;s pretty interesting&#8230;</p>
<p><!--more--></p>
<p>Just by looking at the IP address of the PC running Dynamips you already know the subnet allocation for the vlan your virtual switch is connected to. This means you can try and pick out a static IP on the same subnet that is not used by anything else or, let&#8217;s try this instead of guessing:</p>
<pre>SW1(config)#interface Vlan1
SW1(config-if)#ip address dhcp
SW1(config-if)#end
SW1#
*Mar  1 00:04:50.611: %SYS-5-CONFIG_I: Configured from console by console
*Mar  1 00:04:54.715: %DHCP-6-ADDRESS_ASSIGN: Interface Vlan1 assigned DHCP
address 10.32.20.238, mask 255.255.255.0, hostname SW1</pre>
<p>Yeah, that will do it&#8230; Now my virtual router/switch has a valid IP assigned on the network. Gee wiz, is there much more I can figure out on my own? Dynamips can sniff the traffic flowing through interfaces inside of Dynamips instances. Let&#8217;s turn on capturing for a couple of minutes and see what happens:</p>
<p><a href="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynagenconsolestartingcatpure.gif" title="Starting a packet capture at the Dynagen console"></a></p>
<p style="text-align: center"><a href="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynagenconsolestartingcatpure.gif" title="Starting a packet capture at the Dynagen console"><img src="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynagenconsolestartingcatpure.thumbnail.gif" alt="Starting a packet capture at the Dynagen console" /></a></p>
<p>After giving a few minutes to capture, you can stop the capture so that the file can be opened and viewed in a sniffer program. To stop the capture simply type: no capture SW1 F1/0.  Open up the sw1.dmp inside of your sniffer program, the first thing I see is some EIGRP hello packets &#8211; Let&#8217;s take a look:</p>
<p align="center"><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p style="text-align: center"><a href="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynamipscaptureeigrppacket.gif" title="EIGRP Packet displayed in Sniffer program"><img src="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynamipscaptureeigrppacket.thumbnail.gif" alt="EIGRP Packet displayed in Sniffer program" /></a></p>
<p><a href="http://www.xpresslearn.com/wp-content/uploads/2008/02/dynamipscaptureeigrppacket.gif" title="EIGRP Packet displayed in Sniffer program"></a>Here is the EIGRP packet which came from our default gateway (which of course is the router) and if we look closely, the Autonomous system number is contained inside the hello packet. So, we have discovered EIGRP running in autonomous system 20.  What do you want to be there is no authentication being used in the routing protocol process?  Let&#8217;s give this a shot:</p>
<pre>SW1(config)#router eigrp 20
SW1(config-router)#network 10.32.20.0 255.255.255.0
SW1(config-router)#no auto-summary
SW1(config-router)#end
SW1#
*Mar  1 00:16:39.179: %DUAL-5-NBRCHANGE: IP-EIGRP(0) 100: Neighbor 10.32.20.1 (Ethernet1/0)
is up: new adjacency
*Mar  1 00:16:39.871: %SYS-5-CONFIG_I: Configured from console by console
SW1#
SW1#sh ip eigrp nei
IP-EIGRP neighbors for process 20
H   Address                 Interface       Hold Uptime   SRTT   RTO  Q  Seq
                                            (sec)         (ms)       Cnt Num
0   10.32.20.1            Vl1               11 00:00:47  441  3969  0  26626
SW1#
SW1#sh ip route summary
IP routing table name is Default-IP-Routing-Table(0)
IP routing table maximum-paths is 16
Route Source    Networks    Subnets     Overhead    Memory (bytes)
connected       1           0           72          136
static          0           1           72          136
eigrp 20        77          831         65376       123488
internal        106                                 122536
Total           184         832         65520       246296
SW1#</pre>
<p>Wow, all of a sudden I have a route table with 831 more routes in it.  At this point it would be very easy to inject a host route into the EIGRP routing process.  The purpose of this would be so that a host could be impersonated by another computer.  By injecting this specific route, you can direct all traffic to an unintended destination, which allows you to capture all sorts of sensitive data.  Even by taking just a passive approach by not manipulating EIGRP at all, it has provided us a map of the entire network with the route table.</p>
<p>The possiblities are endless &#8211; maybe the virtual switch get&#8217;s configured for HSRP after you figure out what group number is being used.  Then set a priority that allows all the traffic to flow through your router before it goes back out to it&#8217;s destination.  Granted, the Dynamips instance probably wouldn&#8217;t hold up because of the low forwarding rate, but there could be some damage done before it dynamips crashed.</p>
<p><!--more--></p>
<p>Enough about layer3 stuff, what about spanning tree? We do have a switch module installed, thus we are running spanning-tree. Assuming Per-Vlan spanning tree running on the network, we could at least become the root bridge for the access vlan we are a member of.</p>
<pre>SW1#sh spanning-tree root
VLAN1
  Root ID    Priority    8273
             Address     00d0.636e.cc00
             Cost        23
             Port        41 (FastEthernet1/0)
             Hello Time   2 sec  Max Age 20 sec  Forward Delay 15 sec</pre>
<p>Wow, all we have to do it set our spanning tree priority for the vlan1 that is configured on the virtual switch to a priority less than 8273.  Once that change is made, now all the traffic on that vlan is flowing through a port on the virtual switch to get to it&#8217;s destination.  Oh, and hopefully there is no way to get connected to a port on the network that allows trunking and especially one that allows trunking with no restrictions on vlans passing through that trunk port.  My My, once a trunk port was established to our virtual switch, we could really get crazy by setting up a VTP server and manipulate the version to a really high number, then wipe out all the vlans on the entire network (assuming vtp is running on the network).</p>
<p>When this article began, the point was to sell making your network more secure.  The entention of this entire exercise was to enlighten on how much easier it becomes to be disruptive when you have (and control) a router/switch that can be plugged into a network.  Please, don&#8217;t take this article as a how-to for disrupting networks &#8211; that is certainly not the intention.</p>
<p>In another article, I will specifically describe how to configure a network to combat against every one of the examples mentioned in this article.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/security/dynamips-in-an-unsecured-network/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Host protection using private vlans</title>
		<link>http://www.xpresslearn.com/cisco/host-protection-using-private-vlans</link>
		<comments>http://www.xpresslearn.com/cisco/host-protection-using-private-vlans#comments</comments>
		<pubDate>Thu, 27 Dec 2007 02:09:10 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[DMZ]]></category>
		<category><![CDATA[isolated port]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[private vlan]]></category>
		<category><![CDATA[switchport protected]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/cisco/host-protection-using-private-vlans</guid>
		<description><![CDATA[Using private vlans to secure hosts on the same subnet from communicating with each other.  This scenerio is desirable in places such as DMZ networks, where non-related hosts need to be secured behind a common firewall interface.]]></description>
			<content:encoded><![CDATA[<p>Rarely do hosts in a DMZ network need to communicate with each other.  However, in order to properly secure hosts from each other, there needs to be some degree of isolation.  Consider this:  There are multiple http servers sitting behind a firewall in a DMZ network.  If the firewall was penetrated and access was obtained to an ftp server in the same DMZ network, the potential would be there to hack any other machine in the DMZ from the compromised server.  Because of this potential, a form of isolation has to be introduced to prevent this exposure.</p>
<p>This isolation can be accomplished through the use of private vlans.  For this example, let&#8217;s assume no one host needs to communicated with another in the DMZ network.  The only common communication needed between hosts is access to the network gateway, which in this case, would be a firewall interface.</p>
<p><span id="more-42"></span></p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<p>The solution would be to implement private vlans.  There are two vlans required, one to be used for a primary vlan and the other to be used as the isolated vlan.  They would be defined in the following matter:</p>
<pre>switch#config t
switch(config)#vlan 100
switch(config)#name Isolated_SysBackup
switch(config)#private-vlan isolated
switch(config)#vlan 101
switch(config)#name Primary_for_isolated_SysBackup
switch(config)#private-vlan primary
switch(config)#private-vlan association 100</pre>
<p>The two previous vlans are needed for this basic private vlan implementation.  One vlan is considered the primary vlan(101), its purpose is to carry traffic from promiscuous ports to isolated, community, and other promiscuous ports.  The other vlan(100) is used to carry traffic from isolated ports to promiscuous ports.  To simplify, vlan 101 carries traffic from the firewall interface to the DMZ host it is communicating with.  Vlan 100 will carry traffic from the DMZ host to the firewall interface.  Think of vlan 101 carrying traffic in one direction and vlan 100 carrying traffic in the other direction.</p>
<p>The firewall interface serving as the default gateway for all hosts in the dmz would be configured on the connected switchport with the following:</p>
<pre>Switch#config t
Switch(config)#interface gig1/0/48
Switch(config-if)#description bna-fw-01 DMZ
Switch(config-if)#switchport mode private-vlan promiscuous
Switch(config-if)#private-vlan mapping 101 100</pre>
<p>All the hosts that reside in the DMZ would have their switchports configured with the following:</p>
<p><script type="text/javascript"><!--
google_ad_client = "pub-0663307349809080";
google_ad_slot = "4388421750";
google_ad_width = 468;
google_ad_height = 60;
//--></script>
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"></script>
</p>
<pre>switch#config t
switch(config)#interface GigabitEthernet1/0/1
switch(config-if)#description bna-dns-01 Primary
switch(config-if)#switchport private-vlan host-association 101 100
switch(config-if)#switchport mode private-vlan host</pre>
<p>This will effectively prevent any host from talking to another host in the DMZ, however all hosts in the DMZ will communicate with a common firewall interface.</p>
<p>Alternative solution:</p>
<p>Many of the older switches do not support a full private vlan implementation.  However, there is still a way to implement the same functionality using the limited private vlan implementation.  The solution is to use protected ports, which is also referred to as private vlan edge ports.</p>
<p>Protected ports do not forward any traffic to protected ports on the same switch. This means that all traffic passing between protected ports—unicast, broadcast, and multicast—must be forwarded through a Layer 3 device. Protected ports can forward any type of traffic to nonprotected ports, and they forward as usual to all ports on other switches.</p>
<p>Only one vlan is required for this implementation, which would already exist (the DMZ hosts would already be a member of this vlan).  Assume vlan 100 as the vlan defined on the switch, the ports connected to each DMZ host will be configured as:</p>
<pre>switch#config t
switch(config)#interface GigabitEthernet1/0/1
switch(config-if)#switchport access vlan 100
switch(config-if)#switchport protected</pre>
<p>The firewall interface is configured in the standard manner:</p>
<pre>switch#config t
switch(config)#interface GigabitEthernet1/0/48
switch(config-if)#switchport access vlan 100</pre>
<p>The drawback to using protected ports is that if you have multiple switches used your dmz network, hosts on one switch can communicate to hosts on another switch, even if they both have switchport protected configured.  This scenario happens because the uplink port connecting the two switches is not a protected port.  With this limitation in mind, there are some creative ways to work protecting hosts on multiple switches, but it will almost always involve combining technolgies , such as combining with vlan access lists at the distribution layer.</p>
<p>If you only have a few switches that make up your dmz environment and your stuck with having protected port usage only, consider using an aggregate switch.  Each of your dmz switches would be uplinked to the aggregate switch and the port protected command would be configured on the aggregate switch side of the uplinks.  The firewall interface would then plug into the aggregate switch (with no port protection configured).  In this scenerio, the aggregate/distribution switch is preventing a host on one switch from talking to the other.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/host-protection-using-private-vlans/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Basic Security using Access Lists</title>
		<link>http://www.xpresslearn.com/cisco/basic-security-using-access-lists</link>
		<comments>http://www.xpresslearn.com/cisco/basic-security-using-access-lists#comments</comments>
		<pubDate>Mon, 12 Nov 2007 03:59:00 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Cisco]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Access Lists]]></category>
		<category><![CDATA[ACL]]></category>
		<category><![CDATA[IOS]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/cisco/basic-security-using-access-lists</guid>
		<description><![CDATA[Learn the basic usage of Cisco access lists to secure a host on the network.]]></description>
			<content:encoded><![CDATA[<p>Consider the need to secure services for access only by certain computers.  The HR computers need access to a Payroll system that no one else needs to use.  The HR Payroll application resides on the server subnet with an IP address of 10.0.4.100 and runs on port 443(ssl).  The HR workstation subnet is 10.0.3.0/24 and will be the only network allowed to access the application.</p>
<p><span id="more-33"></span></p>
<pre>hostname CentralLanRouter
!
interface FastEthernet0/0
description Infrastructure Subnet
ip address 10.0.1.1 255.255.255.0
!
interface FastEthernet0/1
description Employee Subnet
ip address 10.0.2.1 255.255.255.0
!
interface FastEthernet1/0
description HR Subnet
ip address 10.0.3.1 255.255.255.0
!
interface FastEthernet1/1
description Server Subnet
ip address 10.0.4.1 255.255.255.0
ip access-class 100 in
!
access-list 100 remark ACL to protect HR Server
access-list 100 permit tcp 10.0.3.0 0.0.0.255 host 10.0.4.100 eq 443
access-list 100 deny ip any host 10.0.4.100
access-list 100 permit ip any any</pre>
<p>The access list 100 defined above accomplishes the following:</p>
<p>Allows IP addresses of 10.0.3.x to access the host 10.0.4.100 via SSL<br />
Denies all other IP addresses from accessing the host 10.0.4.100 via any port<br />
Allows any IP address to access any host</p>
<p>&lt;!&#8211;adsense#inlinepostad&#8211;&gt;</p>
<p>The access list 101 below keeps the server from initiating connections out to other workstations.  This would be used as an additional security measure, in case the Payroll server was compromised.  In the event an intruder got console access to server, you wouldn&#8217;t want it to have the ability to ftp files off the server to another location.</p>
<pre>interface FastEthernet1/1
description Server Subnet
ip address 10.0.4.1 255.255.255.0
ip access-class 100 in
ip access-class 101 out
!
access-list 101 remark ACL to restrict outbound access from the HR server
access-list 101 permit tcp host 10.0.4.100 10.0.3.0 0.0.0.255 gt 1023
access-list 101 deny ip host 10.0.4.100
access-list 101 permit ip any any</pre>
<p>The order of the statements in the access list is the magic, since they get processed line by line from top to bottom.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/basic-security-using-access-lists/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Enable ssh without using AAA</title>
		<link>http://www.xpresslearn.com/cisco/general/enable-ssh-without-using-aaa</link>
		<comments>http://www.xpresslearn.com/cisco/general/enable-ssh-without-using-aaa#comments</comments>
		<pubDate>Tue, 04 Sep 2007 02:10:31 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/15</guid>
		<description><![CDATA[Enabling ssh on a Cisco device without using or enabling AAA.]]></description>
			<content:encoded><![CDATA[<p><strong>Scenario:</strong></p>
<p>You want to enable ssh access to manage a cisco device, but don&#8217;t want to use AAA.</p>
<p><strong>Solution:</strong></p>
<p>First, make sure a local username/password is defined on the device</p>
<p>Router(config)# username admin password cisco</p>
<p>Second, Generate a general use key for the ssh encryption:</p>
<p>Router(config)# crypto key generate rsa general-keys exportable</p>
<p>This message will appear next, enter one of the three common values at the prompt: 512, 1024, 2048</p>
<p><span class="content"></span></p>
<pre>Choose the size of the key modulus in the range of 360 to 2048 for your
  General Purpose Keys. Choosing a key modulus greater than 512 may take
  a few minutes.

How many bits in the modulus [512]:
% Generating 512 bit RSA keys ...[OK]</pre>
<p>Next, change ssh to use version 2:</p>
<p>Router(config)# ip ssh version 2</p>
<p>Configure the vty lines, which is used when accessing the device:</p>
<p>Router(config)# line vty 0 4</p>
<p>Important next step:  Tell the router to authenticate using local authentication &#8211; otherwise login will fail</p>
<p>Router(config)# login local</p>
<p>Configure lines to only accept ssh logins, which effictively disables accessing the device via Telnet :</p>
<p>Router(config)# transport input ssh</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/cisco/general/enable-ssh-without-using-aaa/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switch Port Security</title>
		<link>http://www.xpresslearn.com/security/switch-port-security</link>
		<comments>http://www.xpresslearn.com/security/switch-port-security#comments</comments>
		<pubDate>Fri, 31 Aug 2007 02:39:31 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Security]]></category>
		<category><![CDATA[Switching]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/14</guid>
		<description><![CDATA[Put controls in place to combat against end users putting desktop switches on the end of an ethernet connection to increase number of ports available.]]></description>
			<content:encoded><![CDATA[<p>Here is one way to combat against unauthorized switches being connected by end users, which is typically done to increase the number of ports available at a location.</p>
<p>Enable port security:</p>
<blockquote><p>Switch(config)#errdisable recovery cause psecure-violation<br />
Switch(config)#int fa0/1<br />
Switch(config-if)#switchport mode access<br />
Switch(config-if)#switchport port-security<br />
Switch(config-if)#switchport port-security maximum 1<br />
Switch(config-if)#switchport port-security violation shutdown<br />
Switch(config-if)#end</p></blockquote>
<p>The configuration above will enable port security on fastethernet0/1, which would go out to an end user workstation.  If someone placed a small switch/hub at the end of the connection in order to connect a second device (such as a network printer, another workstation, etc.), a second mac-address would be detected.  This triggers the access switch to shutdown the port (and sending an snmp trap), effectively cutting off all connectivity to the network.</p>
<p>The global configuration command shown above: <strong>errdisable recovery cause psecure-violation</strong> causes the port to be brought out of shutdown state automatically after the default timer expires.  The errdisable recovery timer can be changed from the default of 300 seconds using the errdisable recovery interval command.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/security/switch-port-security/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Router local authentication and authorization</title>
		<link>http://www.xpresslearn.com/security/router-local-authentication-and-authorization</link>
		<comments>http://www.xpresslearn.com/security/router-local-authentication-and-authorization#comments</comments>
		<pubDate>Mon, 20 Aug 2007 04:46:51 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/index.php/archives/11</guid>
		<description><![CDATA[Use the local router database to authenticate and assign privilege levels to users]]></description>
			<content:encoded><![CDATA[<p>In the past when securing the login to a router using local passwords (no TACACS or Radius Servers), there would be several places where passwords had to be defined.  Minimal passwords required so that telnet access would work were:</p>
<blockquote><p>enable secret secretpw<br />
line vty 0 4<br />
password telnetpw</p></blockquote>
<p>Another password needed to be assigned to secure logins via the console port:</p>
<blockquote>
<p align="left">line con0<br />
password consolepw</p></blockquote>
<p align="left">If there was a modem attached for remote out-of-band access, yet another password was assigned to the auxiliary port:</p>
<blockquote>
<p align="left">line aux 0<br />
password  modempw</p></blockquote>
<p align="left">With &#8216;tripple A&#8217; or AAA, access can be defined in a more centralized manner &#8211; regardless of the database being used (local, TACACS, Radius, etc&#8230;).  Consider the following configuration:</p>
<blockquote>
<p align="left">enable secret secretpw<br />
username Admin privilege 15 secret adminpw (<em>engineer login</em>)<br />
username Monitor privilege 1 secret monitorpw (<em>helpdesk login for basic troubleshooting only</em>)<br />
aaa authentication login default local enable (<em>the default authentication list will cover logins via all sources &#8211; Console, AUX, and Telnet</em>)<br />
aaa authorization console (<em>consider privilege levels at console logins</em>)<br />
aaa authorization exec default local (<em>consider privilege levels at telnet logins</em>)</p></blockquote>
<p>This configuration will produce:</p>
<p>An enable prompt for the admin login:</p>
<p>User Access Verification</p>
<p>Username: admin<br />
Password:</p>
<p>R1#</p>
<p>A non-privileged router prompt for the monitor login:</p>
<p>User Access Verification</p>
<p>Username: monitor<br />
Password:</p>
<p>R1&gt;</p>
<p align="left">&nbsp;</p>
<p align="left">&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/security/router-local-authentication-and-authorization/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Controlling access to VTY lines</title>
		<link>http://www.xpresslearn.com/security/controlling-access-to-vty-lines</link>
		<comments>http://www.xpresslearn.com/security/controlling-access-to-vty-lines#comments</comments>
		<pubDate>Sun, 19 Aug 2007 03:55:25 +0000</pubDate>
		<dc:creator>Scott Pilkinton</dc:creator>
				<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://www.xpresslearn.com/?p=9</guid>
		<description><![CDATA[Part of Secure your Router Series]]></description>
			<content:encoded><![CDATA[<p>By applying an access list to an inbound vty, you can control the source IP a router can be accessed from.</p>
<blockquote><p>Router&gt; enable<br />
Router# config terminal<br />
Router(config)# access-list 1 permit 192.168.200.0 0.0.0.255<br />
Router(config)# line vty 0 15<br />
Router(config-line)# access-class 1 in<br />
Router(config-line)# exit<br />
Router(config-line)# end</p></blockquote>
<p>By applying an input statement on the inbound vty, you can control the protocols used to access the router.</p>
<blockquote><p>Router&gt; enable<br />
Router# config terminal<br />
Router(config)# line vty 0 15<br />
Router(config-line)# transput input { telnet | ssh } (you can specify either or both)</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.xpresslearn.com/security/controlling-access-to-vty-lines/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
